pub struct StepPerformance {
pub step_time: Duration,
pub response_time: Duration,
pub time_to_first_output: Option<Duration>,
pub output_tokens_per_second: Option<f64>,
pub effective_output_tokens_per_second: f64,
pub input_tokens_per_second: Option<f64>,
pub effective_total_tokens_per_second: f64,
pub time_between_output_chunks: Option<ChunkTimingStats>,
}Expand description
Timing and throughput of a step.
Fields§
§step_time: DurationWall time of the whole step (model call and tool executions).
response_time: DurationTime from the request until the response (or stream end).
time_to_first_output: Option<Duration>Streaming: time until the first content part.
output_tokens_per_second: Option<f64>Streaming: output tokens per second after the first output.
effective_output_tokens_per_second: f64Output tokens divided by the response time.
input_tokens_per_second: Option<f64>Streaming: input tokens divided by the time to first output.
effective_total_tokens_per_second: f64Input plus output tokens divided by the response time.
time_between_output_chunks: Option<ChunkTimingStats>Streaming: statistics of the gaps between content parts.
Implementations§
Trait Implementations§
Source§impl Clone for StepPerformance
impl Clone for StepPerformance
Source§fn clone(&self) -> StepPerformance
fn clone(&self) -> StepPerformance
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 StepPerformance
impl Debug for StepPerformance
Source§impl Default for StepPerformance
impl Default for StepPerformance
Source§fn default() -> StepPerformance
fn default() -> StepPerformance
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StepPerformance
impl<'de> Deserialize<'de> for StepPerformance
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 StepPerformance
impl PartialEq for StepPerformance
Source§impl Serialize for StepPerformance
impl Serialize for StepPerformance
impl StructuralPartialEq for StepPerformance
Auto Trait Implementations§
impl Freeze for StepPerformance
impl RefUnwindSafe for StepPerformance
impl Send for StepPerformance
impl Sync for StepPerformance
impl Unpin for StepPerformance
impl UnsafeUnpin for StepPerformance
impl UnwindSafe for StepPerformance
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