Skip to content

Commit ec42841

Browse files
committed
feat(appkit): agent chat UI primitives
Signed-off-by: Hubert Zub <hubert.zub@databricks.com>
1 parent db77efa commit ec42841

18 files changed

Lines changed: 2019 additions & 434 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import type { UIMessage } from "ai";
2+
3+
// Must be a `type` (not `interface`) to satisfy the AI SDK's
4+
// `UIDataTypes = Record<string, unknown>` constraint.
5+
export type AgentDataParts = {
6+
"approval-pending": {
7+
approvalId: string;
8+
streamId: string;
9+
toolName: string;
10+
args: unknown;
11+
annotations?: {
12+
effect?: "read" | "write" | "update" | "destructive";
13+
readOnly?: boolean;
14+
destructive?: boolean;
15+
idempotent?: boolean;
16+
};
17+
};
18+
};
19+
20+
export type AgentUIMessage = UIMessage<unknown, AgentDataParts>;

0 commit comments

Comments
 (0)