We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2ed0d8 commit 9021029Copy full SHA for 9021029
1 file changed
packages/langbase/src/pipes/pipes.ts
@@ -3,9 +3,23 @@ import {Stream} from '../common/stream';
3
4
export type Role = 'user' | 'assistant' | 'system' | 'tool';
5
6
+export interface Function {
7
+ name: string;
8
+ arguments: string;
9
+}
10
+
11
+export interface ToolCall {
12
+ id: string;
13
+ type: 'function';
14
+ function: Function;
15
16
17
export interface Message {
18
role: Role;
- content: string;
19
+ content: string | null;
20
+ name?: string;
21
+ tool_call_id?: string;
22
+ tool_calls?: ToolCall[];
23
}
24
25
export interface GenerateOptions {
0 commit comments