The `'session.update_agent()'` in the AgentSession...
# ask-ai
f
The
'session.update_agent()'
in the AgentSession keeps giving
no activity context found, this task is not running
error, any way to solve this?
t
Thanks for reaching out, Luai. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
The error you're encountering with
session.update_agent()
occurs when the session hasn't been started yet. This happens because the method tries to access the
_activity
property, which is
None
when the session isn't running. To resolve this issue, ensure that your session is properly started before calling
update_agent()
. If you need further assistance, feel free to ask! Sources: Tree View: | dse-workbench
f
I started the session and agents were replying to me before
t
Thank you for clarifying. Since the session was already started and agents were replying, the issue might be occurring in the asynchronous task that
update_agent()
triggers in the background. Errors in this task might not be immediately visible when calling the method. To investigate further, I recommend checking for any errors in the
_update_activity_task
method or ensuring proper error handling for the asynchronous task. If you need additional guidance, feel free to provide more details about your implementation or any error logs you have. Sources: Tree View: | dse-workbench