pub struct Tool {
pub tool_id: ToolId,
pub name: String,
pub description: String,
pub input_schema: Option<Value>,
pub output_schema: Option<Value>,
pub annotations: Option<Annotation>,
pub frame_id: FrameId,
pub backend_node_id: Option<BackendNodeId>,
pub stack_trace: Option<StackTrace>,
}Expand description
Definition of a tool that can be invoked.
Fields§
§tool_id: ToolIdTool identifier.
name: StringTool name.
description: StringTool description.
input_schema: Option<Value>Schema for the tool’s input parameters.
output_schema: Option<Value>Schema for the tool’s output structure.
annotations: Option<Annotation>Optional annotations for the tool.
frame_id: FrameIdFrame identifier associated with the tool registration.
backend_node_id: Option<BackendNodeId>Optional node ID for declarative tools.
stack_trace: Option<StackTrace>The stack trace at the time of the registration.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tool
impl<'de> Deserialize<'de> for Tool
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
impl StructuralPartialEq for Tool
Auto Trait Implementations§
impl Forget for Tool
impl Freeze for Tool
impl RefUnwindSafe for Tool
impl Send for Tool
impl Sync for Tool
impl Unpin for Tool
impl UnsafeUnpin for Tool
impl UnwindSafe for Tool
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