pub struct SessionToolCallContentChangedAction {
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 SessionToolCallContentChangedAction
impl Clone for SessionToolCallContentChangedAction
Source§fn clone(&self) -> SessionToolCallContentChangedAction
fn clone(&self) -> SessionToolCallContentChangedAction
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 SessionToolCallContentChangedAction
impl<'de> Deserialize<'de> for SessionToolCallContentChangedAction
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 SessionToolCallContentChangedAction
impl PartialEq for SessionToolCallContentChangedAction
Source§fn eq(&self, other: &SessionToolCallContentChangedAction) -> bool
fn eq(&self, other: &SessionToolCallContentChangedAction) -> bool
self and other values to be equal, and is used by ==.