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§
Sourcefn display_name(&self) -> &str
fn display_name(&self) -> &str
Display name precedence: title > annotations.title > name (matches TypeScript spec)