pub struct ToolCallPendingConfirmationState {
pub tool_call_id: String,
pub tool_name: String,
pub display_name: String,
pub intention: Option<String>,
pub contributor: Option<ToolCallContributor>,
pub meta: Option<JsonObject>,
pub invocation_message: StringOrMarkdown,
pub tool_input: Option<String>,
pub confirmation_title: Option<StringOrMarkdown>,
pub edits: Option<AnyValue>,
pub editable: Option<bool>,
pub options: Option<Vec<ConfirmationOption>>,
}Expand description
Parameters are complete, or a running tool requires re-confirmation (e.g. a mid-execution permission check).
Fields§
§tool_call_id: StringUnique tool call identifier
tool_name: StringInternal tool name (for debugging/logging)
display_name: StringHuman-readable tool name
intention: Option<String>Human-readable description of what the tool invocation intends to do
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
confirmation_title: Option<StringOrMarkdown>Short title for the confirmation prompt (e.g. "Run in terminal", "Write file")
edits: Option<AnyValue>File edits that this tool call will perform, for preview before confirmation
editable: Option<bool>Whether the agent host allows the client to edit the tool’s input parameters before confirming
options: Option<Vec<ConfirmationOption>>Options the server offers for this confirmation. When present, the client SHOULD render these instead of a plain approve/deny UI. Each option belongs to a {@link ConfirmationOptionGroup} so the client can still categorise the choices.
Trait Implementations§
Source§impl Clone for ToolCallPendingConfirmationState
impl Clone for ToolCallPendingConfirmationState
Source§fn clone(&self) -> ToolCallPendingConfirmationState
fn clone(&self) -> ToolCallPendingConfirmationState
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 ToolCallPendingConfirmationState
impl<'de> Deserialize<'de> for ToolCallPendingConfirmationState
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 ToolCallPendingConfirmationState
impl PartialEq for ToolCallPendingConfirmationState
Source§fn eq(&self, other: &ToolCallPendingConfirmationState) -> bool
fn eq(&self, other: &ToolCallPendingConfirmationState) -> bool
self and other values to be equal, and is used by ==.