pub struct SessionToolCallConfirmedAction {
pub turn_id: String,
pub tool_call_id: String,
pub meta: Option<JsonObject>,
pub approved: bool,
pub confirmed: Option<ToolCallConfirmationReason>,
pub reason: Option<ToolCallCancellationReason>,
pub edited_tool_input: Option<String>,
pub user_suggestion: Option<Message>,
pub reason_message: Option<StringOrMarkdown>,
pub selected_option_id: Option<String>,
}Expand description
Client approves or denies a pending tool call (merged approved + denied variants).
Fields§
§turn_id: String§tool_call_id: String§meta: Option<JsonObject>Additional provider-specific metadata for this tool call.
approved: boolWhether the tool call was approved.
confirmed: Option<ToolCallConfirmationReason>How the tool was confirmed (present when approved).
reason: Option<ToolCallCancellationReason>Why the tool was cancelled (present when denied).
edited_tool_input: Option<String>Edited tool input parameters, if the client modified them before confirming.
user_suggestion: Option<Message>What the user suggested doing instead (present when denied).
reason_message: Option<StringOrMarkdown>Explanation for the denial.
selected_option_id: Option<String>ID of the selected confirmation option, if the server provided options.
Trait Implementations§
Source§impl Clone for SessionToolCallConfirmedAction
impl Clone for SessionToolCallConfirmedAction
Source§fn clone(&self) -> SessionToolCallConfirmedAction
fn clone(&self) -> SessionToolCallConfirmedAction
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 SessionToolCallConfirmedAction
impl<'de> Deserialize<'de> for SessionToolCallConfirmedAction
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 SessionToolCallConfirmedAction
impl PartialEq for SessionToolCallConfirmedAction
Source§fn eq(&self, other: &SessionToolCallConfirmedAction) -> bool
fn eq(&self, other: &SessionToolCallConfirmedAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SessionToolCallConfirmedAction
Auto Trait Implementations§
impl Freeze for SessionToolCallConfirmedAction
impl RefUnwindSafe for SessionToolCallConfirmedAction
impl Send for SessionToolCallConfirmedAction
impl Sync for SessionToolCallConfirmedAction
impl Unpin for SessionToolCallConfirmedAction
impl UnsafeUnpin for SessionToolCallConfirmedAction
impl UnwindSafe for SessionToolCallConfirmedAction
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