pub struct EvaluationVerdict {
pub verdict: Verdict,
pub reason: Option<String>,
pub matched_grant_index: Option<usize>,
pub verified: Option<VerifiedCapability>,
}Expand description
Verdict + context produced by evaluate.
On Verdict::Allow the caller is handed the VerifiedCapability and
the matched grant index; the full kernel uses those to drive budget
accounting, receipt construction, and tool dispatch.
Fields§
§verdict: VerdictThe three-valued verdict. PendingApproval is never produced by
the core; only Allow / Deny flow out of this module.
reason: Option<String>Human-readable deny reason when verdict == Deny.
matched_grant_index: Option<usize>Grant index that admitted the request. Populated on Allow.
verified: Option<VerifiedCapability>Verified capability snapshot. Populated when signature + time checks succeeded, even if a later guard denied.
Implementations§
Source§impl EvaluationVerdict
impl EvaluationVerdict
Sourcepub fn normalized(
&self,
request: &PortableToolCallRequest,
) -> Result<NormalizedEvaluationVerdict, NormalizationError>
pub fn normalized( &self, request: &PortableToolCallRequest, ) -> Result<NormalizedEvaluationVerdict, NormalizationError>
Project this evaluation result into the proof-facing normalized AST.
Trait Implementations§
Source§impl Clone for EvaluationVerdict
impl Clone for EvaluationVerdict
Source§fn clone(&self) -> EvaluationVerdict
fn clone(&self) -> EvaluationVerdict
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EvaluationVerdict
impl RefUnwindSafe for EvaluationVerdict
impl Send for EvaluationVerdict
impl Sync for EvaluationVerdict
impl Unpin for EvaluationVerdict
impl UnsafeUnpin for EvaluationVerdict
impl UnwindSafe for EvaluationVerdict
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