pub struct ToolConfirmation {
pub hint: Option<String>,
pub confirmed: bool,
pub payload: Option<Value>,
}Expand description
Represents a user’s confirmation decision for a tool call.
Fields§
§hint: Option<String>Optional hint text explaining what needs confirmation.
confirmed: boolWhether the user confirmed the action.
payload: Option<Value>Optional payload with additional context.
Implementations§
Trait Implementations§
Source§impl Clone for ToolConfirmation
impl Clone for ToolConfirmation
Source§fn clone(&self) -> ToolConfirmation
fn clone(&self) -> ToolConfirmation
Returns a duplicate of the value. Read more
1.0.0 · 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 ToolConfirmation
impl Debug for ToolConfirmation
Source§impl<'de> Deserialize<'de> for ToolConfirmation
impl<'de> Deserialize<'de> for ToolConfirmation
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
Auto Trait Implementations§
impl Freeze for ToolConfirmation
impl RefUnwindSafe for ToolConfirmation
impl Send for ToolConfirmation
impl Sync for ToolConfirmation
impl Unpin for ToolConfirmation
impl UnwindSafe for ToolConfirmation
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