Hang up when the model keeps failing

November 10, 2026 · release

@voicethere/agent 0.35.0

An LLM agent whose model call fails says its fallback text and carries on. With a wrong API key or an empty provider account, that means a caller who hears the same apology on every turn. Version 0.35.0 of the agent package adds a way to end that call.

Set failedReplies in voicethere.llm.json, or fill Close after failed replies in a row on the project's LLM tab. After that many failed replies in a row, the agent speaks and chats your closing message, waits up to 15 seconds for the speech to finish, and disconnects the caller with the reason llm_failed_replies. A completed reply resets the count, and the field is off when empty.

The same release adds vendorConfig, a JSON object (up to 8 KB) that goes into the provider request next to the fields the agent sets. Use it for options such as top_p that the form has no field for. The LLM tab has a Vendor settings (JSON) box for it. Keys the agent sets itself, like the model or the messages, are rejected with the key named, and the Gemini SDK ignores keys it does not know.

Try it

Similar posts

← All posts