pub struct ContextCandidate {Show 13 fields
pub schema: String,
pub operation_id: String,
pub step_id: String,
pub input_sequence: u64,
pub state: ContextState,
pub runtime_inputs: ContentDigest,
pub policy_digest: ContentDigest,
pub rendered_snapshot: ContentDigest,
pub selections: Vec<ContextSelection>,
pub input_budget_tokens: u32,
pub projected_tokens: u32,
pub pressure_ppm: u32,
pub cache_prefix: Option<CachePrefixBoundary>,
}Expand description
Kernel-owned facts frozen in a provider effect. Host route and native count do not exist when the kernel emits this candidate; the host binds them before dispatch through core.
Fields§
§schema: String§operation_id: String§step_id: String§input_sequence: u64§state: ContextState§runtime_inputs: ContentDigest§policy_digest: ContentDigest§rendered_snapshot: ContentDigest§selections: Vec<ContextSelection>§input_budget_tokens: u32§projected_tokens: u32§pressure_ppm: u32§cache_prefix: Option<CachePrefixBoundary>Implementations§
Source§impl ContextCandidate
impl ContextCandidate
pub fn bind( &self, prompt_measurement: ContentDigest, provider_route: ContentDigest, ) -> Result<(ContextPlan, ContextExecutionInput), ContextContractError>
Trait Implementations§
Source§impl Clone for ContextCandidate
impl Clone for ContextCandidate
Source§fn clone(&self) -> ContextCandidate
fn clone(&self) -> ContextCandidate
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 ContextCandidate
impl Debug for ContextCandidate
Source§impl<'de> Deserialize<'de> for ContextCandidate
impl<'de> Deserialize<'de> for ContextCandidate
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 ContextCandidate
Source§impl PartialEq for ContextCandidate
impl PartialEq for ContextCandidate
Source§impl Serialize for ContextCandidate
impl Serialize for ContextCandidate
impl StructuralPartialEq for ContextCandidate
Auto Trait Implementations§
impl Freeze for ContextCandidate
impl RefUnwindSafe for ContextCandidate
impl Send for ContextCandidate
impl Sync for ContextCandidate
impl Unpin for ContextCandidate
impl UnsafeUnpin for ContextCandidate
impl UnwindSafe for ContextCandidate
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