pub struct ToolParam {
pub name: String,
pub description: String,
pub param_type: String,
pub required: bool,
}Expand description
JSON-Schema-like parameter definition.
Fields§
§name: String§description: String§param_type: StringJSON Schema type: “string”, “integer”, “boolean”, “array”, “object”.
required: boolTrait Implementations§
Source§impl<'de> Deserialize<'de> for ToolParam
impl<'de> Deserialize<'de> for ToolParam
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ToolParam
impl RefUnwindSafe for ToolParam
impl Send for ToolParam
impl Sync for ToolParam
impl Unpin for ToolParam
impl UnsafeUnpin for ToolParam
impl UnwindSafe for ToolParam
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more