steep-balloon-41261
11/04/2025, 2:32 PMtall-airline-16756
11/04/2025, 2:32 PMtall-airline-16756
11/04/2025, 2:34 PMagent.update_chat_ctx(...) with a ChatMessage. This persists the message in the context. Docs
• To add user text and immediately trigger a reply: call session.generate_reply(user_input="..."). This appends the user message and invokes the LLM. Docs
• To inject per-turn context (e.g., your classifier result) before LLM runs: implement on_user_turn_completed(...), modify new_message or add extra messages. Persist with agent.update_chat_ctx(...) if you want them saved. Docs
• From a client, send text on the lk.chat text stream; the agent receives and processes it automatically. Docs
If you’re using Python, do you want a minimal code snippet for agent.update_chat_ctx(...) or session.generate_reply(...)?
Sources: Agents v0.x migration guide - Python | LiveKit docs | Pipeline nodes and hooks | LiveKit docs | Agents v0.x migration guide - Node.js | LiveKit Docs | Agent speech and audio | LiveKit docs | Sending text | LiveKit docsbetter-sandwich-65834
11/04/2025, 2:35 PMclassifier = LLM.with_azure(
azure_deployment=settings.LLM_MODEL,
temperature=0.0,
)tall-airline-16756
11/04/2025, 2:36 PM