pub struct ToolCallRunningState {
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 confirmed: ToolCallConfirmationReason,
pub selected_option: Option<ConfirmationOption>,
pub content: Option<Vec<ToolResultContent>>,
}Expand description
Tool is actively executing.
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
confirmed: ToolCallConfirmationReasonHow the tool was confirmed for execution
selected_option: Option<ConfirmationOption>The confirmation option the user selected, if confirmation options were provided
content: Option<Vec<ToolResultContent>>Partial content produced while the tool is still executing.
For example, a terminal content block lets clients subscribe to live output before the tool completes.
Trait Implementations§
Source§impl Clone for ToolCallRunningState
impl Clone for ToolCallRunningState
Source§fn clone(&self) -> ToolCallRunningState
fn clone(&self) -> ToolCallRunningState
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 ToolCallRunningState
impl Debug for ToolCallRunningState
Source§impl<'de> Deserialize<'de> for ToolCallRunningState
impl<'de> Deserialize<'de> for ToolCallRunningState
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 ToolCallRunningState
impl PartialEq for ToolCallRunningState
Source§fn eq(&self, other: &ToolCallRunningState) -> bool
fn eq(&self, other: &ToolCallRunningState) -> bool
self and other values to be equal, and is used by ==.