pub struct DescribedTool {
pub id: String,
pub name: String,
pub description: String,
pub kind: ToolKind,
pub args: Vec<DescribedArg>,
pub shallow: bool,
pub parameters: Option<Value>,
}Expand description
A fully-described tool with its argument schema (Contract 1).
Fields§
§id: String§name: String§description: String§kind: ToolKind§args: Vec<DescribedArg>§shallow: boolTrue when the schema could not be fully resolved (e.g. a Composio action
whose only known argument is the freeform arguments object).
parameters: Option<Value>Trait Implementations§
Source§impl Clone for DescribedTool
impl Clone for DescribedTool
Source§fn clone(&self) -> DescribedTool
fn clone(&self) -> DescribedTool
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DescribedTool
impl Debug for DescribedTool
Source§impl<'de> Deserialize<'de> for DescribedTool
impl<'de> Deserialize<'de> for DescribedTool
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 DescribedTool
impl RefUnwindSafe for DescribedTool
impl Send for DescribedTool
impl Sync for DescribedTool
impl Unpin for DescribedTool
impl UnsafeUnpin for DescribedTool
impl UnwindSafe for DescribedTool
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