ToolDefinition

Trait ToolDefinition 

Source
pub trait ToolDefinition:
    HasBaseMetadata
    + HasDescription
    + HasInputSchema
    + HasOutputSchema
    + HasAnnotations
    + HasToolMeta
    + Send
    + Sync {
    // Provided methods
    fn display_name(&self) -> &str { ... }
    fn to_tool(&self) -> Tool { ... }
}
Expand description

Complete tool definition - composed from fine-grained traits

Provided Methods§

Source

fn display_name(&self) -> &str

Display name precedence: title > annotations.title > name (matches TypeScript spec)

Source

fn to_tool(&self) -> Tool

Convert to concrete Tool struct for protocol serialization

Implementors§