pub struct ModelCallEndEvent {
pub runtime_context: Option<JsonValue>,
pub call_id: String,
pub step_number: u32,
pub model: ModelIdentity,
pub content: Option<Vec<StepContent>>,
pub finish_reason: FinishReason,
pub usage: Usage,
pub response: ResponseMetadata,
pub performance: StepPerformance,
pub warnings: Vec<Warning>,
}Expand description
A model call finished and its tool calls were parsed.
Fields§
§runtime_context: Option<JsonValue>Application runtime state (available to hooks; telemetry requires include_runtime_context).
call_id: StringCall id.
step_number: u32Zero-based step index.
model: ModelIdentityThe model.
content: Option<Vec<StepContent>>Parsed content (only when record_outputs).
finish_reason: FinishReasonFinish reason.
usage: UsageUsage.
response: ResponseMetadataResponse metadata.
performance: StepPerformanceTiming.
warnings: Vec<Warning>Warnings.
Trait Implementations§
Source§impl Clone for ModelCallEndEvent
impl Clone for ModelCallEndEvent
Source§fn clone(&self) -> ModelCallEndEvent
fn clone(&self) -> ModelCallEndEvent
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 moreAuto Trait Implementations§
impl Freeze for ModelCallEndEvent
impl RefUnwindSafe for ModelCallEndEvent
impl Send for ModelCallEndEvent
impl Sync for ModelCallEndEvent
impl Unpin for ModelCallEndEvent
impl UnsafeUnpin for ModelCallEndEvent
impl UnwindSafe for ModelCallEndEvent
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