pub struct ToolInvocation {
pub node: String,
pub agent: String,
pub reference: String,
pub name: String,
pub transport: String,
pub arguments: BTreeMap<String, Value>,
pub effects: Vec<String>,
pub result_type: String,
}Expand description
One resolved tool call.
Fields§
§node: StringThe IR node that made the call, for cassette matching and error
messages. The same role CompletionRequest::node plays for a model call.
agent: StringThe agent making the call.
A host that bounds what a tool can reach needs this: two agents in one program deliberately hold different policies, and a bound wide enough for both would hand each of them the other’s grants.
reference: StringTransport-qualified reference, e.g. mcp:web.search.
name: StringBare tool name, e.g. web.search.
transport: String§arguments: BTreeMap<String, Value>Arguments in the callee’s declaration order.
effects: Vec<String>Effects the artifact declares for this tool.
result_type: StringThe Ingot type the tool is declared to return.
Trait Implementations§
Source§impl Clone for ToolInvocation
impl Clone for ToolInvocation
Source§fn clone(&self) -> ToolInvocation
fn clone(&self) -> ToolInvocation
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 moreSource§impl Debug for ToolInvocation
impl Debug for ToolInvocation
Source§impl PartialEq for ToolInvocation
impl PartialEq for ToolInvocation
impl StructuralPartialEq for ToolInvocation
Auto Trait Implementations§
impl Freeze for ToolInvocation
impl RefUnwindSafe for ToolInvocation
impl Send for ToolInvocation
impl Sync for ToolInvocation
impl Unpin for ToolInvocation
impl UnsafeUnpin for ToolInvocation
impl UnwindSafe for ToolInvocation
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