pub struct ToolCallDescriptor {
pub tool: String,
pub arguments: Value,
pub arguments_pretty: String,
}Expand description
Parsed shape of the input descriptor. We only require name and
arguments – additional fields are ignored. This matches both
the MCP tools/call payload and the canonical JSON the shims
produce for shell calls.
Fields§
§tool: String§arguments: Value§arguments_pretty: StringPretty-printed arguments for the banner. Cached because we
render in multiple places.
Implementations§
Trait Implementations§
Source§impl Clone for ToolCallDescriptor
impl Clone for ToolCallDescriptor
Source§fn clone(&self) -> ToolCallDescriptor
fn clone(&self) -> ToolCallDescriptor
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 ToolCallDescriptor
impl RefUnwindSafe for ToolCallDescriptor
impl Send for ToolCallDescriptor
impl Sync for ToolCallDescriptor
impl Unpin for ToolCallDescriptor
impl UnsafeUnpin for ToolCallDescriptor
impl UnwindSafe for ToolCallDescriptor
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