#[non_exhaustive]pub struct ToolCallUpdate {
pub tool_call_id: ToolCallId,
pub fields: ToolCallUpdateFields,
pub meta: Option<Meta>,
}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 (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.tool_call_id: ToolCallIdThe ID of the tool call being updated.
fields: ToolCallUpdateFieldsFields being updated.
meta: Option<Meta>The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Implementations§
Source§impl ToolCallUpdate
impl ToolCallUpdate
pub fn new( tool_call_id: impl Into<ToolCallId>, fields: ToolCallUpdateFields, ) -> Self
Sourcepub fn meta(self, meta: Meta) -> Self
pub fn meta(self, meta: Meta) -> Self
The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Trait Implementations§
Source§impl Clone for ToolCallUpdate
impl Clone for ToolCallUpdate
Source§fn clone(&self) -> ToolCallUpdate
fn clone(&self) -> ToolCallUpdate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>,
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>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$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.