pub struct Turn {Show 17 fields
pub index: u32,
pub role: i32,
pub start_ms: Option<u32>,
pub end_ms: Option<u32>,
pub stt_delay_ms: Option<u32>,
pub llm_ttft_ms: Option<u32>,
pub llm_ttfs_ms: Option<u32>,
pub llm_tps: Option<f32>,
pub tts_ttfb_ms: Option<u32>,
pub e2e_latency_ms: Option<u32>,
pub heard_e2e_latency_ms: Option<i32>,
pub time_to_yield_ms: Option<u32>,
pub turn_taking_score: Option<f32>,
pub conciseness: Option<f32>,
pub eot_misprediction: Option<bool>,
pub awkward_silence: Option<bool>,
pub unanswered: Option<bool>,
}Expand description
Rows exist for text and audio. The groups above hold the means and pools over these; anything not measured for a turn stays unset.
Fields§
§index: u321-based, conversation order
role: i32ASSISTANT = the agent under test, USER = simulator persona
start_ms: Option<u32>audio only; relative to t0; unset if the turn could not be aligned to the audio
end_ms: Option<u32>audio only
stt_delay_ms: Option<u32>needs the RemoteSession
llm_ttft_ms: Option<u32>needs the RemoteSession
llm_ttfs_ms: Option<u32>needs the RemoteSession
llm_tps: Option<f32>needs the RemoteSession
tts_ttfb_ms: Option<u32>needs the RemoteSession
e2e_latency_ms: Option<u32>needs the RemoteSession
heard_e2e_latency_ms: Option<i32>§time_to_yield_ms: Option<u32>§turn_taking_score: Option<f32>§conciseness: Option<f32>needs the text judge
eot_misprediction: Option<bool>§awkward_silence: Option<bool>§unanswered: Option<bool>Implementations§
Source§impl Turn
impl Turn
Sourcepub fn role(&self) -> ChatRole
pub fn role(&self) -> ChatRole
Returns the enum value of role, or the default if the field is set to an invalid enum value.
Sourcepub fn start_ms(&self) -> u32
pub fn start_ms(&self) -> u32
Returns the value of start_ms, or the default value if start_ms is unset.
Sourcepub fn end_ms(&self) -> u32
pub fn end_ms(&self) -> u32
Returns the value of end_ms, or the default value if end_ms is unset.
Sourcepub fn stt_delay_ms(&self) -> u32
pub fn stt_delay_ms(&self) -> u32
Returns the value of stt_delay_ms, or the default value if stt_delay_ms is unset.
Sourcepub fn llm_ttft_ms(&self) -> u32
pub fn llm_ttft_ms(&self) -> u32
Returns the value of llm_ttft_ms, or the default value if llm_ttft_ms is unset.
Sourcepub fn llm_ttfs_ms(&self) -> u32
pub fn llm_ttfs_ms(&self) -> u32
Returns the value of llm_ttfs_ms, or the default value if llm_ttfs_ms is unset.
Sourcepub fn llm_tps(&self) -> f32
pub fn llm_tps(&self) -> f32
Returns the value of llm_tps, or the default value if llm_tps is unset.
Sourcepub fn tts_ttfb_ms(&self) -> u32
pub fn tts_ttfb_ms(&self) -> u32
Returns the value of tts_ttfb_ms, or the default value if tts_ttfb_ms is unset.
Sourcepub fn e2e_latency_ms(&self) -> u32
pub fn e2e_latency_ms(&self) -> u32
Returns the value of e2e_latency_ms, or the default value if e2e_latency_ms is unset.
Sourcepub fn heard_e2e_latency_ms(&self) -> i32
pub fn heard_e2e_latency_ms(&self) -> i32
Returns the value of heard_e2e_latency_ms, or the default value if heard_e2e_latency_ms is unset.
Sourcepub fn time_to_yield_ms(&self) -> u32
pub fn time_to_yield_ms(&self) -> u32
Returns the value of time_to_yield_ms, or the default value if time_to_yield_ms is unset.
Sourcepub fn turn_taking_score(&self) -> f32
pub fn turn_taking_score(&self) -> f32
Returns the value of turn_taking_score, or the default value if turn_taking_score is unset.
Sourcepub fn conciseness(&self) -> f32
pub fn conciseness(&self) -> f32
Returns the value of conciseness, or the default value if conciseness is unset.
Sourcepub fn eot_misprediction(&self) -> bool
pub fn eot_misprediction(&self) -> bool
Returns the value of eot_misprediction, or the default value if eot_misprediction is unset.
Sourcepub fn awkward_silence(&self) -> bool
pub fn awkward_silence(&self) -> bool
Returns the value of awkward_silence, or the default value if awkward_silence is unset.
Sourcepub fn unanswered(&self) -> bool
pub fn unanswered(&self) -> bool
Returns the value of unanswered, or the default value if unanswered is unset.
Trait Implementations§
impl Copy for Turn
§impl<'de> Deserialize<'de> for Turn
impl<'de> Deserialize<'de> for Turn
§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>,
Source§impl Message for Turn
impl Message for Turn
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
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,
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,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self.