many-forest-60185
02/19/2026, 4:17 AMtall-airline-16756
02/19/2026, 4:17 AMtall-airline-16756
02/19/2026, 4:18 AMMAX_TOKENS or related errors when max_output_tokens is set too low). That will result in a failed response which can appear as the node “stopping.”
• Resource exhaustion or worker pool overload on the agent server can cause job failures or unexpected terminations of child processes.
• Upstream STT failures (e.g., aggressive noise cancellation) may suppress speech input and make the pipeline appear stuck even though the LLM node is functioning.
• A crash of the agent server process will terminate all running jobs, making it seem like the LLM node brought down the pipeline.
Practical diagnostic steps
1. Check the agent server and job logs around the time of the failure.
◦ Look for job-level crash traces versus agent-server-level errors. If the agent server crashed, you’ll see that parent process termination.
1. Inspect LLM responses and error messages.
◦ Look for token-limit errors (e.g., MAX_TOKENS) or other model errors. If present, increase or omit max_output_tokens.
1. Monitor resource usage on the agent server.
◦ CPU, memory, and process counts can reveal worker exhaustion or out-of-memory crashes.
1. Verify STT input quality.
◦ Disable or test without noise cancellation to ensure the STT is receiving speech; missed utterances can halt downstream flow.
1. Reproduce with a minimal test job.
◦ Run an isolated STT→LLM→TTS job with logging enabled to capture where the pipeline stops.
Mitigations
• Adjust LLM parameters: increase or remove max_output_tokens to avoid hidden token limits (known with some Gemini models).
• Scale or tune the agent server worker pool and host resources to reduce job failures due to resource exhaustion.
• Temporarily disable noise suppression to confirm STT is not dropping speech.
• Add robust error-handling/retries for LLM node failures so a single failed inference doesn’t block the whole pipeline.
If you’d like, I can help further — please tell me:
• Are you seeing specific error messages (logs) when the LLM node “stops”? Paste a short excerpt if possible.
• Is the entire agent server restarting, or only individual jobs failing?
• Which LLM model and max_output_tokens settings are you using?
With that info I can suggest targeted fixes or steps to reproduce and isolate the issue.
Sources: Pipeline nodes and hooks | LiveKit Documentation | Self-hosted deployments | LiveKit Documentation | Troubleshooting STT not picking up utterances | LiveKitmany-forest-60185
02/19/2026, 4:33 AMtall-airline-16756
02/19/2026, 4:34 AMmax_output_tokens is cumulative across turns (session-wide) or applies per inference request.
Short answer: the available LiveKit information does not specify that max_output_tokens is cumulative. The documentation does not state whether it resets each turn or accumulates over the session.
What you can do next
• Check the LLM provider’s behavior (OpenAI, Anthropic, Gemini) because token-limit semantics are determined by the model API; some providers treat limits per request.
• Test it empirically: run back-to-back inference requests with controlled prompts and observe whether token usage is enforced per response or across the session.
• If you’re seeing truncated or failed responses, try increasing or omitting max_output_tokens for that request (this is a known mitigation for Gemini-related MAX_TOKENS errors).
If you want, share:
• which LLM provider/model you’re using and your current max_output_tokens setting — I can suggest a specific test or configuration to confirm behavior and avoid token-limit failures. Sources: Troubleshooting STT not picking up utterances | LiveKit | Anthropic Claude LLM plugin guide | LiveKit Documentation | Gemini Live API plugin | LiveKit Documentation