wonderful-king-27408
04/29/2026, 3:09 PMtall-airline-16756
04/29/2026, 3:09 PMtall-airline-16756
04/29/2026, 3:09 PMwonderful-king-27408
04/29/2026, 3:11 PMtall-airline-16756
04/29/2026, 3:13 PMfunction_tool calls or external APIs during those turns? If yes, how many per turn and average durations.
• Average conversation context size (number of prior messages or tokens) when spikes occur.
• One or two Agent Observability trace samples (timestamp + request/session id) showing a slow turn — the Trace view will show whether time is spent in tooling, prep/encoding, or the LLM stage.
• Any warnings/errors from agent logs around those requests.
Quick next steps you can run now:
1. Open Agent Observability → Trace for a slow request and check the LLM node TTFT vs tool/prep durations.
2. Reproduce a slow call with minimal context and no tools; if it’s still ~1.5s, the delay is in network/provisioning.
3. If tools or external APIs are used, consolidate or cache results and set max_tool_steps to limit sequential calls.
4. If minimal-test still slow, try routing a small percentage of traffic to a fallback model (e.g., gpt‑4.1‑mini) to see if TTFT improves.
If you share one trace sample and whether tools are used, I’ll analyze the exact span where time is lost and give precise remediation steps.
Sources: Streamline troubleshooting with Agent Observability | LiveKit | Understand and Improve Agent Latency | LiveKit | Understand and Improve Agent Latency | LiveKit | Build Your First AI Voice Agent in Python: Complete Tutorial | LiveKit | Streamline troubleshooting with Agent Observability | LiveKit, with interactive elements