AgentLatencyReport class
A LatencyReport frame with per-stage timings, in seconds.
Constructors
-
AgentLatencyReport({String? sttLatency, String? tttTokenLatency, String? tttTextLatency, String? tttToolLatency, String? tttThinkingLatency, String? ttsLatency, String? totalLatency, Map<
String, dynamic> raw = const {}}) -
Creates the event.
const
-
AgentLatencyReport.fromJson(Map<
String, dynamic> json) -
Parses a
LatencyReportframe defensively. Keys:stt_latency,ttt_token_latency,ttt_text_latency,ttt_tool_latency,ttt_thinking_latency,tts_latency,total_latency.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
raw
→ Map<
String, dynamic> -
The original JSON of this event.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sttLatency → String?
-
Speech-to-text: time from audio received to transcript produced.
final
- totalLatency → String?
-
End-to-end: time from user utterance end to first audio byte.
final
- ttsLatency → String?
-
Text-to-speech: time from first text token to first audio byte.
final
- tttTextLatency → String?
-
Time to first text token from the LLM.
final
- tttThinkingLatency → String?
-
Time to first thinking token from the LLM.
final
- tttTokenLatency → String?
-
Time to first token of any type (text, tool call, or thinking).
final
- tttToolLatency → String?
-
Time to first tool-call token from the LLM.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited