pub struct ModelObservation {
pub request_id: String,
pub response: ChatResponse,
pub metadata: RunMetadata,
}Expand description
Successful provider response observed by a step-wise agent kernel.
Fields§
§request_id: StringModel request id matching ModelRequest::id.
response: ChatResponseProvider response.
metadata: RunMetadataFramework/application metadata.
Implementations§
Source§impl ModelObservation
impl ModelObservation
Sourcepub fn new(request_id: impl Into<String>, response: ChatResponse) -> Self
pub fn new(request_id: impl Into<String>, response: ChatResponse) -> Self
Constructs a model observation.
Sourcepub fn with_metadata(self, metadata: RunMetadata) -> Self
pub fn with_metadata(self, metadata: RunMetadata) -> Self
Sets framework/application metadata.
Trait Implementations§
Source§impl Clone for ModelObservation
impl Clone for ModelObservation
Source§fn clone(&self) -> ModelObservation
fn clone(&self) -> ModelObservation
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 ModelObservation
impl Debug for ModelObservation
Source§impl PartialEq for ModelObservation
impl PartialEq for ModelObservation
impl StructuralPartialEq for ModelObservation
Auto Trait Implementations§
impl Freeze for ModelObservation
impl RefUnwindSafe for ModelObservation
impl Send for ModelObservation
impl Sync for ModelObservation
impl Unpin for ModelObservation
impl UnsafeUnpin for ModelObservation
impl UnwindSafe for ModelObservation
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