pub struct ToolCallCompletedState {Show 14 fields
pub tool_call_id: String,
pub tool_name: String,
pub display_name: String,
pub contributor: Option<ToolCallContributor>,
pub meta: Option<JsonObject>,
pub invocation_message: StringOrMarkdown,
pub tool_input: Option<String>,
pub success: bool,
pub past_tense_message: StringOrMarkdown,
pub content: Option<Vec<ToolResultContent>>,
pub structured_content: Option<JsonObject>,
pub error: Option<AnyValue>,
pub confirmed: ToolCallConfirmationReason,
pub selected_option: Option<ConfirmationOption>,
}Expand description
Tool completed successfully or with an error.
Fields§
§tool_call_id: StringUnique tool call identifier
tool_name: StringInternal tool name (for debugging/logging)
display_name: StringHuman-readable tool name
contributor: Option<ToolCallContributor>Reference to the contributor of the tool being called.
meta: Option<JsonObject>Additional provider-specific metadata for this tool call.
This MAY include a ui field corresponding to the MCP Apps (SEP-1865)
McpUiToolMeta found in MCP tool calls, which may be used in combination
with the {@link contributor} to serve MCP Apps.
invocation_message: StringOrMarkdownMessage describing what the tool will do
tool_input: Option<String>Raw tool input
success: boolWhether the tool succeeded
past_tense_message: StringOrMarkdownPast-tense description of what the tool did
content: Option<Vec<ToolResultContent>>Unstructured result content blocks.
This mirrors the content field of MCP CallToolResult.
structured_content: Option<JsonObject>Optional structured result object.
This mirrors the structuredContent field of MCP CallToolResult.
error: Option<AnyValue>Error details if the tool failed
confirmed: ToolCallConfirmationReasonHow the tool was confirmed for execution
selected_option: Option<ConfirmationOption>The confirmation option the user selected, if confirmation options were provided
Trait Implementations§
Source§impl Clone for ToolCallCompletedState
impl Clone for ToolCallCompletedState
Source§fn clone(&self) -> ToolCallCompletedState
fn clone(&self) -> ToolCallCompletedState
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 ToolCallCompletedState
impl Debug for ToolCallCompletedState
Source§impl<'de> Deserialize<'de> for ToolCallCompletedState
impl<'de> Deserialize<'de> for ToolCallCompletedState
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 ToolCallCompletedState
impl PartialEq for ToolCallCompletedState
Source§fn eq(&self, other: &ToolCallCompletedState) -> bool
fn eq(&self, other: &ToolCallCompletedState) -> bool
self and other values to be equal, and is used by ==.