pub struct SessionToolCallStartAction {
pub turn_id: String,
pub tool_call_id: String,
pub meta: Option<JsonObject>,
pub tool_name: String,
pub display_name: String,
pub tool_client_id: Option<String>,
}Expand description
A tool call begins — parameters are streaming from the LM.
For client-provided tools, the server sets toolClientId to identify the
owning client. That client is responsible for executing the tool once it
reaches the running state and dispatching session/toolCallComplete.
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).
tool_name: StringInternal tool name (for debugging/logging)
display_name: StringHuman-readable tool name
tool_client_id: Option<String>If this tool is provided by a client, the clientId of the owning client.
Absent for server-side tools.
Trait Implementations§
Source§impl Clone for SessionToolCallStartAction
impl Clone for SessionToolCallStartAction
Source§fn clone(&self) -> SessionToolCallStartAction
fn clone(&self) -> SessionToolCallStartAction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SessionToolCallStartAction
impl Debug for SessionToolCallStartAction
Source§impl<'de> Deserialize<'de> for SessionToolCallStartAction
impl<'de> Deserialize<'de> for SessionToolCallStartAction
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 SessionToolCallStartAction
impl PartialEq for SessionToolCallStartAction
Source§fn eq(&self, other: &SessionToolCallStartAction) -> bool
fn eq(&self, other: &SessionToolCallStartAction) -> bool
self and other values to be equal, and is used by ==.