pub struct ToolDef {
pub name: String,
pub description: String,
pub input_schema: Option<Value>,
pub title: Option<String>,
pub output_schema: Option<Value>,
pub annotations: Option<ToolAnnotations>,
}Expand description
A tool of an in-process SDK MCP server.
Fields§
§name: StringTool name.
description: StringDescription shown to the model.
input_schema: Option<Value>JSON schema of the tool input.
title: Option<String>Display name.
output_schema: Option<Value>JSON schema of ToolResult::structured.
annotations: Option<ToolAnnotations>MCP tool hints.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ToolDef
impl<'de> Deserialize<'de> for ToolDef
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 ToolDef
Auto Trait Implementations§
impl Forget for ToolDef
impl Freeze for ToolDef
impl Move for ToolDef
impl RefUnwindSafe for ToolDef
impl Send for ToolDef
impl Sync for ToolDef
impl Unpin for ToolDef
impl UnsafeUnpin for ToolDef
impl UnwindSafe for ToolDef
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