pub struct ToolApprovalRequestContent {
pub approval_id: ApprovalId,
pub tool_call: ParsedToolCall,
pub reason: Option<String>,
pub is_automatic: bool,
pub signature: Option<String>,
pub provider_metadata: Option<ProviderMetadata>,
}Expand description
A request to approve a tool call before it executes.
Fields§
§approval_id: ApprovalIdIdentifier of the approval request.
tool_call: ParsedToolCallThe tool call awaiting approval.
reason: Option<String>Reason shown to the approver.
is_automatic: boolWhether the decision was made automatically by the approval policy.
signature: Option<String>HMAC signature over the request (when a secret is configured).
provider_metadata: Option<ProviderMetadata>Provider-specific metadata (provider-issued requests).
Trait Implementations§
Source§impl Clone for ToolApprovalRequestContent
impl Clone for ToolApprovalRequestContent
Source§fn clone(&self) -> ToolApprovalRequestContent
fn clone(&self) -> ToolApprovalRequestContent
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 ToolApprovalRequestContent
impl Debug for ToolApprovalRequestContent
Source§impl<'de> Deserialize<'de> for ToolApprovalRequestContent
impl<'de> Deserialize<'de> for ToolApprovalRequestContent
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
impl StructuralPartialEq for ToolApprovalRequestContent
Auto Trait Implementations§
impl Freeze for ToolApprovalRequestContent
impl RefUnwindSafe for ToolApprovalRequestContent
impl Send for ToolApprovalRequestContent
impl Sync for ToolApprovalRequestContent
impl Unpin for ToolApprovalRequestContent
impl UnsafeUnpin for ToolApprovalRequestContent
impl UnwindSafe for ToolApprovalRequestContent
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