I want one agent to have a shorter user_away timeout compared to other ones? Is it possible to change during the session? Or to configure per-agent?
The `user_away_timeout` is currently a session-level configuration, not a per-agent configuration. If you wanted to do that, you would need separate agent sessions.
Or you could set it to the shortest one and have logic to determine if it should handle it. Or you could just make your own user away timers and key off of those.
Thanks for the quick answer. Separate agent sessions seems an overkill for this. It is possible to dynamically update the min_endpointing_delay (thanks to this), would it be reasonable to update this timeout too? Shall I create an issue for this?
The shortest one is the exception, so I don’t want to make the default have to wait. I guess I’ll have to set a middle point
and how can I test user away events? I have an agent who transfers to another agent if the user is away. Usually I would do
result = await session.run(“i want chocolate”)
but for events I’m not sure about the syntax. I found I can do
session.emit(“user_state_changed”, UserStateChangedEvent(old_state=“listening”, new_state=“away”))
but the result of this is None and not sure how to assert