Documentation

Turn extends Message
in package

Generated from protobuf message <code>livekit.SimulationRun.JobMetrics.Turn</code>

Table of Contents

Properties

$agent_reported_e2e_latency_ms  : mixed
Generated from protobuf field <code>optional uint32 agent_reported_e2e_latency_ms = 11;</code>
$conciseness_score  : mixed
Generated from protobuf field <code>optional float conciseness_score = 12;</code>
$end_ms  : mixed
Generated from protobuf field <code>optional uint32 end_ms = 4;</code>
$enunciation_score  : mixed
judged 0-1: this turn's key entities audibly intact
$index  : mixed
1-based, conversation order
$llm_ttfs_ms  : mixed
Generated from protobuf field <code>optional uint32 llm_ttfs_ms = 8;</code>
$llm_ttft_ms  : mixed
Generated from protobuf field <code>optional uint32 llm_ttft_ms = 7;</code>
$naturalness_score  : mixed
Generated from protobuf field <code>optional float naturalness_score = 13;</code>
$response_latency_ms  : mixed
Agent-turn measurements; a negative response latency is a cut-in (the agent started before the caller's turn ended).
$role  : mixed
ASSISTANT — the agent under test, USER — simulator persona.
$start_ms  : mixed
relative to t0; unset if the turn could not be aligned to the audio
$transcription_delay_ms  : mixed
Generated from protobuf field <code>optional uint32 transcription_delay_ms = 6;</code>
$tts_ttfa_ms  : mixed
Generated from protobuf field <code>optional uint32 tts_ttfa_ms = 9;</code>
$tts_ttfb_ms  : mixed
Generated from protobuf field <code>optional uint32 tts_ttfb_ms = 10;</code>
$flags  : mixed
judge failure tags ("verbosity_or_filler", ...)

Methods

__construct()  : mixed
Constructor.
clearAgentReportedE2ELatencyMs()  : mixed
clearConcisenessScore()  : mixed
clearEndMs()  : mixed
clearEnunciationScore()  : mixed
clearLlmTtfsMs()  : mixed
clearLlmTtftMs()  : mixed
clearNaturalnessScore()  : mixed
clearResponseLatencyMs()  : mixed
clearStartMs()  : mixed
clearTranscriptionDelayMs()  : mixed
clearTtsTtfaMs()  : mixed
clearTtsTtfbMs()  : mixed
getAgentReportedE2ELatencyMs()  : int
Generated from protobuf field <code>optional uint32 agent_reported_e2e_latency_ms = 11;</code>
getConcisenessScore()  : float
Generated from protobuf field <code>optional float conciseness_score = 12;</code>
getEndMs()  : int
Generated from protobuf field <code>optional uint32 end_ms = 4;</code>
getEnunciationScore()  : float
judged 0-1: this turn's key entities audibly intact
getFlags()  : RepeatedField
judge failure tags ("verbosity_or_filler", ...)
getIndex()  : int
1-based, conversation order
getLlmTtfsMs()  : int
Generated from protobuf field <code>optional uint32 llm_ttfs_ms = 8;</code>
getLlmTtftMs()  : int
Generated from protobuf field <code>optional uint32 llm_ttft_ms = 7;</code>
getNaturalnessScore()  : float
Generated from protobuf field <code>optional float naturalness_score = 13;</code>
getResponseLatencyMs()  : int
Agent-turn measurements; a negative response latency is a cut-in (the agent started before the caller's turn ended).
getRole()  : int
ASSISTANT — the agent under test, USER — simulator persona.
getStartMs()  : int
relative to t0; unset if the turn could not be aligned to the audio
getTranscriptionDelayMs()  : int
Generated from protobuf field <code>optional uint32 transcription_delay_ms = 6;</code>
getTtsTtfaMs()  : int
Generated from protobuf field <code>optional uint32 tts_ttfa_ms = 9;</code>
getTtsTtfbMs()  : int
Generated from protobuf field <code>optional uint32 tts_ttfb_ms = 10;</code>
hasAgentReportedE2ELatencyMs()  : mixed
hasConcisenessScore()  : mixed
hasEndMs()  : mixed
hasEnunciationScore()  : mixed
hasLlmTtfsMs()  : mixed
hasLlmTtftMs()  : mixed
hasNaturalnessScore()  : mixed
hasResponseLatencyMs()  : mixed
hasStartMs()  : mixed
hasTranscriptionDelayMs()  : mixed
hasTtsTtfaMs()  : mixed
hasTtsTtfbMs()  : mixed
setAgentReportedE2ELatencyMs()  : $this
Generated from protobuf field <code>optional uint32 agent_reported_e2e_latency_ms = 11;</code>
setConcisenessScore()  : $this
Generated from protobuf field <code>optional float conciseness_score = 12;</code>
setEndMs()  : $this
Generated from protobuf field <code>optional uint32 end_ms = 4;</code>
setEnunciationScore()  : $this
judged 0-1: this turn's key entities audibly intact
setFlags()  : $this
judge failure tags ("verbosity_or_filler", ...)
setIndex()  : $this
1-based, conversation order
setLlmTtfsMs()  : $this
Generated from protobuf field <code>optional uint32 llm_ttfs_ms = 8;</code>
setLlmTtftMs()  : $this
Generated from protobuf field <code>optional uint32 llm_ttft_ms = 7;</code>
setNaturalnessScore()  : $this
Generated from protobuf field <code>optional float naturalness_score = 13;</code>
setResponseLatencyMs()  : $this
Agent-turn measurements; a negative response latency is a cut-in (the agent started before the caller's turn ended).
setRole()  : $this
ASSISTANT — the agent under test, USER — simulator persona.
setStartMs()  : $this
relative to t0; unset if the turn could not be aligned to the audio
setTranscriptionDelayMs()  : $this
Generated from protobuf field <code>optional uint32 transcription_delay_ms = 6;</code>
setTtsTtfaMs()  : $this
Generated from protobuf field <code>optional uint32 tts_ttfa_ms = 9;</code>
setTtsTtfbMs()  : $this
Generated from protobuf field <code>optional uint32 tts_ttfb_ms = 10;</code>

Properties

$agent_reported_e2e_latency_ms

Generated from protobuf field <code>optional uint32 agent_reported_e2e_latency_ms = 11;</code>

protected mixed $agent_reported_e2e_latency_ms = null

$conciseness_score

Generated from protobuf field <code>optional float conciseness_score = 12;</code>

protected mixed $conciseness_score = null

$end_ms

Generated from protobuf field <code>optional uint32 end_ms = 4;</code>

protected mixed $end_ms = null

$enunciation_score

judged 0-1: this turn's key entities audibly intact

protected mixed $enunciation_score = null

Generated from protobuf field optional float enunciation_score = 14;

$index

1-based, conversation order

protected mixed $index = 0

Generated from protobuf field uint32 index = 1;

$llm_ttfs_ms

Generated from protobuf field <code>optional uint32 llm_ttfs_ms = 8;</code>

protected mixed $llm_ttfs_ms = null

$llm_ttft_ms

Generated from protobuf field <code>optional uint32 llm_ttft_ms = 7;</code>

protected mixed $llm_ttft_ms = null

$naturalness_score

Generated from protobuf field <code>optional float naturalness_score = 13;</code>

protected mixed $naturalness_score = null

$response_latency_ms

Agent-turn measurements; a negative response latency is a cut-in (the agent started before the caller's turn ended).

protected mixed $response_latency_ms = null

Generated from protobuf field optional int32 response_latency_ms = 5;

$role

ASSISTANT — the agent under test, USER — simulator persona.

protected mixed $role = 0

Generated from protobuf field .livekit.agent.ChatRole role = 2;

$start_ms

relative to t0; unset if the turn could not be aligned to the audio

protected mixed $start_ms = null

Generated from protobuf field optional uint32 start_ms = 3;

$transcription_delay_ms

Generated from protobuf field <code>optional uint32 transcription_delay_ms = 6;</code>

protected mixed $transcription_delay_ms = null

$tts_ttfa_ms

Generated from protobuf field <code>optional uint32 tts_ttfa_ms = 9;</code>

protected mixed $tts_ttfa_ms = null

$tts_ttfb_ms

Generated from protobuf field <code>optional uint32 tts_ttfb_ms = 10;</code>

protected mixed $tts_ttfb_ms = null

$flags

judge failure tags ("verbosity_or_filler", ...)

private mixed $flags

Generated from protobuf field repeated string flags = 15;

Methods

__construct()

Constructor.

public __construct([array<string|int, mixed> $data = null ]) : mixed
Parameters
$data : array<string|int, mixed> = null

{ Optional. Data for populating the Message object.

@type int $index
      1-based, conversation order
@type int $role
      ASSISTANT — the agent under test, USER — simulator persona.
@type int $start_ms
      relative to t0; unset if the turn could not be aligned to the audio
@type int $end_ms
@type int $response_latency_ms
      Agent-turn measurements; a negative response latency is a cut-in (the
      agent started before the caller's turn ended).
@type int $transcription_delay_ms
@type int $llm_ttft_ms
@type int $llm_ttfs_ms
@type int $tts_ttfa_ms
@type int $tts_ttfb_ms
@type int $agent_reported_e2e_latency_ms
@type float $conciseness_score
@type float $naturalness_score
@type float $enunciation_score
      judged 0-1: this turn's key entities audibly intact
@type array<string>|\Google\Protobuf\Internal\RepeatedField $flags
      judge failure tags ("verbosity_or_filler", ...)

}

clearAgentReportedE2ELatencyMs()

public clearAgentReportedE2ELatencyMs() : mixed

clearConcisenessScore()

public clearConcisenessScore() : mixed

clearEndMs()

public clearEndMs() : mixed

clearEnunciationScore()

public clearEnunciationScore() : mixed

clearLlmTtfsMs()

public clearLlmTtfsMs() : mixed

clearLlmTtftMs()

public clearLlmTtftMs() : mixed

clearNaturalnessScore()

public clearNaturalnessScore() : mixed

clearResponseLatencyMs()

public clearResponseLatencyMs() : mixed

clearStartMs()

public clearStartMs() : mixed

clearTranscriptionDelayMs()

public clearTranscriptionDelayMs() : mixed

clearTtsTtfaMs()

public clearTtsTtfaMs() : mixed

clearTtsTtfbMs()

public clearTtsTtfbMs() : mixed

getAgentReportedE2ELatencyMs()

Generated from protobuf field <code>optional uint32 agent_reported_e2e_latency_ms = 11;</code>

public getAgentReportedE2ELatencyMs() : int
Return values
int

getConcisenessScore()

Generated from protobuf field <code>optional float conciseness_score = 12;</code>

public getConcisenessScore() : float
Return values
float

getEndMs()

Generated from protobuf field <code>optional uint32 end_ms = 4;</code>

public getEndMs() : int
Return values
int

getEnunciationScore()

judged 0-1: this turn's key entities audibly intact

public getEnunciationScore() : float

Generated from protobuf field optional float enunciation_score = 14;

Return values
float

getFlags()

judge failure tags ("verbosity_or_filler", ...)

public getFlags() : RepeatedField

Generated from protobuf field repeated string flags = 15;

Return values
RepeatedField

getIndex()

1-based, conversation order

public getIndex() : int

Generated from protobuf field uint32 index = 1;

Return values
int

getLlmTtfsMs()

Generated from protobuf field <code>optional uint32 llm_ttfs_ms = 8;</code>

public getLlmTtfsMs() : int
Return values
int

getLlmTtftMs()

Generated from protobuf field <code>optional uint32 llm_ttft_ms = 7;</code>

public getLlmTtftMs() : int
Return values
int

getNaturalnessScore()

Generated from protobuf field <code>optional float naturalness_score = 13;</code>

public getNaturalnessScore() : float
Return values
float

getResponseLatencyMs()

Agent-turn measurements; a negative response latency is a cut-in (the agent started before the caller's turn ended).

public getResponseLatencyMs() : int

Generated from protobuf field optional int32 response_latency_ms = 5;

Return values
int

getRole()

ASSISTANT — the agent under test, USER — simulator persona.

public getRole() : int

Generated from protobuf field .livekit.agent.ChatRole role = 2;

Return values
int

getStartMs()

relative to t0; unset if the turn could not be aligned to the audio

public getStartMs() : int

Generated from protobuf field optional uint32 start_ms = 3;

Return values
int

getTranscriptionDelayMs()

Generated from protobuf field <code>optional uint32 transcription_delay_ms = 6;</code>

public getTranscriptionDelayMs() : int
Return values
int

getTtsTtfaMs()

Generated from protobuf field <code>optional uint32 tts_ttfa_ms = 9;</code>

public getTtsTtfaMs() : int
Return values
int

getTtsTtfbMs()

Generated from protobuf field <code>optional uint32 tts_ttfb_ms = 10;</code>

public getTtsTtfbMs() : int
Return values
int

hasAgentReportedE2ELatencyMs()

public hasAgentReportedE2ELatencyMs() : mixed

hasConcisenessScore()

public hasConcisenessScore() : mixed

hasEndMs()

public hasEndMs() : mixed

hasEnunciationScore()

public hasEnunciationScore() : mixed

hasLlmTtfsMs()

public hasLlmTtfsMs() : mixed

hasLlmTtftMs()

public hasLlmTtftMs() : mixed

hasNaturalnessScore()

public hasNaturalnessScore() : mixed

hasResponseLatencyMs()

public hasResponseLatencyMs() : mixed

hasStartMs()

public hasStartMs() : mixed

hasTranscriptionDelayMs()

public hasTranscriptionDelayMs() : mixed

hasTtsTtfaMs()

public hasTtsTtfaMs() : mixed

hasTtsTtfbMs()

public hasTtsTtfbMs() : mixed

setAgentReportedE2ELatencyMs()

Generated from protobuf field <code>optional uint32 agent_reported_e2e_latency_ms = 11;</code>

public setAgentReportedE2ELatencyMs(int $var) : $this
Parameters
$var : int
Return values
$this

setConcisenessScore()

Generated from protobuf field <code>optional float conciseness_score = 12;</code>

public setConcisenessScore(float $var) : $this
Parameters
$var : float
Return values
$this

setEndMs()

Generated from protobuf field <code>optional uint32 end_ms = 4;</code>

public setEndMs(int $var) : $this
Parameters
$var : int
Return values
$this

setEnunciationScore()

judged 0-1: this turn's key entities audibly intact

public setEnunciationScore(float $var) : $this

Generated from protobuf field optional float enunciation_score = 14;

Parameters
$var : float
Return values
$this

setFlags()

judge failure tags ("verbosity_or_filler", ...)

public setFlags(array<string|int, string>|RepeatedField $var) : $this

Generated from protobuf field repeated string flags = 15;

Parameters
$var : array<string|int, string>|RepeatedField
Return values
$this

setIndex()

1-based, conversation order

public setIndex(int $var) : $this

Generated from protobuf field uint32 index = 1;

Parameters
$var : int
Return values
$this

setLlmTtfsMs()

Generated from protobuf field <code>optional uint32 llm_ttfs_ms = 8;</code>

public setLlmTtfsMs(int $var) : $this
Parameters
$var : int
Return values
$this

setLlmTtftMs()

Generated from protobuf field <code>optional uint32 llm_ttft_ms = 7;</code>

public setLlmTtftMs(int $var) : $this
Parameters
$var : int
Return values
$this

setNaturalnessScore()

Generated from protobuf field <code>optional float naturalness_score = 13;</code>

public setNaturalnessScore(float $var) : $this
Parameters
$var : float
Return values
$this

setResponseLatencyMs()

Agent-turn measurements; a negative response latency is a cut-in (the agent started before the caller's turn ended).

public setResponseLatencyMs(int $var) : $this

Generated from protobuf field optional int32 response_latency_ms = 5;

Parameters
$var : int
Return values
$this

setRole()

ASSISTANT — the agent under test, USER — simulator persona.

public setRole(int $var) : $this

Generated from protobuf field .livekit.agent.ChatRole role = 2;

Parameters
$var : int
Return values
$this

setStartMs()

relative to t0; unset if the turn could not be aligned to the audio

public setStartMs(int $var) : $this

Generated from protobuf field optional uint32 start_ms = 3;

Parameters
$var : int
Return values
$this

setTranscriptionDelayMs()

Generated from protobuf field <code>optional uint32 transcription_delay_ms = 6;</code>

public setTranscriptionDelayMs(int $var) : $this
Parameters
$var : int
Return values
$this

setTtsTtfaMs()

Generated from protobuf field <code>optional uint32 tts_ttfa_ms = 9;</code>

public setTtsTtfaMs(int $var) : $this
Parameters
$var : int
Return values
$this

setTtsTtfbMs()

Generated from protobuf field <code>optional uint32 tts_ttfb_ms = 10;</code>

public setTtsTtfbMs(int $var) : $this
Parameters
$var : int
Return values
$this
On this page

Search results