pub struct ModelRequest {
pub parts: Vec<ModelRequestPart>,
pub timestamp: Option<DateTime<Utc>>,
pub instructions: Option<String>,
pub run_id: Option<RunId>,
pub conversation_id: Option<ConversationId>,
pub metadata: Metadata,
}Expand description
Request item in canonical model history.
Fields§
§parts: Vec<ModelRequestPart>Request parts sent in one model turn.
timestamp: Option<DateTime<Utc>>Creation timestamp.
instructions: Option<String>Optional request-level instructions for the current model call.
Provider mappers apply request-level instructions from the current instruction-bearing
request, using Starweaver’s request-level instruction behavior. Use
ModelRequestPart::SystemPrompt for durable static system prompts, and use
ModelRequestPart::Instruction metadata for structured instruction parts that need
origin or dynamic-cache-boundary information, such as dynamic agent or toolset guidance.
run_id: Option<RunId>Run identifier.
conversation_id: Option<ConversationId>Conversation identifier.
metadata: MetadataApplication metadata.
Implementations§
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
impl Eq for ModelRequest
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