pub struct EvaluationContextBinding {
pub digest: ContentDigest,
pub operation_id: String,
pub execution_input: ContentDigest,
pub context_state: ContentDigest,
pub context_policy: ContentDigest,
pub context_plan: ContentDigest,
pub rendered_snapshot: ContentDigest,
pub prompt_measurement: ContentDigest,
pub provider_route: ContentDigest,
pub cache_prefix: Option<ContentDigest>,
}Expand description
The verifiable context projection used by one evaluated operation.
Context bytes remain host-owned evidence. The evaluation ledger binds only the canonical execution-input, state, plan, rendered projection, route, and measurement digests so a replay can prove which context was evaluated without making the kernel a context store.
Fields§
§digest: ContentDigest§operation_id: String§execution_input: ContentDigest§context_state: ContentDigest§context_policy: ContentDigest§context_plan: ContentDigest§rendered_snapshot: ContentDigest§prompt_measurement: ContentDigest§provider_route: ContentDigest§cache_prefix: Option<ContentDigest>Implementations§
Source§impl EvaluationContextBinding
impl EvaluationContextBinding
Sourcepub fn from_execution_input(input: &ContextExecutionInput) -> Self
pub fn from_execution_input(input: &ContextExecutionInput) -> Self
Project a verified ContextExecutionInput into the evaluation evidence graph.
pub fn new( operation_id: impl Into<String>, execution_input: ContentDigest, context_state: ContentDigest, context_policy: ContentDigest, context_plan: ContentDigest, rendered_snapshot: ContentDigest, prompt_measurement: ContentDigest, provider_route: ContentDigest, cache_prefix: Option<ContentDigest>, ) -> Result<Self, EvolutionError>
pub fn verify_digest(&self) -> Result<(), EvolutionError>
Trait Implementations§
Source§impl Clone for EvaluationContextBinding
impl Clone for EvaluationContextBinding
Source§fn clone(&self) -> EvaluationContextBinding
fn clone(&self) -> EvaluationContextBinding
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 EvaluationContextBinding
impl Debug for EvaluationContextBinding
Source§impl<'de> Deserialize<'de> for EvaluationContextBinding
impl<'de> Deserialize<'de> for EvaluationContextBinding
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 EvaluationContextBinding
Source§impl PartialEq for EvaluationContextBinding
impl PartialEq for EvaluationContextBinding
Source§impl Serialize for EvaluationContextBinding
impl Serialize for EvaluationContextBinding
impl StructuralPartialEq for EvaluationContextBinding
Auto Trait Implementations§
impl Freeze for EvaluationContextBinding
impl RefUnwindSafe for EvaluationContextBinding
impl Send for EvaluationContextBinding
impl Sync for EvaluationContextBinding
impl Unpin for EvaluationContextBinding
impl UnsafeUnpin for EvaluationContextBinding
impl UnwindSafe for EvaluationContextBinding
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