pub struct ToolCallUpdate {
pub id: ToolCallId,
pub fields: ToolCallUpdateFields,
pub meta: Option<Value>,
}
Expand description
An update to an existing tool call.
Used to report progress and results as tools execute. All fields except the tool call ID are optional - only changed fields need to be included.
See protocol docs: Updating
Fields§
§id: ToolCallId
The ID of the tool call being updated.
fields: ToolCallUpdateFields
Fields being updated.
meta: Option<Value>
Extension point for implementations
Trait Implementations§
Source§impl Clone for ToolCallUpdate
impl Clone for ToolCallUpdate
Source§fn clone(&self) -> ToolCallUpdate
fn clone(&self) -> ToolCallUpdate
Returns a duplicate of the value. Read more
1.0.0 · 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 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
Source§impl From<ToolCall> for ToolCallUpdate
impl From<ToolCall> for ToolCallUpdate
Source§impl JsonSchema for ToolCallUpdate
impl JsonSchema for ToolCallUpdate
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref
keyword. Read moreSource§impl PartialEq for ToolCallUpdate
impl PartialEq for ToolCallUpdate
Source§impl Serialize for ToolCallUpdate
impl Serialize for ToolCallUpdate
Source§impl TryFrom<ToolCallUpdate> for ToolCall
If a given tool call doesn’t exist yet, allows for attempting to construct
one from a tool call update if possible.
impl TryFrom<ToolCallUpdate> for ToolCall
If a given tool call doesn’t exist yet, allows for attempting to construct one from a tool call update if possible.
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 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