Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions .changeset/instructions-parts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@livekit/agents': patch
---

Add beta workflow InstructionParts exports.
2 changes: 2 additions & 0 deletions agents/src/beta/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ export {
type TaskCompletedEvent,
type TaskGroupOptions,
type TaskGroupResult,
type InstructionParts,
} from './workflows/index.js';
export { Instructions } from '../llm/index.js';
1 change: 1 addition & 0 deletions agents/src/beta/workflows/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ export {
type TaskGroupOptions,
type TaskGroupResult,
} from './task_group.js';
export type { InstructionParts } from './utils.js';
18 changes: 18 additions & 0 deletions agents/src/beta/workflows/utils.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// SPDX-FileCopyrightText: 2026 LiveKit, Inc.
//
// SPDX-License-Identifier: Apache-2.0
import type { Instructions } from '../../llm/index.js';

/**
* Customizable instruction sections for built-in workflow tasks.
*
* Leave a field unset to preserve the workflow's built-in default. Set it to
* an empty string to remove that section entirely.
*/
export interface InstructionParts {
/** Agent persona/identity: who the agent is and how it behaves. */
persona?: Instructions | string;

/** Extra instructions appended to the prompt for domain-specific context. */
extra?: Instructions | string;
}
Loading