pub struct EngineProviderExecutionRequestV1 {
pub schema_version: u32,
pub transport_version: u32,
pub engine_interface_version: SemanticVersion,
pub attempt_id: AttemptId,
pub task: TaskEnvelopeV1,
pub plan: ExecutionPlanV1,
pub materialization: EngineContextSourceMaterializationResponseV1,
pub query: String,
pub max_output_tokens: u32,
}Expand description
Host-prepared request; its fields are correlation and integrity inputs, not caller authorization or provider-selection authority.
Fields§
§schema_version: u32§transport_version: u32§engine_interface_version: SemanticVersion§attempt_id: AttemptId§task: TaskEnvelopeV1§plan: ExecutionPlanV1§materialization: EngineContextSourceMaterializationResponseV1§query: String§max_output_tokens: u32Implementations§
Source§impl EngineProviderExecutionRequestV1
impl EngineProviderExecutionRequestV1
pub fn validate(&self) -> Result<(), ValidationError>
Sourcepub fn canonical_bytes(&self) -> Result<Vec<u8>, ValidationError>
pub fn canonical_bytes(&self) -> Result<Vec<u8>, ValidationError>
Recursively sorted request JSON, without the digest domain prefix.
Sourcepub fn canonical_digest(&self) -> Result<Sha256Digest, ValidationError>
pub fn canonical_digest(&self) -> Result<Sha256Digest, ValidationError>
Digest over the fixed domain followed by canonical request bytes.
Sourcepub fn canonical_intent_digest(&self) -> Result<Sha256Digest, ValidationError>
pub fn canonical_intent_digest(&self) -> Result<Sha256Digest, ValidationError>
Stable admission identity before the store assigns an attempt ID. Only attempt_id is excluded; every task, plan, query and context field binds.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EngineProviderExecutionRequestV1
impl<'de> Deserialize<'de> for EngineProviderExecutionRequestV1
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 EngineProviderExecutionRequestV1
impl StructuralPartialEq for EngineProviderExecutionRequestV1
Auto Trait Implementations§
impl Forget for EngineProviderExecutionRequestV1
impl Freeze for EngineProviderExecutionRequestV1where
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<String>: Freeze,
PhantomData<CapabilityId>: Freeze,
PhantomData<CapabilityBindingV1>: Freeze,
PhantomData<ContextSelectionV1>: Freeze,
*const LeafNode<String, ContextProviderStatsV1> is !null: Freeze,
PhantomData<Box<(String, ContextProviderStatsV1)>>: Freeze,
PhantomData<EvidenceRefV1>: Freeze,
PhantomData<EngineContextSourceDescriptorV1>: Freeze,
impl Move for EngineProviderExecutionRequestV1
impl RefUnwindSafe for EngineProviderExecutionRequestV1
impl Send for EngineProviderExecutionRequestV1
impl Sync for EngineProviderExecutionRequestV1
impl Unpin for EngineProviderExecutionRequestV1
impl UnsafeUnpin for EngineProviderExecutionRequestV1where
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<CapabilityId>: UnsafeUnpin,
PhantomData<CapabilityBindingV1>: UnsafeUnpin,
PhantomData<ContextSelectionV1>: UnsafeUnpin,
*const LeafNode<String, ContextProviderStatsV1> is !null: UnsafeUnpin,
PhantomData<Box<(String, ContextProviderStatsV1)>>: UnsafeUnpin,
PhantomData<EvidenceRefV1>: UnsafeUnpin,
PhantomData<EngineContextSourceDescriptorV1>: UnsafeUnpin,
impl UnwindSafe for EngineProviderExecutionRequestV1where
RawVecInner: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
BTreeMap<String, ContextProviderStatsV1>: UnwindSafe,
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