Skip to content
Open
5 changes: 5 additions & 0 deletions .changeset/agent-activity-tool-choice-als-leak.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@livekit/agents': patch
---

Fix `AgentActivity.generateReply` defaulting `toolChoice` to `'none'` on a child `AgentSession` spawned inside a tool. The previous check relied on `AsyncLocalStorage`, which leaks the parent function-call context into the child session and caused the framework to drop legitimate tool calls emitted by the child agent (e.g. the supervisor's `connect_to_caller` invocation in `WarmTransferTask`). The check now uses per-task info, matching the Python implementation.
5 changes: 5 additions & 0 deletions .changeset/warm-transfer-task.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@livekit/agents': minor
---

Add beta WarmTransferTask workflow for SIP-based human handoffs.
Binary file added agents/resources/hold_music.ogg
Binary file not shown.
3 changes: 3 additions & 0 deletions agents/src/beta/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ export {
type TaskCompletedEvent,
type TaskGroupOptions,
type TaskGroupResult,
WarmTransferTask,
type InstructionParts,
type WarmTransferResult,
type WarmTransferTaskOptions,
} from './workflows/index.js';
export { Instructions } from '../llm/index.js';
5 changes: 5 additions & 0 deletions agents/src/beta/workflows/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,9 @@ export {
type TaskGroupOptions,
type TaskGroupResult,
} from './task_group.js';
export {
WarmTransferTask,
type WarmTransferResult,
type WarmTransferTaskOptions,
} from './warm_transfer.js';
export type { InstructionParts } from './utils.js';
Loading
Loading