pub struct MetricsReport {
pub started_speaking_at: Option<Timestamp>,
pub stopped_speaking_at: Option<Timestamp>,
pub transcription_delay: Option<f64>,
pub end_of_turn_delay: Option<f64>,
pub on_user_turn_completed_delay: Option<f64>,
pub llm_node_ttft: Option<f64>,
pub tts_node_ttfb: Option<f64>,
pub e2e_latency: Option<f64>,
pub llm_node_tps: Option<f64>,
pub llm_node_ttfs: Option<f64>,
}Fields§
§started_speaking_at: Option<Timestamp>§stopped_speaking_at: Option<Timestamp>§transcription_delay: Option<f64>§end_of_turn_delay: Option<f64>§on_user_turn_completed_delay: Option<f64>§llm_node_ttft: Option<f64>§tts_node_ttfb: Option<f64>§e2e_latency: Option<f64>§llm_node_tps: Option<f64>§llm_node_ttfs: Option<f64>Implementations§
Source§impl MetricsReport
impl MetricsReport
Sourcepub fn transcription_delay(&self) -> f64
pub fn transcription_delay(&self) -> f64
Returns the value of transcription_delay, or the default value if transcription_delay is unset.
Sourcepub fn end_of_turn_delay(&self) -> f64
pub fn end_of_turn_delay(&self) -> f64
Returns the value of end_of_turn_delay, or the default value if end_of_turn_delay is unset.
Sourcepub fn on_user_turn_completed_delay(&self) -> f64
pub fn on_user_turn_completed_delay(&self) -> f64
Returns the value of on_user_turn_completed_delay, or the default value if on_user_turn_completed_delay is unset.
Sourcepub fn llm_node_ttft(&self) -> f64
pub fn llm_node_ttft(&self) -> f64
Returns the value of llm_node_ttft, or the default value if llm_node_ttft is unset.
Sourcepub fn tts_node_ttfb(&self) -> f64
pub fn tts_node_ttfb(&self) -> f64
Returns the value of tts_node_ttfb, or the default value if tts_node_ttfb is unset.
Sourcepub fn e2e_latency(&self) -> f64
pub fn e2e_latency(&self) -> f64
Returns the value of e2e_latency, or the default value if e2e_latency is unset.
Sourcepub fn llm_node_tps(&self) -> f64
pub fn llm_node_tps(&self) -> f64
Returns the value of llm_node_tps, or the default value if llm_node_tps is unset.
Sourcepub fn llm_node_ttfs(&self) -> f64
pub fn llm_node_ttfs(&self) -> f64
Returns the value of llm_node_ttfs, or the default value if llm_node_ttfs is unset.
Trait Implementations§
Source§impl Clone for MetricsReport
impl Clone for MetricsReport
impl Copy for MetricsReport
Source§impl Debug for MetricsReport
impl Debug for MetricsReport
Source§impl Default for MetricsReport
impl Default for MetricsReport
§impl<'de> Deserialize<'de> for MetricsReport
impl<'de> Deserialize<'de> for MetricsReport
§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 Message for MetricsReport
impl Message for MetricsReport
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for MetricsReport
impl PartialEq for MetricsReport
§impl Serialize for MetricsReport
impl Serialize for MetricsReport
impl StructuralPartialEq for MetricsReport
Auto Trait Implementations§
impl Freeze for MetricsReport
impl RefUnwindSafe for MetricsReport
impl Send for MetricsReport
impl Sync for MetricsReport
impl Unpin for MetricsReport
impl UnsafeUnpin for MetricsReport
impl UnwindSafe for MetricsReport
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