# Can turn detection mode be changed during runtime?

**URL:** <https://community.livekit.io/t/can-turn-detection-mode-be-changed-during-runtime/80>\
**Category:** Agents\
**Tags:** agent-development\
**Created:** [January 21, 2026, 1:22pm UTC](https://community.livekit.io/t/can-turn-detection-mode-be-changed-during-runtime/80 "2026-01-21T13:22:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LiveKit-Community](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/livekit-community/32/67_2.png) [@LiveKit-Community](https://community.livekit.io/u/LiveKit-Community)\
**Post date:** [January 21, 2026, 1:22pm UTC](https://community.livekit.io/t/can-turn-detection-mode-be-changed-during-runtime/80/1 "2026-01-21T13:22:54Z")

</div>

_This question originally came up in our Slack community and the thread has been consolidated here for long-term reference._

Is it possible to update the turn detection used by the agent during runtime?

I tried assigning `agent._turn_detection = "manual"` from `"stt"` but the agent still speaks, so I’m assuming it’s not working.

---

<div class="post-metadata">

**Author:** ![LiveKit-Community](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/livekit-community/32/67_2.png) [@LiveKit-Community](https://community.livekit.io/u/LiveKit-Community)\
**Post date:** [January 21, 2026, 1:22pm UTC](https://community.livekit.io/t/can-turn-detection-mode-be-changed-during-runtime/80/2 "2026-01-21T13:22:56Z")

</div>

Directly modifying the `_turn_detection` attribute (like `agent._turn_detection = "manual"`) is not the recommended approach, as it may not trigger the necessary internal state changes within the agent.

You should configure the turn detection when initializing the `AgentSession` or use the appropriate methods to manage the state.

If you need to change it dynamically while the agent is running, you may need to stop the current session and start a new one with the desired configuration, as the turn detection mode is typically set at the time of session creation.
