Skip to main content

SessionToolCallReadyAction

Struct SessionToolCallReadyAction 

Source
pub struct SessionToolCallReadyAction {
    pub turn_id: String,
    pub tool_call_id: String,
    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 confirmed: Option<ToolCallConfirmationReason>,
    pub options: Option<Vec<ConfirmationOption>>,
}
Expand description

Tool call parameters are complete, or a running tool requires re-confirmation.

When dispatched for a streaming tool call, transitions to pending-confirmation or directly to running if confirmed is set.

When dispatched for a running tool call (e.g. mid-execution permission needed), transitions back to pending-confirmation. The invocationMessage and _meta SHOULD be updated to describe the specific confirmation needed. Clients use the standard session/toolCallConfirmed flow to approve or deny.

For client-provided tools, the server typically sets confirmed to 'not-needed' so the tool transitions directly to running, where the owning client can begin execution immediately.

Fields§

§turn_id: String

Turn identifier

§tool_call_id: String

Tool 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).

§invocation_message: StringOrMarkdown

Message describing what the tool will do or what confirmation is needed

§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

§confirmed: Option<ToolCallConfirmationReason>

If set, the tool was auto-confirmed and transitions directly to running

§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 SessionToolCallReadyAction

Source§

fn clone(&self) -> SessionToolCallReadyAction

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SessionToolCallReadyAction

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for SessionToolCallReadyAction

Source§

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 SessionToolCallReadyAction

Source§

fn eq(&self, other: &SessionToolCallReadyAction) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for SessionToolCallReadyAction

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for SessionToolCallReadyAction

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.