pub struct ToolCallDescription {
pub fields: ToolCallUpdateFields,
}Expand description
Self-description of a tool call, directly mapping to ACP’s ToolCallUpdateFields.
Purpose (the same data drives three ACP messages):
- First push of a
ToolCall(status = Pending) - The
tool_callfield in aRequestPermissionrequest - Baseline for incremental updates via
ToolEvent::Progress
Field conventions:
tool_call_idis not in this struct; it is assigned uniformly by the main loop (using the LLM’stool_use_idor a self-generated UUID). The tool does not care about it.raw_inputis filled by the main loop with the original args. Tool implementations must not set it themselves, to avoid divergence from the real parameters on the wire.statusis inferred from theToolEventvariant:Progress→InProgress,Completed→Completed,Failed→Failed. Tools must not set it themselves.
Fields§
§fields: ToolCallUpdateFieldsTrait Implementations§
Source§impl Clone for ToolCallDescription
impl Clone for ToolCallDescription
Source§fn clone(&self) -> ToolCallDescription
fn clone(&self) -> ToolCallDescription
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 ToolCallDescription
impl RefUnwindSafe for ToolCallDescription
impl Send for ToolCallDescription
impl Sync for ToolCallDescription
impl Unpin for ToolCallDescription
impl UnsafeUnpin for ToolCallDescription
impl UnwindSafe for ToolCallDescription
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