Skip to main content

Turn

Struct Turn 

Source
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: u32

1-based, conversation order

§role: i32

ASSISTANT = 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

Source

pub fn role(&self) -> ChatRole

Returns the enum value of role, or the default if the field is set to an invalid enum value.

Source

pub fn set_role(&mut self, value: ChatRole)

Sets role to the provided enum value.

Source

pub fn start_ms(&self) -> u32

Returns the value of start_ms, or the default value if start_ms is unset.

Source

pub fn end_ms(&self) -> u32

Returns the value of end_ms, or the default value if end_ms is unset.

Source

pub fn stt_delay_ms(&self) -> u32

Returns the value of stt_delay_ms, or the default value if stt_delay_ms is unset.

Source

pub fn llm_ttft_ms(&self) -> u32

Returns the value of llm_ttft_ms, or the default value if llm_ttft_ms is unset.

Source

pub fn llm_ttfs_ms(&self) -> u32

Returns the value of llm_ttfs_ms, or the default value if llm_ttfs_ms is unset.

Source

pub fn llm_tps(&self) -> f32

Returns the value of llm_tps, or the default value if llm_tps is unset.

Source

pub fn tts_ttfb_ms(&self) -> u32

Returns the value of tts_ttfb_ms, or the default value if tts_ttfb_ms is unset.

Source

pub fn e2e_latency_ms(&self) -> u32

Returns the value of e2e_latency_ms, or the default value if e2e_latency_ms is unset.

Source

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.

Source

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.

Source

pub fn turn_taking_score(&self) -> f32

Returns the value of turn_taking_score, or the default value if turn_taking_score is unset.

Source

pub fn conciseness(&self) -> f32

Returns the value of conciseness, or the default value if conciseness is unset.

Source

pub fn eot_misprediction(&self) -> bool

Returns the value of eot_misprediction, or the default value if eot_misprediction is unset.

Source

pub fn awkward_silence(&self) -> bool

Returns the value of awkward_silence, or the default value if awkward_silence is unset.

Source

pub fn unanswered(&self) -> bool

Returns the value of unanswered, or the default value if unanswered is unset.

Trait Implementations§

Source§

impl Clone for Turn

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Turn

Source§

impl Debug for Turn

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Turn

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for Turn

§

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 Turn

Source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
Source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
Source§

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,

Encodes the message to a newly allocated buffer.
Source§

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,

Encodes the message with a length-delimiter to a newly allocated buffer.
Source§

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,

Decodes a length-delimited instance of the message from the buffer.
Source§

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 more
Source§

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 Turn

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
§

impl Serialize for Turn

§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Turn

Auto Trait Implementations§

§

impl Freeze for Turn

§

impl RefUnwindSafe for Turn

§

impl Send for Turn

§

impl Sync for Turn

§

impl Unpin for Turn

§

impl UnsafeUnpin for Turn

§

impl UnwindSafe for Turn

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.