pub struct ModelRequest {
pub invocation_id: String,
pub model: String,
pub messages: Vec<ModelMessage>,
pub tools: Vec<ModelToolDefinition>,
pub generation: ModelGenerationOptions,
}Fields§
§invocation_id: StringStable across transport attempts and shared with Context invocation audit. This is correlation identity, not permission to retry a model side effect whose commit disposition is unknown.
model: String§messages: Vec<ModelMessage>§tools: Vec<ModelToolDefinition>§generation: ModelGenerationOptionsProvider-neutral generation controls. Keeping these controls on the model port prevents the HTTP adapters from leaking OpenAI- or Claude-specific DTOs into the Kernel while still preserving the semantics that Agent Infra’s canonical model contract supports.
Trait Implementations§
Source§impl Clone for ModelRequest
impl Clone for ModelRequest
Source§fn clone(&self) -> ModelRequest
fn clone(&self) -> ModelRequest
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 ModelRequest
impl Debug for ModelRequest
Source§impl<'de> Deserialize<'de> for ModelRequest
impl<'de> Deserialize<'de> for ModelRequest
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
Source§impl PartialEq for ModelRequest
impl PartialEq for ModelRequest
Source§impl Serialize for ModelRequest
impl Serialize for ModelRequest
impl StructuralPartialEq for ModelRequest
Auto Trait Implementations§
impl Freeze for ModelRequest
impl RefUnwindSafe for ModelRequest
impl Send for ModelRequest
impl Sync for ModelRequest
impl Unpin for ModelRequest
impl UnsafeUnpin for ModelRequest
impl UnwindSafe for ModelRequest
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