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 EngineProviderExecutionRequestV1
impl Move for EngineProviderExecutionRequestV1
impl RefUnwindSafe for EngineProviderExecutionRequestV1
impl Send for EngineProviderExecutionRequestV1
impl Sync for EngineProviderExecutionRequestV1
impl Unpin for EngineProviderExecutionRequestV1
impl UnsafeUnpin for EngineProviderExecutionRequestV1
impl UnwindSafe for EngineProviderExecutionRequestV1
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