green-airline-46106
09/04/2025, 3:07 PMupdate_options on a vad instance that is stored in JobContext.proc.userdata, will it update the options across all calls running on the agent? Or just with that call?tall-airline-16756
09/04/2025, 3:07 PMtall-airline-16756
09/04/2025, 3:08 PMupdate_options on a VAD instance stored in JobContext.proc.userdata, it updates the options only for that specific call. It won’t change anything for other calls running on the agent.
That’s because each call or session gets its own VADStream instance, and these streams are handled locally within the VAD instance for that call. So, any updates you make to the options only affect the streams tied to the current VAD instance.
Sources: examples/src/basic_agent.ts | examples/voice_agents/multi_agent.py