pub struct ToolCall {
pub tool_call_id: String,
pub title: String,
pub kind: ToolKind,
pub status: ToolCallStatus,
pub content: Vec<ToolCallContent>,
pub raw_input: Option<Value>,
pub raw_output: Option<String>,
pub output_metadata: Option<ToolOutputMetadata>,
pub task_metadata: Option<TaskMetadata>,
pub locations: Vec<ToolCallLocation>,
pub meta: Option<Value>,
}Fields§
§tool_call_id: String§title: String§kind: ToolKind§status: ToolCallStatus§content: Vec<ToolCallContent>§raw_input: Option<Value>§raw_output: Option<String>§output_metadata: Option<ToolOutputMetadata>§task_metadata: Option<TaskMetadata>§locations: Vec<ToolCallLocation>§meta: Option<Value>Implementations§
Source§impl ToolCall
impl ToolCall
Sourcepub fn merge(&mut self, fields: ToolCallUpdateFields)
pub fn merge(&mut self, fields: ToolCallUpdateFields)
Apply a ToolCallUpdateFields patch in-place: any Some field
overrides the corresponding field on self; None leaves it
alone. The destructure forces a compile error when a new field
is added to ToolCallUpdateFields without a corresponding
merge arm here.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ToolCall
impl<'de> Deserialize<'de> for ToolCall
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ToolCall
impl StructuralPartialEq for ToolCall
Auto Trait Implementations§
impl Freeze 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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.