pub struct ToolCall {
pub call_id: String,
pub title: String,
pub detail: String,
pub status: ToolStatus,
pub result: String,
}Expand description
One tool call, built from the toolRequests entry that asked for it and
the execution events that carry its outcome. call_id is the SDK’s
toolCallId, so start and completion update one transcript row.
Fields§
§call_id: String§title: StringintentionSummary, else toolTitle, else the tool name. One line.
detail: StringA one-line summary of the call’s arguments.
status: ToolStatus§result: StringThe result or the error, once the call completed.
Implementations§
Trait Implementations§
impl Eq for ToolCall
impl StructuralPartialEq for ToolCall
Auto Trait Implementations§
impl Forget for ToolCall
impl Freeze for ToolCall
impl Move for ToolCall
impl RefUnwindSafe for ToolCall
impl Send for ToolCall
impl Sync for ToolCall
impl Unpin for ToolCall
impl UnsafeUnpin for ToolCall
impl UnwindSafe for ToolCall
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.