refactor: merge cached_schema_for_type into schema_for_type (#581)
This commit is contained in:
parent
bce0555068
commit
8d33b155b6
1 changed files with 91 additions and 30 deletions
|
|
@ -178,7 +178,7 @@ impl Tool {
|
|||
|
||||
/// Set the input schema using a type that implements JsonSchema
|
||||
pub fn with_input_schema<T: JsonSchema + 'static>(mut self) -> Self {
|
||||
self.input_schema = crate::handler::server::tool::cached_schema_for_type::<T>();
|
||||
self.input_schema = crate::handler::server::tool::schema_for_type::<T>();
|
||||
self
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue