Struct ApprovalPosition
pub struct ApprovalPosition {
pub index: u32,
pub total: u32,
}Expand description
Where a tool call sits in the batch the model issued for one turn.
This is the raw batch position, not an approval count. index counts every
call the model asked for, including calls that never reach an approval
prompt. An Approval 2 of 2 counter would only be truthful once the
approval-required set is known, which is after hooks and policy have run —
later than the first card is rendered.
Fields§
§index: u321-based position of this call within the batch.
total: u32Number of calls in the batch.
Trait Implementations§
Source§impl Clone for ApprovalPosition
impl Clone for ApprovalPosition
Source§fn clone(&self) -> ApprovalPosition
fn clone(&self) -> ApprovalPosition
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 moreimpl Copy for ApprovalPosition
Source§impl Debug for ApprovalPosition
impl Debug for ApprovalPosition
Source§impl<'de> Deserialize<'de> for ApprovalPosition
impl<'de> Deserialize<'de> for ApprovalPosition
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 Eq for ApprovalPosition
Source§impl PartialEq for ApprovalPosition
impl PartialEq for ApprovalPosition
Source§impl Serialize for ApprovalPosition
impl Serialize for ApprovalPosition
impl StructuralPartialEq for ApprovalPosition
Auto Trait Implementations§
impl Freeze for ApprovalPosition
impl RefUnwindSafe for ApprovalPosition
impl Send for ApprovalPosition
impl Sync for ApprovalPosition
impl Unpin for ApprovalPosition
impl UnsafeUnpin for ApprovalPosition
impl UnwindSafe for ApprovalPosition
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