pub struct ToolCallCancelledState {
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 reason: ToolCallCancellationReason,
pub reason_message: Option<StringOrMarkdown>,
pub user_suggestion: Option<Message>,
pub selected_option: Option<ConfirmationOption>,
}Expand description
Tool call was cancelled before execution.
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
reason: ToolCallCancellationReasonWhy the tool was cancelled
reason_message: Option<StringOrMarkdown>Optional message explaining the cancellation
user_suggestion: Option<Message>What the user suggested doing instead
selected_option: Option<ConfirmationOption>The confirmation option the user selected, if confirmation options were provided
Trait Implementations§
Source§impl Clone for ToolCallCancelledState
impl Clone for ToolCallCancelledState
Source§fn clone(&self) -> ToolCallCancelledState
fn clone(&self) -> ToolCallCancelledState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ToolCallCancelledState
impl Debug for ToolCallCancelledState
Source§impl<'de> Deserialize<'de> for ToolCallCancelledState
impl<'de> Deserialize<'de> for ToolCallCancelledState
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ToolCallCancelledState
impl PartialEq for ToolCallCancelledState
Source§fn eq(&self, other: &ToolCallCancelledState) -> bool
fn eq(&self, other: &ToolCallCancelledState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ToolCallCancelledState
impl Serialize for ToolCallCancelledState
impl StructuralPartialEq for ToolCallCancelledState
Auto Trait Implementations§
impl Freeze for ToolCallCancelledState
impl RefUnwindSafe for ToolCallCancelledState
impl Send for ToolCallCancelledState
impl Sync for ToolCallCancelledState
impl Unpin for ToolCallCancelledState
impl UnsafeUnpin for ToolCallCancelledState
impl UnwindSafe for ToolCallCancelledState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more