adamant-gigabyte-17689
11/28/2025, 11:08 AMtall-airline-16756
11/28/2025, 11:08 AMtall-airline-16756
11/28/2025, 11:08 AMAgentSession.aclose() to stop the session and its worker activity.
• If you're controlling a running job, use the JobContext shutdown methods to terminate the agent job and its worker process (this shuts down the job rather than toggling a worker flag).
• If your goal is to stop audio processing only, use session.input.set_audio_enabled(false) and/or session.output.set_audio_enabled(false).
Which behavior do you want — fully stop the session/job, or just disable audio or another capability? Tell me which one and I’ll provide the exact code snippet or steps.
Sources: Job lifecycle | LiveKit docs | Text and transcriptions | LiveKit docsadamant-gigabyte-17689
11/28/2025, 11:10 AMtall-airline-16756
11/28/2025, 11:10 AMawait AgentSession.aclose() in your code before exiting to gracefully end the session.
• If the agent is running a job, call the JobContext shutdown methods to terminate that job and its worker.
To help you further, please tell me:
1. Are you running the agent as a long‑running cloud job (e.g., deployed) or just running a local script that connects to the cloud?
2. Do you want a code snippet to call aclose() on shutdown (example for Python), or instructions for terminating the session/job from the cloud console?