pub struct SessionToolConfirmationRequest {
pub id: String,
pub chat: Uri,
pub turn_id: String,
pub tool_call: ToolCallConfirmationState,
}Expand description
A tool call blocked on confirmation — either parameter confirmation before execution or result confirmation after — surfaced at the session level.
Respond by dispatching chat/toolCallConfirmed (for
{@link ToolCallPendingConfirmationState}) or chat/toolCallResultConfirmed
(for {@link ToolCallPendingResultConfirmationState}) to
{@link SessionInputRequestBase.chat | chat}, keyed by turnId and
toolCall.toolCallId.
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: ToolCallConfirmationStateThe tool call awaiting confirmation.
Trait Implementations§
Source§impl Clone for SessionToolConfirmationRequest
impl Clone for SessionToolConfirmationRequest
Source§fn clone(&self) -> SessionToolConfirmationRequest
fn clone(&self) -> SessionToolConfirmationRequest
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 SessionToolConfirmationRequest
impl<'de> Deserialize<'de> for SessionToolConfirmationRequest
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 SessionToolConfirmationRequest
impl PartialEq for SessionToolConfirmationRequest
Source§fn eq(&self, other: &SessionToolConfirmationRequest) -> bool
fn eq(&self, other: &SessionToolConfirmationRequest) -> bool
self and other values to be equal, and is used by ==.