pub struct ToolApprovalRequest {
pub tool_call_id: String,
pub tool_name: String,
pub arguments: Value,
pub requires_approval: bool,
pub context: Option<Value>,
}Expand description
Information about a tool call pending approval.
The Debug implementation redacts the arguments field and sanitizes
context to prevent sensitive values from leaking into logs and debug
output.
Fields§
§tool_call_id: StringThe unique ID of this tool call.
tool_name: StringThe name of the tool being called.
arguments: ValueThe arguments passed to the tool.
requires_approval: boolWhether the tool itself declared that it requires approval.
context: Option<Value>Optional rich context from the tool’s approval_context() method.
Trait Implementations§
Source§impl Clone for ToolApprovalRequest
impl Clone for ToolApprovalRequest
Source§fn clone(&self) -> ToolApprovalRequest
fn clone(&self) -> ToolApprovalRequest
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 ToolApprovalRequest
impl RefUnwindSafe for ToolApprovalRequest
impl Send for ToolApprovalRequest
impl Sync for ToolApprovalRequest
impl Unpin for ToolApprovalRequest
impl UnsafeUnpin for ToolApprovalRequest
impl UnwindSafe for ToolApprovalRequest
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