@convex-dev/agent 0.0.1-alpha.2 → 0.0.1-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +91 -95
- package/dist/commonjs/client/index.d.ts +60 -60
- package/dist/commonjs/client/index.d.ts.map +1 -1
- package/dist/commonjs/client/index.js +80 -77
- package/dist/commonjs/client/index.js.map +1 -1
- package/dist/commonjs/client/types.d.ts +1 -1
- package/dist/commonjs/client/types.d.ts.map +1 -1
- package/dist/commonjs/component/messages.d.ts +56 -56
- package/dist/commonjs/component/messages.d.ts.map +1 -1
- package/dist/commonjs/component/messages.js +128 -134
- package/dist/commonjs/component/messages.js.map +1 -1
- package/dist/commonjs/component/schema.d.ts +256 -256
- package/dist/commonjs/component/schema.d.ts.map +1 -1
- package/dist/commonjs/component/schema.js +18 -18
- package/dist/commonjs/component/schema.js.map +1 -1
- package/dist/commonjs/component/vector/index.d.ts +4 -4
- package/dist/commonjs/component/vector/index.d.ts.map +1 -1
- package/dist/commonjs/component/vector/index.js +12 -10
- package/dist/commonjs/component/vector/index.js.map +1 -1
- package/dist/commonjs/component/vector/tables.d.ts +3 -3
- package/dist/commonjs/component/vector/tables.js +6 -6
- package/dist/commonjs/component/vector/tables.js.map +1 -1
- package/dist/commonjs/validators.d.ts +5 -5
- package/dist/commonjs/validators.d.ts.map +1 -1
- package/dist/commonjs/validators.js +3 -3
- package/dist/commonjs/validators.js.map +1 -1
- package/dist/esm/client/index.d.ts +60 -60
- package/dist/esm/client/index.d.ts.map +1 -1
- package/dist/esm/client/index.js +80 -77
- package/dist/esm/client/index.js.map +1 -1
- package/dist/esm/client/types.d.ts +1 -1
- package/dist/esm/client/types.d.ts.map +1 -1
- package/dist/esm/component/messages.d.ts +56 -56
- package/dist/esm/component/messages.d.ts.map +1 -1
- package/dist/esm/component/messages.js +128 -134
- package/dist/esm/component/messages.js.map +1 -1
- package/dist/esm/component/schema.d.ts +256 -256
- package/dist/esm/component/schema.d.ts.map +1 -1
- package/dist/esm/component/schema.js +18 -18
- package/dist/esm/component/schema.js.map +1 -1
- package/dist/esm/component/vector/index.d.ts +4 -4
- package/dist/esm/component/vector/index.d.ts.map +1 -1
- package/dist/esm/component/vector/index.js +12 -10
- package/dist/esm/component/vector/index.js.map +1 -1
- package/dist/esm/component/vector/tables.d.ts +3 -3
- package/dist/esm/component/vector/tables.js +6 -6
- package/dist/esm/component/vector/tables.js.map +1 -1
- package/dist/esm/validators.d.ts +5 -5
- package/dist/esm/validators.d.ts.map +1 -1
- package/dist/esm/validators.js +3 -3
- package/dist/esm/validators.js.map +1 -1
- package/package.json +2 -2
- package/src/client/index.ts +133 -127
- package/src/client/types.ts +1 -1
- package/src/component/_generated/api.d.ts +53 -53
- package/src/component/messages.ts +139 -145
- package/src/component/schema.ts +18 -18
- package/src/component/vector/index.ts +13 -11
- package/src/component/vector/tables.ts +6 -6
- package/src/validators.ts +6 -3
|
@@ -43,10 +43,10 @@ export type ContextOptions = {
|
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
45
|
/**
|
|
46
|
-
* Whether to search across other
|
|
47
|
-
* By default, only the current
|
|
46
|
+
* Whether to search across other threads for relevant messages.
|
|
47
|
+
* By default, only the current thread is searched.
|
|
48
48
|
*/
|
|
49
|
-
|
|
49
|
+
searchOtherThreads?: boolean;
|
|
50
50
|
};
|
|
51
51
|
export type StorageOptions = {
|
|
52
52
|
saveAllInputMessages?: boolean;
|
|
@@ -62,7 +62,7 @@ export declare class Agent<AgentTools extends ToolSet> {
|
|
|
62
62
|
component: UseApi<typeof api>;
|
|
63
63
|
options: {
|
|
64
64
|
name?: string;
|
|
65
|
-
|
|
65
|
+
thread: LanguageModelV1;
|
|
66
66
|
textEmbedding?: EmbeddingModelV1<string>;
|
|
67
67
|
instructions?: string;
|
|
68
68
|
tools?: AgentTools;
|
|
@@ -71,7 +71,7 @@ export declare class Agent<AgentTools extends ToolSet> {
|
|
|
71
71
|
};
|
|
72
72
|
constructor(component: UseApi<typeof api>, options: {
|
|
73
73
|
name?: string;
|
|
74
|
-
|
|
74
|
+
thread: LanguageModelV1;
|
|
75
75
|
textEmbedding?: EmbeddingModelV1<string>;
|
|
76
76
|
instructions?: string;
|
|
77
77
|
tools?: AgentTools;
|
|
@@ -79,74 +79,74 @@ export declare class Agent<AgentTools extends ToolSet> {
|
|
|
79
79
|
maxSteps?: number;
|
|
80
80
|
});
|
|
81
81
|
/**
|
|
82
|
-
* Start a new
|
|
83
|
-
* you pass in a userId you can have it search across other
|
|
82
|
+
* Start a new thread with the agent. This will have a fresh history, though if
|
|
83
|
+
* you pass in a userId you can have it search across other threads for relevant
|
|
84
84
|
* messages as context for the LLM calls.
|
|
85
|
-
* @param ctx The context of the Convex function. From an action, you can
|
|
86
|
-
* with the agent. From a mutation, you can start a
|
|
87
|
-
* to pass to
|
|
88
|
-
* @param args The
|
|
89
|
-
* @returns The
|
|
85
|
+
* @param ctx The context of the Convex function. From an action, you can thread
|
|
86
|
+
* with the agent. From a mutation, you can start a thread and save the threadId
|
|
87
|
+
* to pass to continueThread later.
|
|
88
|
+
* @param args The thread metadata.
|
|
89
|
+
* @returns The threadId of the new thread and the thread object.
|
|
90
90
|
*/
|
|
91
|
-
|
|
91
|
+
createThread(ctx: RunActionCtx, args: {
|
|
92
92
|
/**
|
|
93
|
-
* The userId to associate with the
|
|
93
|
+
* The userId to associate with the thread. If not provided, the thread will be
|
|
94
94
|
* anonymous.
|
|
95
95
|
*/
|
|
96
96
|
userId?: string;
|
|
97
97
|
/**
|
|
98
|
-
* The parent
|
|
99
|
-
* If the
|
|
100
|
-
* you can pass in the
|
|
98
|
+
* The parent threadIds to merge with.
|
|
99
|
+
* If the thread is a continuation of one or many previous threads,
|
|
100
|
+
* you can pass in the threadIds of the parent threads to merge the histories.
|
|
101
101
|
*/
|
|
102
|
-
|
|
102
|
+
parentThreadIds?: string[];
|
|
103
103
|
/**
|
|
104
|
-
* The title of the
|
|
104
|
+
* The title of the thread. Not currently used.
|
|
105
105
|
*/
|
|
106
106
|
title?: string;
|
|
107
107
|
/**
|
|
108
|
-
* The summary of the
|
|
108
|
+
* The summary of the thread. Not currently used.
|
|
109
109
|
*/
|
|
110
110
|
summary?: string;
|
|
111
111
|
}): Promise<{
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
threadId: string;
|
|
113
|
+
thread: Thread<AgentTools>;
|
|
114
114
|
}>;
|
|
115
115
|
/**
|
|
116
|
-
* Start a new
|
|
117
|
-
* you pass in a userId you can have it search across other
|
|
116
|
+
* Start a new thread with the agent. This will have a fresh history, though if
|
|
117
|
+
* you pass in a userId you can have it search across other threads for relevant
|
|
118
118
|
* messages as context for the LLM calls.
|
|
119
119
|
* @param ctx The context of the Convex function. From a mutation, you can
|
|
120
|
-
* start a
|
|
121
|
-
* @param args The
|
|
122
|
-
* @returns The
|
|
120
|
+
* start a thread and save the threadId to pass to continueThread later.
|
|
121
|
+
* @param args The thread metadata.
|
|
122
|
+
* @returns The threadId of the new thread.
|
|
123
123
|
*/
|
|
124
|
-
|
|
124
|
+
createThread(ctx: RunMutationCtx, args: {
|
|
125
125
|
userId?: string;
|
|
126
|
-
|
|
126
|
+
parentThreadIds?: string[];
|
|
127
127
|
title?: string;
|
|
128
128
|
summary?: string;
|
|
129
129
|
}): Promise<{
|
|
130
|
-
|
|
130
|
+
threadId: string;
|
|
131
131
|
}>;
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
continueThread(ctx: RunActionCtx, { threadId, userId, }: {
|
|
133
|
+
threadId: string;
|
|
134
134
|
/**
|
|
135
|
-
* If supplied, the userId can be used to search across other
|
|
135
|
+
* If supplied, the userId can be used to search across other threads for
|
|
136
136
|
* relevant messages from the same user as context for the LLM calls.
|
|
137
137
|
*/
|
|
138
138
|
userId?: string;
|
|
139
139
|
}): Promise<{
|
|
140
|
-
|
|
140
|
+
thread: Thread<AgentTools>;
|
|
141
141
|
}>;
|
|
142
142
|
fetchContextMessages(ctx: RunQueryCtx | RunActionCtx, args: {
|
|
143
143
|
userId?: string;
|
|
144
|
-
|
|
144
|
+
threadId?: string;
|
|
145
145
|
messages: CoreMessage[];
|
|
146
146
|
parentMessageId?: string;
|
|
147
147
|
} & ContextOptions): Promise<CoreMessage[]>;
|
|
148
148
|
saveMessages(ctx: RunMutationCtx, args: {
|
|
149
|
-
|
|
149
|
+
threadId?: string;
|
|
150
150
|
userId?: string;
|
|
151
151
|
messages: CoreMessageMaybeWithId[];
|
|
152
152
|
pending?: boolean;
|
|
@@ -157,12 +157,12 @@ export declare class Agent<AgentTools extends ToolSet> {
|
|
|
157
157
|
messageIds: string[];
|
|
158
158
|
}>;
|
|
159
159
|
saveStep<TOOLS extends ToolSet>(ctx: RunMutationCtx, args: {
|
|
160
|
-
|
|
160
|
+
threadId: string;
|
|
161
161
|
messageId: string;
|
|
162
162
|
step: StepResult<TOOLS>;
|
|
163
163
|
}): Promise<void>;
|
|
164
164
|
completeMessage<TOOLS extends ToolSet>(ctx: RunMutationCtx, args: {
|
|
165
|
-
|
|
165
|
+
threadId: string;
|
|
166
166
|
messageId: string;
|
|
167
167
|
result: {
|
|
168
168
|
kind: "error";
|
|
@@ -176,32 +176,32 @@ export declare class Agent<AgentTools extends ToolSet> {
|
|
|
176
176
|
}): Promise<void>;
|
|
177
177
|
/**
|
|
178
178
|
* This behaves like {@link generateText} except that it add context based on
|
|
179
|
-
* the userId and
|
|
180
|
-
*
|
|
181
|
-
* however. To do that, use {@link
|
|
179
|
+
* the userId and threadId. It saves the input and resulting messages to the
|
|
180
|
+
* thread, if specified.
|
|
181
|
+
* however. To do that, use {@link continueThread} or {@link saveMessages}.
|
|
182
182
|
* @param ctx The context of the agent.
|
|
183
183
|
* @param args The arguments to the generateText function.
|
|
184
184
|
* @returns The result of the generateText function.
|
|
185
185
|
*/
|
|
186
|
-
generateText<TOOLS extends ToolSet, OUTPUT = never, OUTPUT_PARTIAL = never>(ctx: RunActionCtx, { userId,
|
|
186
|
+
generateText<TOOLS extends ToolSet, OUTPUT = never, OUTPUT_PARTIAL = never>(ctx: RunActionCtx, { userId, threadId, }: {
|
|
187
187
|
userId?: string;
|
|
188
|
-
|
|
188
|
+
threadId?: string;
|
|
189
189
|
}, args: TextArgs<AgentTools, TOOLS, Parameters<typeof generateText<TOOLS, OUTPUT, OUTPUT_PARTIAL>>[0]>): Promise<GenerateTextResult<TOOLS & AgentTools, OUTPUT> & GenerationOutputMetadata>;
|
|
190
|
-
streamText<TOOLS extends ToolSet, OUTPUT = never, PARTIAL_OUTPUT = never>(ctx: RunActionCtx, { userId,
|
|
190
|
+
streamText<TOOLS extends ToolSet, OUTPUT = never, PARTIAL_OUTPUT = never>(ctx: RunActionCtx, { userId, threadId }: {
|
|
191
191
|
userId?: string;
|
|
192
|
-
|
|
192
|
+
threadId?: string;
|
|
193
193
|
}, args: TextArgs<AgentTools, TOOLS, Parameters<typeof streamText<TOOLS, OUTPUT, PARTIAL_OUTPUT>>[0]>): Promise<StreamTextResult<TOOLS, PARTIAL_OUTPUT> & GenerationOutputMetadata>;
|
|
194
|
-
generateObject<T>(ctx: RunActionCtx, { userId,
|
|
194
|
+
generateObject<T>(ctx: RunActionCtx, { userId, threadId }: {
|
|
195
195
|
userId?: string;
|
|
196
|
-
|
|
196
|
+
threadId?: string;
|
|
197
197
|
}, args: Omit<Parameters<typeof generateObject>[0], "model"> & {
|
|
198
198
|
model?: LanguageModelV1;
|
|
199
199
|
} & {
|
|
200
200
|
parentMessageId?: string;
|
|
201
201
|
} & ContextOptions & StorageOptions): Promise<GenerateObjectResult<T> & GenerationOutputMetadata>;
|
|
202
|
-
streamObject<T>(ctx: RunMutationCtx, { userId,
|
|
202
|
+
streamObject<T>(ctx: RunMutationCtx, { userId, threadId }: {
|
|
203
203
|
userId?: string;
|
|
204
|
-
|
|
204
|
+
threadId?: string;
|
|
205
205
|
}, args: Omit<Parameters<typeof streamObject<T>>[0], "model"> & {
|
|
206
206
|
model?: LanguageModelV1;
|
|
207
207
|
} & {
|
|
@@ -217,12 +217,12 @@ export declare class Agent<AgentTools extends ToolSet> {
|
|
|
217
217
|
maxSteps?: number;
|
|
218
218
|
}): import("convex/server").RegisteredAction<"internal", {
|
|
219
219
|
userId?: string | undefined;
|
|
220
|
-
|
|
221
|
-
|
|
220
|
+
threadId?: string | undefined;
|
|
221
|
+
createThread?: {
|
|
222
222
|
title?: string | undefined;
|
|
223
|
+
userId?: string | undefined;
|
|
223
224
|
summary?: string | undefined;
|
|
224
|
-
|
|
225
|
-
userId: string;
|
|
225
|
+
parentThreadIds?: string[] | undefined;
|
|
226
226
|
} | undefined;
|
|
227
227
|
maxRetries?: number | undefined;
|
|
228
228
|
contextOptions?: {
|
|
@@ -237,15 +237,15 @@ export declare class Agent<AgentTools extends ToolSet> {
|
|
|
237
237
|
vectorSearch?: boolean | undefined;
|
|
238
238
|
limit: number;
|
|
239
239
|
} | undefined;
|
|
240
|
-
|
|
240
|
+
searchOtherThreads?: boolean | undefined;
|
|
241
241
|
} | undefined;
|
|
242
242
|
storageOptions?: {
|
|
243
243
|
saveAllInputMessages?: boolean | undefined;
|
|
244
244
|
saveAllOutputMessages?: boolean | undefined;
|
|
245
245
|
} | undefined;
|
|
246
|
-
|
|
246
|
+
continueThread?: {
|
|
247
247
|
userId?: string | undefined;
|
|
248
|
-
|
|
248
|
+
threadId: string;
|
|
249
249
|
} | undefined;
|
|
250
250
|
generateText?: {
|
|
251
251
|
messages?: ({
|
|
@@ -614,14 +614,14 @@ export declare class Agent<AgentTools extends ToolSet> {
|
|
|
614
614
|
}
|
|
615
615
|
export type ToolCtx = RunActionCtx & {
|
|
616
616
|
userId?: string;
|
|
617
|
-
|
|
617
|
+
threadId?: string;
|
|
618
618
|
messageId?: string;
|
|
619
619
|
};
|
|
620
620
|
/**
|
|
621
621
|
* This is a wrapper around the ai.tool function that adds support for
|
|
622
|
-
* userId and
|
|
622
|
+
* userId and threadId to the tool, if they're called within a thread from an agent.
|
|
623
623
|
* @param tool The AI tool. See https://sdk.vercel.ai/docs/ai-sdk-core/tools-and-tool-calling
|
|
624
|
-
* @returns The same tool, but with userId and
|
|
624
|
+
* @returns The same tool, but with userId and threadId args support added.
|
|
625
625
|
*/
|
|
626
626
|
export declare function createTool<V extends Validator<any, any, any>, RESULT>(convexTool: {
|
|
627
627
|
args: V;
|
|
@@ -647,7 +647,7 @@ type ObjectArgs<T extends {
|
|
|
647
647
|
}> = Omit<T, "model"> & {
|
|
648
648
|
model?: LanguageModelV1;
|
|
649
649
|
} & ContextOptions & StorageOptions;
|
|
650
|
-
interface
|
|
650
|
+
interface Thread<AgentTools extends ToolSet> {
|
|
651
651
|
generateText<TOOLS extends ToolSet, OUTPUT = never, OUTPUT_PARTIAL = never>(args: TextArgs<AgentTools, TOOLS, Parameters<typeof generateText<TOOLS, OUTPUT, OUTPUT_PARTIAL>>[0]>): Promise<GenerateTextResult<TOOLS & AgentTools, OUTPUT> & GenerationOutputMetadata>;
|
|
652
652
|
streamText<TOOLS extends ToolSet, OUTPUT = never, PARTIAL_OUTPUT = never>(args: TextArgs<AgentTools, TOOLS, Parameters<typeof streamText<TOOLS, OUTPUT, PARTIAL_OUTPUT>>[0]>): Promise<StreamTextResult<TOOLS & AgentTools, PARTIAL_OUTPUT> & GenerationOutputMetadata>;
|
|
653
653
|
generateObject<T>(args: ObjectArgs<Parameters<typeof generateObject>[0]>): Promise<GenerateObjectResult<T> & GenerationOutputMetadata>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAC1E,OAAO,KAAK,EACV,WAAW,EACX,WAAW,EACX,oBAAoB,EACpB,kBAAkB,EAClB,UAAU,EACV,kBAAkB,EAClB,gBAAgB,EAChB,IAAI,EACJ,UAAU,EACV,oBAAoB,EACpB,OAAO,EACR,MAAM,IAAI,CAAC;AACZ,OAAO,EAAE,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