pub struct SessionToolAuthenticationRequest {
pub id: String,
pub chat: Uri,
pub turn_id: String,
pub tool_call: ToolCallAuthRequiredState,
}Expand description
A tool call blocked on MCP authentication mid-execution, surfaced at the session level.
The {@link toolCall} is always a {@link ToolCallAuthRequiredState} (a
{@link ToolCallState} in auth-required status). Unlike
{@link SessionToolConfirmationRequest}, this is not answered by
dispatching a chat/* action directly: the client obtains a token for
{@link ToolCallAuthRequiredState.auth | toolCall.auth}.resource and
pushes it via the existing authenticate command (see
{@link /specification/authentication | Authentication}). The host resumes
the tool call and dispatches chat/toolCallAuthResolved once the token is
accepted, at which point it also removes this entry with
session/inputNeededRemoved.
Fields§
§id: StringStable key for this entry, unique within the session’s
{@link SessionState.inputNeeded} list. The host derives it however it likes
(for example from the chat URI plus the underlying request or tool-call
id); consumers MUST treat it as opaque. It is the key for the
session/inputNeededSet / session/inputNeededRemoved upsert convention.
chat: UriThe chat the underlying request lives in. This is the channel a client dispatches its response to — it does not need to have subscribed to that chat first.
turn_id: StringThe turn the tool call belongs to.
tool_call: ToolCallAuthRequiredStateThe tool call awaiting authentication.
Trait Implementations§
Source§impl Clone for SessionToolAuthenticationRequest
impl Clone for SessionToolAuthenticationRequest
Source§fn clone(&self) -> SessionToolAuthenticationRequest
fn clone(&self) -> SessionToolAuthenticationRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more