pub struct SessionToolCallResultConfirmedAction {
pub turn_id: String,
pub tool_call_id: String,
pub meta: Option<JsonObject>,
pub approved: bool,
}Expand description
Client approves or denies a tool’s result.
If approved is false, the tool transitions to cancelled with reason result-denied.
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).
approved: boolWhether the result was approved
Trait Implementations§
Source§impl Clone for SessionToolCallResultConfirmedAction
impl Clone for SessionToolCallResultConfirmedAction
Source§fn clone(&self) -> SessionToolCallResultConfirmedAction
fn clone(&self) -> SessionToolCallResultConfirmedAction
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<'de> Deserialize<'de> for SessionToolCallResultConfirmedAction
impl<'de> Deserialize<'de> for SessionToolCallResultConfirmedAction
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 SessionToolCallResultConfirmedAction
impl PartialEq for SessionToolCallResultConfirmedAction
Source§fn eq(&self, other: &SessionToolCallResultConfirmedAction) -> bool
fn eq(&self, other: &SessionToolCallResultConfirmedAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SessionToolCallResultConfirmedAction
Auto Trait Implementations§
impl Freeze for SessionToolCallResultConfirmedAction
impl RefUnwindSafe for SessionToolCallResultConfirmedAction
impl Send for SessionToolCallResultConfirmedAction
impl Sync for SessionToolCallResultConfirmedAction
impl Unpin for SessionToolCallResultConfirmedAction
impl UnsafeUnpin for SessionToolCallResultConfirmedAction
impl UnwindSafe for SessionToolCallResultConfirmedAction
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