Struct ChannelApprovalRequest
pub struct ChannelApprovalRequest {
pub tool_name: String,
pub arguments_summary: String,
pub raw_arguments: Option<Value>,
pub position: Option<ApprovalPosition>,
}Expand description
Compact description of a tool call presented to the user for approval.
Fields§
§tool_name: String§arguments_summary: String§raw_arguments: Option<Value>Raw tool arguments for channels (e.g. ACP) that can render structured diffs instead of a plain summary string.
position: Option<ApprovalPosition>Position of this call in the model’s tool-call batch, when the caller
knows it. None on paths that approve a single call with no batch to
count.
Implementations§
Source§impl ChannelApprovalRequest
impl ChannelApprovalRequest
Sourcepub fn position_counter(&self) -> Option<(u32, u32)>
pub fn position_counter(&self) -> Option<(u32, u32)>
Batch position for an approval card, as (index, total).
Reports the position verbatim. Whether a counter is worth showing is the renderer’s decision, so that a caller handing the renderer a tuple directly cannot bypass the rule.
Trait Implementations§
Source§impl Clone for ChannelApprovalRequest
impl Clone for ChannelApprovalRequest
Source§fn clone(&self) -> ChannelApprovalRequest
fn clone(&self) -> ChannelApprovalRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChannelApprovalRequest
impl Debug for ChannelApprovalRequest
Source§impl<'de> Deserialize<'de> for ChannelApprovalRequest
impl<'de> Deserialize<'de> for ChannelApprovalRequest
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 ChannelApprovalRequest
impl RefUnwindSafe for ChannelApprovalRequest
impl Send for ChannelApprovalRequest
impl Sync for ChannelApprovalRequest
impl Unpin for ChannelApprovalRequest
impl UnsafeUnpin for ChannelApprovalRequest
impl UnwindSafe for ChannelApprovalRequest
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