does anyone know why the ai support agent stops re...
# ask-ai
s
does anyone know why the ai support agent stops responding after a while?
t
Thanks for reaching out, Jason. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!
s
hi -- I just tested the agent. It spoke the introduction, I then answered, and then it asked the right first interview question. it detected my answer correctly, but then nothing happened. here's what cursor is telling me, and I want you to tell me what you think the problem is: Looking at the agent logs you provided, I can see exactly what happened: 1. ✅ Introduction worked perfectly - the agent spoke the introduction and you responded "Sure." 2. ✅ First question worked perfectly - the agent asked the correct first question from the interview plan 3. ✅ Speech detection worked - the agent detected your response "Nim's okay. I'd give it, like, a one out of ten." 4. ❌ Agent crashed during LLM processing - Here's the exact error: text Apply to total_agent.... RuntimeError: no activity context found, the agent is not running The specific problem: In the InterviewPlanningTask.llm_node method, this line is failing: python Apply to total_agent.... return Agent.default.llm_node(self, chat_ctx, tools, model_settings) This line is trying to call the parent class's llm_node method, but it's doing so incorrectly. The Agent.default.llm_node call doesn't have the proper activity context that LiveKit requires. Why this happens: The llm_node override in a task needs to use the session's LLM directly, not try to call back to the agent's default LLM node method. The minimal fix needed: Replace that one problematic line with: python Apply to total_agent.... return await self.session.agent.llm.generate(chat_ctx) This is a very small change - just replacing one line that's causing the crash. Would you like me to make just this single line change?