pub struct ToolContextInfo {
pub name: String,
pub description: String,
pub input_schema: Value,
pub annotations: Option<Value>,
}Expand description
Tool context information
Fields§
§name: StringTool name
description: StringTool description
input_schema: ValueTool input schema
annotations: Option<Value>Tool annotations
Trait Implementations§
Source§impl Clone for ToolContextInfo
impl Clone for ToolContextInfo
Source§fn clone(&self) -> ToolContextInfo
fn clone(&self) -> ToolContextInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ToolContextInfo
impl Debug for ToolContextInfo
Source§impl<'de> Deserialize<'de> for ToolContextInfo
impl<'de> Deserialize<'de> for ToolContextInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolContextInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolContextInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ToolContextInfo
impl Serialize for ToolContextInfo
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ToolContextInfo
impl RefUnwindSafe for ToolContextInfo
impl Send for ToolContextInfo
impl Sync for ToolContextInfo
impl Unpin for ToolContextInfo
impl UnwindSafe for ToolContextInfo
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