pub struct AgentToolPolicyContext { /* private fields */ }Expand description
Immutable input to one ordinary tool policy decision.
Implementations§
Source§impl AgentToolPolicyContext
impl AgentToolPolicyContext
Sourcepub const fn agent(&self) -> &CapabilityIdentity
pub const fn agent(&self) -> &CapabilityIdentity
Returns the admitted agent version.
Sourcepub const fn admission_digest(&self) -> Digest
pub const fn admission_digest(&self) -> Digest
Returns the immutable admission snapshot digest.
Sourcepub const fn model_invocation_id(&self) -> InvocationId
pub const fn model_invocation_id(&self) -> InvocationId
Returns the committed model invocation that proposed the action.
Sourcepub const fn proposal_index(&self) -> usize
pub const fn proposal_index(&self) -> usize
Returns the zero-based provider proposal position.
Sourcepub const fn proposal(&self) -> &ModelToolCallProposal
pub const fn proposal(&self) -> &ModelToolCallProposal
Returns the exact untrusted model proposal.
Sourcepub const fn action_digest(&self) -> Digest
pub const fn action_digest(&self) -> Digest
Returns the domain-separated action checksum persisted on allow.
Trait Implementations§
Source§impl Clone for AgentToolPolicyContext
impl Clone for AgentToolPolicyContext
Auto Trait Implementations§
impl Forget for AgentToolPolicyContext
impl Freeze for AgentToolPolicyContext
impl Move for AgentToolPolicyContext
impl RefUnwindSafe for AgentToolPolicyContext
impl Send for AgentToolPolicyContext
impl Sync for AgentToolPolicyContext
impl Unpin for AgentToolPolicyContext
impl UnsafeUnpin for AgentToolPolicyContext
impl UnwindSafe for AgentToolPolicyContext
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more