pub struct ToolSpec {
pub name: String,
pub description: String,
pub input_schema: Value,
pub output_schema: Option<Value>,
pub class: ToolClass,
pub imp: Impl,
pub grant: Grant,
pub disabled: bool,
pub family: String,
pub tags: Vec<TrifectaTag>,
pub server: Option<String>,
}Expand description
One registered tool.
Fields§
§name: String§description: String§input_schema: Value§output_schema: Option<Value>§class: ToolClass§imp: Impl§grant: Grant§disabled: bool§family: StringTrifecta tags inherited from the serving MCP server (mapped/MCP tools).
server: Option<String>The server that serves this tool (MCP / mapped), for _meta + status.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ToolSpec
impl<'de> Deserialize<'de> for ToolSpec
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 ToolSpec
Auto Trait Implementations§
impl Freeze for ToolSpec
impl RefUnwindSafe for ToolSpec
impl Send for ToolSpec
impl Sync for ToolSpec
impl Unpin for ToolSpec
impl UnsafeUnpin for ToolSpec
impl UnwindSafe for ToolSpec
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