pub struct ChatToolCallAuthRequiredAction {
pub turn_id: String,
pub tool_call_id: String,
pub meta: Option<JsonObject>,
pub auth: McpAuthRequirement,
}Expand description
A running tool call is paused pending MCP authentication. Transitions the
tool call from running to auth-required.
The server dispatches this when the MCP server backing the call responds
with a 401/403 challenge mid-execution (see
{@link McpAuthRequirement.reason | insufficientScope}). The host SHOULD
pair this with session/inputNeededSet (kind toolAuthentication) so the
block is visible at the session-summary level, mirroring
{@link McpServerAuthRequiredState}’s own InputNeeded guidance.
Only valid for tool calls contributed by an MCP server — the reducer is a
no-op if the tool call’s contributor is not
{@link ToolCallContributorKind.MCP | MCP-kind}.
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).
auth: McpAuthRequirementThe authentication challenge blocking this invocation.
Trait Implementations§
Source§impl Clone for ChatToolCallAuthRequiredAction
impl Clone for ChatToolCallAuthRequiredAction
Source§fn clone(&self) -> ChatToolCallAuthRequiredAction
fn clone(&self) -> ChatToolCallAuthRequiredAction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more