The problem
A patient lookup, a scheduling request, and a general question need different tools. I built the voice-to-workflow path and worked on what the interface should do when one of those paths fails.
What I worked on
One specialist failure should not end the conversation
An exception inside a specialist subgraph could escape into the voice session.
I added error boundaries around the specialist calls and explicit fallback responses for classifier and general-response failures. The session can report the failed action without presenting it as a successful tool result.
Keep the conversation and its actions inspectable
A follow-up question needs prior context, and a state-changing tool call needs more than a line of generated text.
I added multi-turn history to the agent state and audit records around tool execution. The implementation includes argument sanitization and records failure as well as success.
The tradeoff These are prototype engineering controls. They do not establish clinical validation or regulatory certification.
Put voice and record context in one workspace
I replaced a fragmented chat flow with a care cockpit that keeps speech input, spoken responses, and the relevant patient context together. I also moved repeated model construction into a shared factory so specialist agents use the same provider configuration.
What I take forward
I want the interface to distinguish “the assistant replied” from “the requested action completed.” Voice makes that distinction easier to overlook, so the surrounding workflow must make it explicit.