I have noticed that most of the delay I have in my...
# agents
b
I have noticed that most of the delay I have in my agent is in my LLM's TTFT. I am using AWS Bedrock Anthropic Claude Sonnet 4. I have found that the intelligence is best with this model to follow prompts and tool instructions. The problem is sometimes my time to first token is slow. It is actually the slowest part of the pipeline: 2025-09-02 111728,023 - INFO livekit.agents - LLM metrics {"ttft": 2.01, "prompt_tokens": 8868, "prompt_cached_tokens": 0, "completion_tokens": 34, "tokens_per_second": 12.84} 2025-09-02 111729,946 - INFO livekit.agents - STT metrics {"audio_duration": 5.0} 2025-09-02 111730,171 - INFO livekit.agents - TTS metrics {"ttfb": 0.31654700031504035, "audio_duration": 4.49} I noticed there are thinking sounds for the tools, but I have found my tools function has completed and the reponse has been sent to the LLM. The wait is really on the LLM response with the tool results. How do others deal with this type of delay?
f
Bedrock seems to be the slowest vendor for Sonnet 4: https://openrouter.ai/anthropic/claude-sonnet-4/providers