pub struct DirectToolDef {
pub prefixed_name: String,
pub original_name: String,
pub server_name: String,
pub description: String,
pub input_schema: Option<Value>,
}Expand description
Stable since 0.63.0
Definition for a tool to be registered as a direct `AgentTool` (Phase 3).Fields§
§prefixed_name: StringPrefixed tool name (already computed at registration time so that
AgentTool::name() -> &str can return a reference into self).
original_name: StringOriginal (unprefixed) MCP tool name.
server_name: StringServer that provides this tool.
description: StringTool description.
input_schema: Option<Value>JSON Schema for parameters.
Trait Implementations§
Source§impl Clone for DirectToolDef
impl Clone for DirectToolDef
Source§fn clone(&self) -> DirectToolDef
fn clone(&self) -> DirectToolDef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DirectToolDef
impl RefUnwindSafe for DirectToolDef
impl Send for DirectToolDef
impl Sync for DirectToolDef
impl Unpin for DirectToolDef
impl UnsafeUnpin for DirectToolDef
impl UnwindSafe for DirectToolDef
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