pub struct ToolCallUpdate {
pub tool_call_id: ToolCallId,
pub kind: Option<Option<ToolKind>>,
pub status: Option<Option<ToolCallStatus>>,
pub title: Option<Option<String>>,
pub name: Option<Option<String>>,
pub content: Option<Vec<ToolCallContent>>,
pub locations: Option<Vec<ToolCallLocation>>,
pub raw_input: Option<Value>,
pub raw_output: Option<Value>,
}Expand description
An update to an existing tool call. All fields
except toolCallId are optional — only changed
fields need to be included. The consumer merges
the update onto the existing call by id.
Fields§
§tool_call_id: ToolCallIdThe id of the tool call being updated.
kind: Option<Option<ToolKind>>Update the tool kind. Some(None) means
“clear”; None means “leave alone”.
status: Option<Option<ToolCallStatus>>Update the execution status. Some(None)
means “clear”.
title: Option<Option<String>>Update the human-readable title.
name: Option<Option<String>>Update the programmatic name.
content: Option<Vec<ToolCallContent>>Replace the content collection. The
Option<Vec<ToolCallContent>> is the
wire-level “replace” semantics: None
leaves the old content alone; Some(vec)
replaces it.
locations: Option<Vec<ToolCallLocation>>Replace the locations collection.
raw_input: Option<Value>Update the raw input.
raw_output: Option<Value>Update the raw output.
Trait Implementations§
Source§impl Clone for ToolCallUpdate
impl Clone for ToolCallUpdate
Source§impl Debug for ToolCallUpdate
impl Debug for ToolCallUpdate
Source§impl<'de> Deserialize<'de> for ToolCallUpdate
impl<'de> Deserialize<'de> for ToolCallUpdate
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 ToolCallUpdate
Source§impl PartialEq for ToolCallUpdate
impl PartialEq for ToolCallUpdate
Source§impl Serialize for ToolCallUpdate
impl Serialize for ToolCallUpdate
impl StructuralPartialEq for ToolCallUpdate
Auto Trait Implementations§
impl Freeze for ToolCallUpdate
impl RefUnwindSafe for ToolCallUpdate
impl Send for ToolCallUpdate
impl Sync for ToolCallUpdate
impl Unpin for ToolCallUpdate
impl UnsafeUnpin for ToolCallUpdate
impl UnwindSafe for ToolCallUpdate
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