Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions livekit-agents/livekit/agents/voice/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -1051,6 +1051,10 @@ def _handle_task_done(_: asyncio.Task[Any]) -> None:
# set the chat_ctx directly, `session._update_activity` will sync it to the rt_session if needed
old_agent._chat_ctx.items[:] = merged_chat_ctx.items

# the call sorts after the sub-conversation it produced, next to its output
if (fnc_call := task_info.function_call) is not None:
fnc_call.created_at = time.time()

await session._update_activity(
old_agent, new_activity="resume", wait_on_enter=False
)
Expand Down
Loading