Struct ConfirmationRequest
pub struct ConfirmationRequest {
pub tool_name: String,
pub args: Value,
pub message: Option<String>,
}Expand description
A request for confirmation of a sensitive tool call, handed to a
ConfirmationProvider before the tool executes.
Fields§
§tool_name: StringThe tool about to run.
args: ValueThe arguments the model supplied.
message: Option<String>Optional hint describing what needs confirming (from the tool’s policy).
Trait Implementations§
§impl Clone for ConfirmationRequest
impl Clone for ConfirmationRequest
§fn clone(&self) -> ConfirmationRequest
fn clone(&self) -> ConfirmationRequest
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 moreAuto Trait Implementations§
impl Freeze for ConfirmationRequest
impl RefUnwindSafe for ConfirmationRequest
impl Send for ConfirmationRequest
impl Sync for ConfirmationRequest
impl Unpin for ConfirmationRequest
impl UnwindSafe for ConfirmationRequest
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