pub struct ChatToolCallCompleteAction {
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 (whose tool call state carries a client
ToolCallContributor with a clientId), the owning client dispatches this
action with the execution result. The server SHOULD reject this action if the
dispatching client does not match the contributor’s clientId.
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 ChatToolCallCompleteAction
impl Clone for ChatToolCallCompleteAction
Source§fn clone(&self) -> ChatToolCallCompleteAction
fn clone(&self) -> ChatToolCallCompleteAction
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 ChatToolCallCompleteAction
impl Debug for ChatToolCallCompleteAction
Source§impl<'de> Deserialize<'de> for ChatToolCallCompleteAction
impl<'de> Deserialize<'de> for ChatToolCallCompleteAction
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 ChatToolCallCompleteAction
impl PartialEq for ChatToolCallCompleteAction
Source§fn eq(&self, other: &ChatToolCallCompleteAction) -> bool
fn eq(&self, other: &ChatToolCallCompleteAction) -> bool
self and other values to be equal, and is used by ==.