pub struct ChatToolCallContentChangedAction {
pub turn_id: String,
pub tool_call_id: String,
pub meta: Option<JsonObject>,
pub content: Vec<ToolResultContent>,
}Expand description
Partial content produced while a tool is still executing.
Replaces the content array on the running tool call state. Clients can
use this to display live feedback (e.g. a terminal reference) before the
tool completes.
For client-provided tools (where toolClientId is set on the tool call state),
the owning client dispatches this action to stream intermediate content while
executing. The server SHOULD reject this action if the dispatching client does
not match toolClientId.
Fields§
§turn_id: StringTurn identifier
tool_call_id: StringTool call identifier
meta: Option<JsonObject>Additional provider-specific metadata for this tool call.
Clients MAY look for well-known keys here to provide enhanced UI.
For example, a ptyTerminal key with { input: string; output: string }
indicates the tool operated on a terminal (both input and output may
contain escape sequences).
content: Vec<ToolResultContent>The current partial content for the running tool call
Trait Implementations§
Source§impl Clone for ChatToolCallContentChangedAction
impl Clone for ChatToolCallContentChangedAction
Source§fn clone(&self) -> ChatToolCallContentChangedAction
fn clone(&self) -> ChatToolCallContentChangedAction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'de> Deserialize<'de> for ChatToolCallContentChangedAction
impl<'de> Deserialize<'de> for ChatToolCallContentChangedAction
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 PartialEq for ChatToolCallContentChangedAction
impl PartialEq for ChatToolCallContentChangedAction
Source§fn eq(&self, other: &ChatToolCallContentChangedAction) -> bool
fn eq(&self, other: &ChatToolCallContentChangedAction) -> bool
self and other values to be equal, and is used by ==.