pub struct JobMetrics {Show 20 fields
pub task_completion: Option<f32>,
pub overall_score: Option<f32>,
pub stt: Option<Stt>,
pub llm: Option<Llm>,
pub tts: Option<Tts>,
pub conversation: Option<Conversation>,
pub turns: Vec<Turn>,
pub judge_model: String,
pub has_remote_session: bool,
pub t0: Option<Timestamp>,
pub conciseness: Option<f32>,
pub unnecessary_tool_calls: Option<bool>,
pub information_loss: Option<bool>,
pub redundant_statements: Option<bool>,
pub poor_question_quality: Option<bool>,
pub conversation_progression: Option<f32>,
pub end_reason: i32,
pub caller_language: String,
pub caller_listen_language: String,
pub impairments: Option<SimulationImpairments>,
}Fields§
§task_completion: Option<f32>the scenario verdict as 1/0
overall_score: Option<f32>weighted mean of the judged and heard scores
stt: Option<Stt>§llm: Option<Llm>§tts: Option<Tts>§conversation: Option<Conversation>§turns: Vec<Turn>One entry per turn, both speakers.
judge_model: Stringtext judge for judged scores; “” if none ran
has_remote_session: boolfalse = waveform-only capture (e.g. SIP)
t0: Option<Timestamp>audio only; call start (first speech edge); turn times relative to it
conciseness: Option<f32>Judged over the authored dialog (text and audio); needs the text judge.
judged {0, 0.5, 1} per agent turn; job = mean
unnecessary_tool_calls: Option<bool>Whole-call issue flags; true = present, absent = not judged.
information_loss: Option<bool>§redundant_statements: Option<bool>§poor_question_quality: Option<bool>§conversation_progression: Option<f32>0-1, derived from the flags above
end_reason: i32How the call ended. A failing end also sets the job’s error.
caller_language: StringThe simulated caller’s language, as a language tag: what it spoke or wrote.
caller_listen_language: StringAudio only: the language the caller transcribed the agent in; “” means caller_language.
impairments: Option<SimulationImpairments>Audio only: what the caller’s audio went through before the agent heard it. Absent for a clean call.
Implementations§
Source§impl JobMetrics
impl JobMetrics
Sourcepub fn task_completion(&self) -> f32
pub fn task_completion(&self) -> f32
Returns the value of task_completion, or the default value if task_completion 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 unnecessary_tool_calls(&self) -> bool
pub fn unnecessary_tool_calls(&self) -> bool
Returns the value of unnecessary_tool_calls, or the default value if unnecessary_tool_calls is unset.
Sourcepub fn information_loss(&self) -> bool
pub fn information_loss(&self) -> bool
Returns the value of information_loss, or the default value if information_loss is unset.
Sourcepub fn redundant_statements(&self) -> bool
pub fn redundant_statements(&self) -> bool
Returns the value of redundant_statements, or the default value if redundant_statements is unset.
Sourcepub fn poor_question_quality(&self) -> bool
pub fn poor_question_quality(&self) -> bool
Returns the value of poor_question_quality, or the default value if poor_question_quality is unset.
Sourcepub fn conversation_progression(&self) -> f32
pub fn conversation_progression(&self) -> f32
Returns the value of conversation_progression, or the default value if conversation_progression is unset.
Sourcepub fn overall_score(&self) -> f32
pub fn overall_score(&self) -> f32
Returns the value of overall_score, or the default value if overall_score is unset.
Sourcepub fn end_reason(&self) -> EndReason
pub fn end_reason(&self) -> EndReason
Returns the enum value of end_reason, or the default if the field is set to an invalid enum value.
Sourcepub fn set_end_reason(&mut self, value: EndReason)
pub fn set_end_reason(&mut self, value: EndReason)
Sets end_reason to the provided enum value.
Trait Implementations§
Source§impl Clone for JobMetrics
impl Clone for JobMetrics
Source§impl Debug for JobMetrics
impl Debug for JobMetrics
Source§impl Default for JobMetrics
impl Default for JobMetrics
§impl<'de> Deserialize<'de> for JobMetrics
impl<'de> Deserialize<'de> for JobMetrics
§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 JobMetrics
impl Message for JobMetrics
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.