pub struct SessionToolCallCompleteAction {
pub turn_id: String,
pub tool_call_id: String,
pub meta: Option<JsonObject>,
pub result: ToolCallResult,
pub requires_result_confirmation: Option<bool>,
}Expand description
Tool execution finished. Transitions to completed or pending-result-confirmation
if requiresResultConfirmation is true.
For client-provided tools (where toolClientId is set on the tool call state),
the owning client dispatches this action with the execution result. The server
SHOULD reject this action if the dispatching client does not match toolClientId.
Servers waiting on a client tool call MAY time out after a reasonable duration
if the implementing client disconnects or becomes unresponsive, and dispatch
this action with result.success = false and an appropriate error.
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).
result: ToolCallResultExecution result
requires_result_confirmation: Option<bool>If true, the result requires client approval before finalizing
Trait Implementations§
Source§impl Clone for SessionToolCallCompleteAction
impl Clone for SessionToolCallCompleteAction
Source§fn clone(&self) -> SessionToolCallCompleteAction
fn clone(&self) -> SessionToolCallCompleteAction
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 SessionToolCallCompleteAction
impl<'de> Deserialize<'de> for SessionToolCallCompleteAction
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 SessionToolCallCompleteAction
impl PartialEq for SessionToolCallCompleteAction
Source§fn eq(&self, other: &SessionToolCallCompleteAction) -> bool
fn eq(&self, other: &SessionToolCallCompleteAction) -> bool
self and other values to be equal, and is used by ==.