pub struct ModelExecutionMetadata {
pub model_name: String,
pub provider_name: Option<String>,
pub run_id: RunId,
pub conversation_id: ConversationId,
pub agent_id: Option<String>,
pub agent_name: Option<String>,
pub stream: bool,
pub context_metadata: Map<String, Value>,
}Expand description
Model wrapper metadata passed to execution hooks.
Fields§
§model_name: StringProvider model name.
provider_name: Option<String>Provider name when available.
run_id: RunIdRun id.
conversation_id: ConversationIdConversation id.
agent_id: Option<String>Agent id when present in trace metadata.
agent_name: Option<String>Agent name when present in trace metadata.
stream: boolWhether the request uses the streaming path.
context_metadata: Map<String, Value>Low-cardinality context metadata copied from the runtime request context.
Trait Implementations§
Source§impl Clone for ModelExecutionMetadata
impl Clone for ModelExecutionMetadata
Source§fn clone(&self) -> ModelExecutionMetadata
fn clone(&self) -> ModelExecutionMetadata
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 ModelExecutionMetadata
impl Debug for ModelExecutionMetadata
Source§impl<'de> Deserialize<'de> for ModelExecutionMetadata
impl<'de> Deserialize<'de> for ModelExecutionMetadata
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 ModelExecutionMetadata
Source§impl PartialEq for ModelExecutionMetadata
impl PartialEq for ModelExecutionMetadata
Source§impl Serialize for ModelExecutionMetadata
impl Serialize for ModelExecutionMetadata
impl StructuralPartialEq for ModelExecutionMetadata
Auto Trait Implementations§
impl Freeze for ModelExecutionMetadata
impl RefUnwindSafe for ModelExecutionMetadata
impl Send for ModelExecutionMetadata
impl Sync for ModelExecutionMetadata
impl Unpin for ModelExecutionMetadata
impl UnsafeUnpin for ModelExecutionMetadata
impl UnwindSafe for ModelExecutionMetadata
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