pub struct ApprovalRequest {
pub id: String,
pub tool_call_id: String,
pub sender: String,
pub action: String,
pub description: String,
pub display: Option<Vec<DisplayBlock>>,
pub source_kind: Option<SourceKind>,
pub source_id: Option<String>,
pub agent_id: Option<String>,
pub subagent_type: Option<String>,
pub source_description: Option<String>,
}Expand description
Approval request sent by the agent.
Fields§
§id: StringRequest id.
tool_call_id: StringId of the tool call requiring approval.
sender: StringTool sender name.
action: StringAction description.
description: StringDetailed description.
display: Option<Vec<DisplayBlock>>Display blocks for the user.
source_kind: Option<SourceKind>Source of the request.
source_id: Option<String>Source id.
agent_id: Option<String>Agent id.
subagent_type: Option<String>Subagent type.
source_description: Option<String>Source description.
Trait Implementations§
Source§impl Clone for ApprovalRequest
impl Clone for ApprovalRequest
Source§fn clone(&self) -> ApprovalRequest
fn clone(&self) -> ApprovalRequest
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 ApprovalRequest
impl Debug for ApprovalRequest
Source§impl<'de> Deserialize<'de> for ApprovalRequest
impl<'de> Deserialize<'de> for ApprovalRequest
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 ApprovalRequest
impl PartialEq for ApprovalRequest
Source§fn eq(&self, other: &ApprovalRequest) -> bool
fn eq(&self, other: &ApprovalRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ApprovalRequest
impl Serialize for ApprovalRequest
impl StructuralPartialEq for ApprovalRequest
Auto Trait Implementations§
impl Freeze for ApprovalRequest
impl RefUnwindSafe for ApprovalRequest
impl Send for ApprovalRequest
impl Sync for ApprovalRequest
impl Unpin for ApprovalRequest
impl UnsafeUnpin for ApprovalRequest
impl UnwindSafe for ApprovalRequest
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