pub struct ChatToolCallConfirmedAction {
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 ChatToolCallConfirmedAction
impl Clone for ChatToolCallConfirmedAction
Source§fn clone(&self) -> ChatToolCallConfirmedAction
fn clone(&self) -> ChatToolCallConfirmedAction
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 Debug for ChatToolCallConfirmedAction
impl Debug for ChatToolCallConfirmedAction
Source§impl<'de> Deserialize<'de> for ChatToolCallConfirmedAction
impl<'de> Deserialize<'de> for ChatToolCallConfirmedAction
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 ChatToolCallConfirmedAction
impl PartialEq for ChatToolCallConfirmedAction
Source§fn eq(&self, other: &ChatToolCallConfirmedAction) -> bool
fn eq(&self, other: &ChatToolCallConfirmedAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ChatToolCallConfirmedAction
Auto Trait Implementations§
impl Freeze for ChatToolCallConfirmedAction
impl RefUnwindSafe for ChatToolCallConfirmedAction
impl Send for ChatToolCallConfirmedAction
impl Sync for ChatToolCallConfirmedAction
impl Unpin for ChatToolCallConfirmedAction
impl UnsafeUnpin for ChatToolCallConfirmedAction
impl UnwindSafe for ChatToolCallConfirmedAction
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