@convex-dev/agent 0.0.8 → 0.0.9-alpha.1
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 +7 -3
- package/dist/commonjs/client/index.d.ts +338 -14
- package/dist/commonjs/client/index.d.ts.map +1 -1
- package/dist/commonjs/client/index.js +163 -24
- package/dist/commonjs/client/index.js.map +1 -1
- package/dist/commonjs/mapping.d.ts +2 -1
- package/dist/commonjs/mapping.d.ts.map +1 -1
- package/dist/commonjs/mapping.js +22 -16
- package/dist/commonjs/mapping.js.map +1 -1
- package/dist/commonjs/react/index.d.ts +11 -0
- package/dist/commonjs/react/index.d.ts.map +1 -1
- package/dist/commonjs/react/index.js +11 -0
- package/dist/commonjs/react/index.js.map +1 -1
- package/dist/esm/client/index.d.ts +338 -14
- package/dist/esm/client/index.d.ts.map +1 -1
- package/dist/esm/client/index.js +163 -24
- package/dist/esm/client/index.js.map +1 -1
- package/dist/esm/mapping.d.ts +2 -1
- package/dist/esm/mapping.d.ts.map +1 -1
- package/dist/esm/mapping.js +22 -16
- package/dist/esm/mapping.js.map +1 -1
- package/dist/esm/react/index.d.ts +11 -0
- package/dist/esm/react/index.d.ts.map +1 -1
- package/dist/esm/react/index.js +11 -0
- package/dist/esm/react/index.js.map +1 -1
- package/package.json +1 -1
- package/src/client/index.ts +332 -37
- package/src/mapping.ts +23 -16
- package/src/react/index.ts +11 -0
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ Example usage:
|
|
|
24
24
|
```ts
|
|
25
25
|
// Define an agent similarly to the AI SDK
|
|
26
26
|
const supportAgent = new Agent(components.agent, {
|
|
27
|
-
|
|
27
|
+
chat: openai.chat("gpt-4o-mini"),
|
|
28
28
|
textEmbedding: openai.embedding("text-embedding-3-small"),
|
|
29
29
|
instructions: "You are a helpful assistant.",
|
|
30
30
|
tools: { accountLookup, fileTicket, sendEmail },
|
|
@@ -118,7 +118,7 @@ import { tool } from "ai";
|
|
|
118
118
|
// Define an agent similarly to the AI SDK
|
|
119
119
|
const supportAgent = new Agent(components.agent, {
|
|
120
120
|
// Note: all of these are optional.
|
|
121
|
-
|
|
121
|
+
chat: openai.chat("gpt-4o-mini"),
|
|
122
122
|
// Used for vector search (RAG).
|
|
123
123
|
textEmbedding: openai.embedding("text-embedding-3-small"),
|
|
124
124
|
// Will be the default system prompt if not overriden.
|
|
@@ -289,7 +289,11 @@ const messages = await agent.saveSteps(ctx, { threadId, userId, step });
|
|
|
289
289
|
|
|
290
290
|
// Update the message from pending to complete, along with any associated steps.
|
|
291
291
|
```ts
|
|
292
|
-
const messages = await agent.completeMessage(ctx, {
|
|
292
|
+
const messages = await agent.completeMessage(ctx, {
|
|
293
|
+
threadId,
|
|
294
|
+
messageId,
|
|
295
|
+
result: { kind: "success" }
|
|
296
|
+
});
|
|
293
297
|
```
|
|
294
298
|
|
|
295
299
|
### Manage embeddings
|
|
@@ -11,6 +11,10 @@ import { CallSettings, ProviderMetadata, ProviderOptions, SearchOptions } from "
|
|
|
11
11
|
import { RunActionCtx, RunMutationCtx, RunQueryCtx, UseApi } from "./types.js";
|
|
12
12
|
export { convexToZod, zodToConvex };
|
|
13
13
|
export type { ThreadDoc, MessageDoc } from "./types.js";
|
|
14
|
+
/**
|
|
15
|
+
* Options to configure what messages are fetched as context,
|
|
16
|
+
* automatically with thread.generateText, or directly via search.
|
|
17
|
+
*/
|
|
14
18
|
export type ContextOptions = {
|
|
15
19
|
/**
|
|
16
20
|
* Whether to include tool messages in the context.
|
|
@@ -53,9 +57,20 @@ export type ContextOptions = {
|
|
|
53
57
|
*/
|
|
54
58
|
searchOtherThreads?: boolean;
|
|
55
59
|
};
|
|
60
|
+
/**
|
|
61
|
+
* Options to configure the automatic saving of messages
|
|
62
|
+
* when generating text / objects in a thread.
|
|
63
|
+
*/
|
|
56
64
|
export type StorageOptions = {
|
|
65
|
+
/**
|
|
66
|
+
* Defaults to false, allowing you to pass in arbitrary context that will
|
|
67
|
+
* be in addition to automatically fetched content.
|
|
68
|
+
* Pass true to have all input messages saved to the thread history.
|
|
69
|
+
*/
|
|
57
70
|
saveAllInputMessages?: boolean;
|
|
71
|
+
/** Defaults to true, saving the prompt, or last message passed to generateText. */
|
|
58
72
|
saveAnyInputMessages?: boolean;
|
|
73
|
+
/** Defaults to true. Whether to save messages generated while chatting. */
|
|
59
74
|
saveOutputMessages?: boolean;
|
|
60
75
|
};
|
|
61
76
|
export type GenerationOutputMetadata = {
|
|
@@ -67,22 +82,126 @@ type CoreMessageMaybeWithId = CoreMessage & {
|
|
|
67
82
|
export declare class Agent<AgentTools extends ToolSet> {
|
|
68
83
|
component: UseApi<Mounts>;
|
|
69
84
|
options: {
|
|
85
|
+
/**
|
|
86
|
+
* The name for the agent. This will be attributed on each message
|
|
87
|
+
* created by this agent.
|
|
88
|
+
*/
|
|
70
89
|
name?: string;
|
|
90
|
+
/**
|
|
91
|
+
* The LLM model to use for generating / streaming text and objects.
|
|
92
|
+
* e.g.
|
|
93
|
+
* import { openai } from "@ai-sdk/openai"
|
|
94
|
+
* const myAgent = new Agent(components.agent, {
|
|
95
|
+
* chat: openai.chat("gpt-4o-mini"),
|
|
96
|
+
*/
|
|
71
97
|
chat: LanguageModelV1;
|
|
98
|
+
/**
|
|
99
|
+
* The model to use for text embeddings. Optional.
|
|
100
|
+
* If specified, it will use this for generating vector embeddings
|
|
101
|
+
* of chats, and can opt-in to doing vector search for automatic context
|
|
102
|
+
* on generateText, etc.
|
|
103
|
+
* e.g.
|
|
104
|
+
* import { openai } from "@ai-sdk/openai"
|
|
105
|
+
* const myAgent = new Agent(components.agent, {
|
|
106
|
+
* textEmbedding: openai.embedding("text-embedding-3-small")
|
|
107
|
+
*/
|
|
72
108
|
textEmbedding?: EmbeddingModelV1<string>;
|
|
109
|
+
/**
|
|
110
|
+
* The default system prompt to put in each request.
|
|
111
|
+
* Override per-prompt by passing the "system" parameter.
|
|
112
|
+
*/
|
|
73
113
|
instructions?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Tools that the agent can call out to and get responses from.
|
|
116
|
+
* They can be AI SDK tools (import {tool} from "ai")
|
|
117
|
+
* or tools that have Convex context
|
|
118
|
+
* (import { createTool } from "@convex-dev/agent")
|
|
119
|
+
* Note: Convex tools can't currently annotate the parameters
|
|
120
|
+
* with descriptions, so the names should be self-evident from naming.
|
|
121
|
+
*/
|
|
74
122
|
tools?: AgentTools;
|
|
123
|
+
/**
|
|
124
|
+
* Options to determine what messages are included as context in message
|
|
125
|
+
* generation. To disable any messages automatically being added, pass:
|
|
126
|
+
* { recentMessages: 0 }
|
|
127
|
+
*/
|
|
75
128
|
contextOptions?: ContextOptions;
|
|
129
|
+
/**
|
|
130
|
+
* Determines whether messages are automatically stored when passed as
|
|
131
|
+
* arguments or generated.
|
|
132
|
+
*/
|
|
133
|
+
storageOptions?: StorageOptions;
|
|
134
|
+
/**
|
|
135
|
+
* When generating or streaming text with tools available, this
|
|
136
|
+
* determines the default max number of iterations.
|
|
137
|
+
*/
|
|
76
138
|
maxSteps?: number;
|
|
139
|
+
/**
|
|
140
|
+
* The maximum number of calls to make to an LLM in case it fails.
|
|
141
|
+
* This can be overridden at each generate/stream callsite.
|
|
142
|
+
*/
|
|
143
|
+
maxRetries?: number;
|
|
77
144
|
};
|
|
78
145
|
constructor(component: UseApi<Mounts>, options: {
|
|
146
|
+
/**
|
|
147
|
+
* The name for the agent. This will be attributed on each message
|
|
148
|
+
* created by this agent.
|
|
149
|
+
*/
|
|
79
150
|
name?: string;
|
|
151
|
+
/**
|
|
152
|
+
* The LLM model to use for generating / streaming text and objects.
|
|
153
|
+
* e.g.
|
|
154
|
+
* import { openai } from "@ai-sdk/openai"
|
|
155
|
+
* const myAgent = new Agent(components.agent, {
|
|
156
|
+
* chat: openai.chat("gpt-4o-mini"),
|
|
157
|
+
*/
|
|
80
158
|
chat: LanguageModelV1;
|
|
159
|
+
/**
|
|
160
|
+
* The model to use for text embeddings. Optional.
|
|
161
|
+
* If specified, it will use this for generating vector embeddings
|
|
162
|
+
* of chats, and can opt-in to doing vector search for automatic context
|
|
163
|
+
* on generateText, etc.
|
|
164
|
+
* e.g.
|
|
165
|
+
* import { openai } from "@ai-sdk/openai"
|
|
166
|
+
* const myAgent = new Agent(components.agent, {
|
|
167
|
+
* textEmbedding: openai.embedding("text-embedding-3-small")
|
|
168
|
+
*/
|
|
81
169
|
textEmbedding?: EmbeddingModelV1<string>;
|
|
170
|
+
/**
|
|
171
|
+
* The default system prompt to put in each request.
|
|
172
|
+
* Override per-prompt by passing the "system" parameter.
|
|
173
|
+
*/
|
|
82
174
|
instructions?: string;
|
|
175
|
+
/**
|
|
176
|
+
* Tools that the agent can call out to and get responses from.
|
|
177
|
+
* They can be AI SDK tools (import {tool} from "ai")
|
|
178
|
+
* or tools that have Convex context
|
|
179
|
+
* (import { createTool } from "@convex-dev/agent")
|
|
180
|
+
* Note: Convex tools can't currently annotate the parameters
|
|
181
|
+
* with descriptions, so the names should be self-evident from naming.
|
|
182
|
+
*/
|
|
83
183
|
tools?: AgentTools;
|
|
184
|
+
/**
|
|
185
|
+
* Options to determine what messages are included as context in message
|
|
186
|
+
* generation. To disable any messages automatically being added, pass:
|
|
187
|
+
* { recentMessages: 0 }
|
|
188
|
+
*/
|
|
84
189
|
contextOptions?: ContextOptions;
|
|
190
|
+
/**
|
|
191
|
+
* Determines whether messages are automatically stored when passed as
|
|
192
|
+
* arguments or generated.
|
|
193
|
+
*/
|
|
194
|
+
storageOptions?: StorageOptions;
|
|
195
|
+
/**
|
|
196
|
+
* When generating or streaming text with tools available, this
|
|
197
|
+
* determines the default max number of iterations.
|
|
198
|
+
*/
|
|
85
199
|
maxSteps?: number;
|
|
200
|
+
/**
|
|
201
|
+
* The maximum number of calls to make to an LLM in case it fails.
|
|
202
|
+
* This can be overridden at each generate/stream callsite.
|
|
203
|
+
*/
|
|
204
|
+
maxRetries?: number;
|
|
86
205
|
});
|
|
87
206
|
/**
|
|
88
207
|
* Start a new thread with the agent. This will have a fresh history, though if
|
|
@@ -135,7 +254,29 @@ export declare class Agent<AgentTools extends ToolSet> {
|
|
|
135
254
|
}): Promise<{
|
|
136
255
|
threadId: string;
|
|
137
256
|
}>;
|
|
257
|
+
/**
|
|
258
|
+
* Continues a thread using this agent. Note: threads can be continued
|
|
259
|
+
* by different agents. This is a convenience around calling the various
|
|
260
|
+
* generate and stream functions with explicit userId and threadId parameters.
|
|
261
|
+
* @param ctx The ctx object passed to the action handler
|
|
262
|
+
* @param { threadId, userId }: the thread and user to associate the messages with.
|
|
263
|
+
* @returns Functions bound to the userId and threadId on a `{thread}` object.
|
|
264
|
+
*/
|
|
265
|
+
/**
|
|
266
|
+
* Continues a thread using this agent. Note: threads can be continued
|
|
267
|
+
* by different agents. This is a convenience around calling the various
|
|
268
|
+
* generate and stream functions with explicit userId and threadId parameters.
|
|
269
|
+
* @param ctx The ctx object passed to the action handler
|
|
270
|
+
* @param { threadId, userId }: the thread and user to associate the messages with.
|
|
271
|
+
* @returns Functions bound to the userId and threadId on a `{thread}` object.
|
|
272
|
+
*/
|
|
138
273
|
continueThread(ctx: RunActionCtx, { threadId, userId, }: {
|
|
274
|
+
/**
|
|
275
|
+
* The associated thread created by {@link createThread}
|
|
276
|
+
*/
|
|
277
|
+
/**
|
|
278
|
+
* The associated thread created by {@link createThread}
|
|
279
|
+
*/
|
|
139
280
|
threadId: string;
|
|
140
281
|
/**
|
|
141
282
|
* If supplied, the userId can be used to search across other threads for
|
|
@@ -145,6 +286,22 @@ export declare class Agent<AgentTools extends ToolSet> {
|
|
|
145
286
|
}): Promise<{
|
|
146
287
|
thread: Thread<AgentTools>;
|
|
147
288
|
}>;
|
|
289
|
+
/**
|
|
290
|
+
*
|
|
291
|
+
* @param ctx Either a query, mutation, or action ctx.
|
|
292
|
+
* If it is not an action context, you can't do text or
|
|
293
|
+
* vector search.
|
|
294
|
+
* @param args The associated thread, user, message
|
|
295
|
+
* @returns
|
|
296
|
+
*/
|
|
297
|
+
/**
|
|
298
|
+
*
|
|
299
|
+
* @param ctx Either a query, mutation, or action ctx.
|
|
300
|
+
* If it is not an action context, you can't do text or
|
|
301
|
+
* vector search.
|
|
302
|
+
* @param args The associated thread, user, message
|
|
303
|
+
* @returns
|
|
304
|
+
*/
|
|
148
305
|
fetchContextMessages(ctx: RunQueryCtx | RunActionCtx, args: {
|
|
149
306
|
userId?: string;
|
|
150
307
|
threadId?: string;
|
|
@@ -156,23 +313,89 @@ export declare class Agent<AgentTools extends ToolSet> {
|
|
|
156
313
|
dimension: VectorDimension;
|
|
157
314
|
model: string;
|
|
158
315
|
} | undefined>;
|
|
316
|
+
/**
|
|
317
|
+
* Explicitly save messages associated with the thread (& user if provided)
|
|
318
|
+
* @param ctx The ctx parameter to a mutation or action.
|
|
319
|
+
* @param args The messages and context to save
|
|
320
|
+
* @returns
|
|
321
|
+
*/
|
|
322
|
+
/**
|
|
323
|
+
* Explicitly save messages associated with the thread (& user if provided)
|
|
324
|
+
* @param ctx The ctx parameter to a mutation or action.
|
|
325
|
+
* @param args The messages and context to save
|
|
326
|
+
* @returns
|
|
327
|
+
*/
|
|
159
328
|
saveMessages(ctx: RunMutationCtx, args: {
|
|
160
329
|
threadId: string;
|
|
161
330
|
userId?: string;
|
|
162
331
|
messages: CoreMessageMaybeWithId[];
|
|
332
|
+
/**
|
|
333
|
+
* If false, it will "commit" the messages immediately.
|
|
334
|
+
* If true, it will mark them as pending until the final step has finished.
|
|
335
|
+
*/
|
|
336
|
+
/**
|
|
337
|
+
* If false, it will "commit" the messages immediately.
|
|
338
|
+
* If true, it will mark them as pending until the final step has finished.
|
|
339
|
+
*/
|
|
163
340
|
pending?: boolean;
|
|
341
|
+
/**
|
|
342
|
+
* The message that this is responding to.
|
|
343
|
+
*/
|
|
344
|
+
/**
|
|
345
|
+
* The message that this is responding to.
|
|
346
|
+
*/
|
|
164
347
|
parentMessageId?: string;
|
|
348
|
+
/**
|
|
349
|
+
* Whether to mark all pending messages in the thread as failed.
|
|
350
|
+
* This is used to recover from a failure via a retry that wipes the slate clean.
|
|
351
|
+
*/
|
|
352
|
+
/**
|
|
353
|
+
* Whether to mark all pending messages in the thread as failed.
|
|
354
|
+
* This is used to recover from a failure via a retry that wipes the slate clean.
|
|
355
|
+
*/
|
|
165
356
|
failPendingSteps?: boolean;
|
|
166
357
|
}): Promise<{
|
|
167
358
|
lastMessageId: string;
|
|
168
359
|
messageIds: string[];
|
|
169
360
|
}>;
|
|
361
|
+
/**
|
|
362
|
+
* Explicitly save a "step" created by the AI SDK.
|
|
363
|
+
* @param ctx The ctx argument to a mutation or action.
|
|
364
|
+
* @param args What to save
|
|
365
|
+
*/
|
|
366
|
+
/**
|
|
367
|
+
* Explicitly save a "step" created by the AI SDK.
|
|
368
|
+
* @param ctx The ctx argument to a mutation or action.
|
|
369
|
+
* @param args What to save
|
|
370
|
+
*/
|
|
170
371
|
saveStep<TOOLS extends ToolSet>(ctx: RunMutationCtx, args: {
|
|
171
372
|
threadId: string;
|
|
373
|
+
/**
|
|
374
|
+
* The message this step is in response to.
|
|
375
|
+
*/
|
|
172
376
|
messageId: string;
|
|
377
|
+
/**
|
|
378
|
+
* The step to save, possibly including multiple tool calls.
|
|
379
|
+
*/
|
|
173
380
|
step: StepResult<TOOLS>;
|
|
174
381
|
}): Promise<void>;
|
|
175
|
-
|
|
382
|
+
/**
|
|
383
|
+
* Commit or rollback a message that was pending.
|
|
384
|
+
* This is done automatically when saving messages by default.
|
|
385
|
+
* If creating pending messages, you can call this when the full "transaction" is done.
|
|
386
|
+
* @param ctx The ctx argument to your mutation or action.
|
|
387
|
+
* @param args What message to save. Generally the parent message sent into
|
|
388
|
+
* the generateText call.
|
|
389
|
+
*/
|
|
390
|
+
/**
|
|
391
|
+
* Commit or rollback a message that was pending.
|
|
392
|
+
* This is done automatically when saving messages by default.
|
|
393
|
+
* If creating pending messages, you can call this when the full "transaction" is done.
|
|
394
|
+
* @param ctx The ctx argument to your mutation or action.
|
|
395
|
+
* @param args What message to save. Generally the parent message sent into
|
|
396
|
+
* the generateText call.
|
|
397
|
+
*/
|
|
398
|
+
completeMessage(ctx: RunMutationCtx, args: {
|
|
176
399
|
threadId: string;
|
|
177
400
|
messageId: string;
|
|
178
401
|
result: {
|
|
@@ -180,24 +403,36 @@ export declare class Agent<AgentTools extends ToolSet> {
|
|
|
180
403
|
error: string;
|
|
181
404
|
} | {
|
|
182
405
|
kind: "success";
|
|
183
|
-
value: {
|
|
184
|
-
steps: StepResult<TOOLS>[];
|
|
185
|
-
};
|
|
186
406
|
};
|
|
187
407
|
}): Promise<void>;
|
|
188
408
|
/**
|
|
189
|
-
* This behaves like {@link generateText}
|
|
190
|
-
* the userId and threadId
|
|
191
|
-
* thread, if specified.
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
* @param
|
|
409
|
+
* This behaves like {@link generateText} from the "ai" package except that
|
|
410
|
+
* it add context based on the userId and threadId and saves the input and
|
|
411
|
+
* resulting messages to the thread, if specified.
|
|
412
|
+
* Use {@link continueThread} to get a version of this function already scoped
|
|
413
|
+
* to a thread (and optionally userId).
|
|
414
|
+
* @param ctx The context passed from the action function calling this.
|
|
415
|
+
* @param { userId, threadId }: The user and thread to associate the message with
|
|
416
|
+
* @param args The arguments to the generateText function, along with extra controls
|
|
417
|
+
* for the {@link ContextOptions} and {@link StorageOptions}.
|
|
195
418
|
* @returns The result of the generateText function.
|
|
196
419
|
*/
|
|
197
420
|
generateText<TOOLS extends ToolSet, OUTPUT = never, OUTPUT_PARTIAL = never>(ctx: RunActionCtx, { userId, threadId, }: {
|
|
198
421
|
userId?: string;
|
|
199
422
|
threadId?: string;
|
|
200
423
|
}, args: TextArgs<AgentTools, TOOLS, Parameters<typeof generateText<TOOLS, OUTPUT, OUTPUT_PARTIAL>>[0]>): Promise<GenerateTextResult<TOOLS & AgentTools, OUTPUT> & GenerationOutputMetadata>;
|
|
424
|
+
/**
|
|
425
|
+
* This behaves like {@link streamText} from the "ai" package except that
|
|
426
|
+
* it add context based on the userId and threadId and saves the input and
|
|
427
|
+
* resulting messages to the thread, if specified.
|
|
428
|
+
* Use {@link continueThread} to get a version of this function already scoped
|
|
429
|
+
* to a thread (and optionally userId).
|
|
430
|
+
* @param ctx The context passed from the action function calling this.
|
|
431
|
+
* @param { userId, threadId }: The user and thread to associate the message with
|
|
432
|
+
* @param args The arguments to the streamText function, along with extra controls
|
|
433
|
+
* for the {@link ContextOptions} and {@link StorageOptions}.
|
|
434
|
+
* @returns The result of the streamText function.
|
|
435
|
+
*/
|
|
201
436
|
streamText<TOOLS extends ToolSet, OUTPUT = never, PARTIAL_OUTPUT = never>(ctx: RunActionCtx, { userId, threadId }: {
|
|
202
437
|
userId?: string;
|
|
203
438
|
threadId?: string;
|
|
@@ -206,7 +441,7 @@ export declare class Agent<AgentTools extends ToolSet> {
|
|
|
206
441
|
prompt?: string;
|
|
207
442
|
messages?: CoreMessage[] | AIMessageWithoutId[];
|
|
208
443
|
system?: string;
|
|
209
|
-
}>(ctx: RunActionCtx | RunMutationCtx, { userId, threadId, parentMessageId,
|
|
444
|
+
}>(ctx: RunActionCtx | RunMutationCtx, { userId, threadId, parentMessageId, system, ...args }: {
|
|
210
445
|
userId: string | undefined;
|
|
211
446
|
threadId: string | undefined;
|
|
212
447
|
parentMessageId?: string;
|
|
@@ -216,14 +451,45 @@ export declare class Agent<AgentTools extends ToolSet> {
|
|
|
216
451
|
args: T;
|
|
217
452
|
messageId: string | undefined;
|
|
218
453
|
}>;
|
|
454
|
+
/**
|
|
455
|
+
* This behaves like {@link generateObject} from the "ai" package except that
|
|
456
|
+
* it add context based on the userId and threadId and saves the input and
|
|
457
|
+
* resulting messages to the thread, if specified.
|
|
458
|
+
* Use {@link continueThread} to get a version of this function already scoped
|
|
459
|
+
* to a thread (and optionally userId).
|
|
460
|
+
* @param ctx The context passed from the action function calling this.
|
|
461
|
+
* @param { userId, threadId }: The user and thread to associate the message with
|
|
462
|
+
* @param args The arguments to the generateObject function, along with extra controls
|
|
463
|
+
* for the {@link ContextOptions} and {@link StorageOptions}.
|
|
464
|
+
* @returns The result of the generateObject function.
|
|
465
|
+
*/
|
|
219
466
|
generateObject<T>(ctx: RunActionCtx, { userId, threadId }: {
|
|
220
467
|
userId?: string;
|
|
221
468
|
threadId?: string;
|
|
222
469
|
}, args: OurObjectArgs<T>): Promise<GenerateObjectResult<T> & GenerationOutputMetadata>;
|
|
470
|
+
/**
|
|
471
|
+
* This behaves like {@link streamObject} from the "ai" package except that
|
|
472
|
+
* it add context based on the userId and threadId and saves the input and
|
|
473
|
+
* resulting messages to the thread, if specified.
|
|
474
|
+
* Use {@link continueThread} to get a version of this function already scoped
|
|
475
|
+
* to a thread (and optionally userId).
|
|
476
|
+
* @param ctx The context passed from the action function calling this.
|
|
477
|
+
* @param { userId, threadId }: The user and thread to associate the message with
|
|
478
|
+
* @param args The arguments to the streamObject function, along with extra controls
|
|
479
|
+
* for the {@link ContextOptions} and {@link StorageOptions}.
|
|
480
|
+
* @returns The result of the streamObject function.
|
|
481
|
+
*/
|
|
223
482
|
streamObject<T>(ctx: RunMutationCtx, { userId, threadId }: {
|
|
224
483
|
userId?: string;
|
|
225
484
|
threadId?: string;
|
|
226
485
|
}, args: OurStreamObjectArgs<T>): Promise<StreamObjectResult<DeepPartial<T>, T, never> & GenerationOutputMetadata>;
|
|
486
|
+
/**
|
|
487
|
+
* Manually save the result of a generateObject call to the thread.
|
|
488
|
+
* This happens automatically when using {@link generateObject} or {@link streamObject}
|
|
489
|
+
* from the `thread` object created by {@link continueThread} or {@link createThread}.
|
|
490
|
+
* @param ctx The context passed from the mutation or action function calling this.
|
|
491
|
+
* @param args The arguments to the saveObject function.
|
|
492
|
+
*/
|
|
227
493
|
saveObject(ctx: RunMutationCtx, args: {
|
|
228
494
|
threadId: string;
|
|
229
495
|
messageId: string;
|
|
@@ -232,7 +498,11 @@ export declare class Agent<AgentTools extends ToolSet> {
|
|
|
232
498
|
mergedContextOptions(opts: ContextOptions): ContextOptions;
|
|
233
499
|
searchOptionsWithDefaults(contextOptions: ContextOptions, messages: CoreMessage[]): Promise<SearchOptions>;
|
|
234
500
|
/**
|
|
235
|
-
*
|
|
501
|
+
* Create an action out of this agent so you can call it from workflows or other actions
|
|
502
|
+
* without a wrapping function.
|
|
503
|
+
* Note: currently this is not well typed. The return type of the action is always `any`.
|
|
504
|
+
* @param spec Configuration for the agent acting as an action, including
|
|
505
|
+
* {@link ContextOptions} and maxSteps.
|
|
236
506
|
*/
|
|
237
507
|
asAction(spec?: {
|
|
238
508
|
contextOptions?: ContextOptions;
|
|
@@ -1284,7 +1554,8 @@ export declare class Agent<AgentTools extends ToolSet> {
|
|
|
1284
1554
|
} | undefined;
|
|
1285
1555
|
}, Promise<any>>;
|
|
1286
1556
|
/**
|
|
1287
|
-
* Create a tool
|
|
1557
|
+
* Create a tool out of this agent so other agents can call this one.
|
|
1558
|
+
* Create a tool out of this agent so other agents can call this one.
|
|
1288
1559
|
* @param spec The specification for the arguments to this agent.
|
|
1289
1560
|
* They will be encoded as JSON and passed to the agent.
|
|
1290
1561
|
* @returns The agent as a tool that can be passed to other agents.
|
|
@@ -1339,7 +1610,7 @@ type BaseGenerateObjectOptions = StorageOptions & ContextOptions & CallSettings
|
|
|
1339
1610
|
experimental_providerMetadata?: ProviderMetadata;
|
|
1340
1611
|
};
|
|
1341
1612
|
type GenerateObjectObjectOptions<T extends Record<string, unknown>> = BaseGenerateObjectOptions & {
|
|
1342
|
-
output
|
|
1613
|
+
output?: "object";
|
|
1343
1614
|
mode?: "auto" | "json" | "tool";
|
|
1344
1615
|
schema: z.Schema<T>;
|
|
1345
1616
|
schemaName?: string;
|
|
@@ -1366,11 +1637,64 @@ type StreamObjectArgs<T> = T extends Record<string, unknown> ? GenerateObjectObj
|
|
|
1366
1637
|
type OurObjectArgs<T> = GenerateObjectArgs<T> & Pick<Parameters<typeof generateObject<any>>[0], "experimental_repairText" | "abortSignal">;
|
|
1367
1638
|
type OurStreamObjectArgs<T> = StreamObjectArgs<T> & Pick<Parameters<typeof streamObject<T>>[0], "onError" | "onFinish" | "abortSignal">;
|
|
1368
1639
|
interface Thread<AgentTools extends ToolSet> {
|
|
1640
|
+
/**
|
|
1641
|
+
* The target threadId, from the startThread or continueThread initializers.
|
|
1642
|
+
*/
|
|
1369
1643
|
threadId: string;
|
|
1644
|
+
/**
|
|
1645
|
+
* This behaves like {@link generateText} from the "ai" package except that
|
|
1646
|
+
* it add context based on the userId and threadId and saves the input and
|
|
1647
|
+
* resulting messages to the thread, if specified.
|
|
1648
|
+
* Use {@link continueThread} to get a version of this function already scoped
|
|
1649
|
+
* to a thread (and optionally userId).
|
|
1650
|
+
* @param args The arguments to the generateText function, along with extra controls
|
|
1651
|
+
* for the {@link ContextOptions} and {@link StorageOptions}.
|
|
1652
|
+
* @returns The result of the generateText function.
|
|
1653
|
+
*/
|
|
1370
1654
|
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>;
|
|
1655
|
+
/**
|
|
1656
|
+
* This behaves like {@link streamText} from the "ai" package except that
|
|
1657
|
+
* it add context based on the userId and threadId and saves the input and
|
|
1658
|
+
* resulting messages to the thread, if specified.
|
|
1659
|
+
* Use {@link continueThread} to get a version of this function already scoped
|
|
1660
|
+
* to a thread (and optionally userId).
|
|
1661
|
+
* @param args The arguments to the streamText function, along with extra controls
|
|
1662
|
+
* for the {@link ContextOptions} and {@link StorageOptions}.
|
|
1663
|
+
* @returns The result of the streamText function.
|
|
1664
|
+
*/
|
|
1371
1665
|
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>;
|
|
1666
|
+
/**
|
|
1667
|
+
* This behaves like {@link generateObject} from the "ai" package except that
|
|
1668
|
+
* it add context based on the userId and threadId and saves the input and
|
|
1669
|
+
* resulting messages to the thread, if specified. This overload is for objects, arrays, and enums.
|
|
1670
|
+
* Use {@link continueThread} to get a version of this function already scoped
|
|
1671
|
+
* to a thread (and optionally userId).
|
|
1672
|
+
* @param args The arguments to the generateObject function, along with extra controls
|
|
1673
|
+
* for the {@link ContextOptions} and {@link StorageOptions}.
|
|
1674
|
+
* @returns The result of the generateObject function.
|
|
1675
|
+
*/
|
|
1372
1676
|
generateObject<T>(args: OurObjectArgs<T>): Promise<GenerateObjectResult<T> & GenerationOutputMetadata>;
|
|
1677
|
+
/**
|
|
1678
|
+
* This behaves like {@link generateObject} from the "ai" package except that
|
|
1679
|
+
* it add context based on the userId and threadId and saves the input and
|
|
1680
|
+
* resulting messages to the thread, if specified. This overload is for when there's no schema.
|
|
1681
|
+
* Use {@link continueThread} to get a version of this function already scoped
|
|
1682
|
+
* to a thread (and optionally userId).
|
|
1683
|
+
* @param args The arguments to the generateObject function, along with extra controls
|
|
1684
|
+
* for the {@link ContextOptions} and {@link StorageOptions}.
|
|
1685
|
+
* @returns The result of the generateObject function.
|
|
1686
|
+
*/
|
|
1373
1687
|
generateObject(args: GenerateObjectNoSchemaOptions): Promise<GenerateObjectResult<JSONValue> & GenerationOutputMetadata>;
|
|
1688
|
+
/**
|
|
1689
|
+
* This behaves like {@link streamObject} from the "ai" package except that
|
|
1690
|
+
* it add context based on the userId and threadId and saves the input and
|
|
1691
|
+
* resulting messages to the thread, if specified.
|
|
1692
|
+
* Use {@link continueThread} to get a version of this function already scoped
|
|
1693
|
+
* to a thread (and optionally userId).
|
|
1694
|
+
* @param args The arguments to the streamObject function, along with extra controls
|
|
1695
|
+
* for the {@link ContextOptions} and {@link StorageOptions}.
|
|
1696
|
+
* @returns The result of the streamObject function.
|
|
1697
|
+
*/
|
|
1374
1698
|
streamObject<T>(args: OurStreamObjectArgs<T>): Promise<StreamObjectResult<DeepPartial<T>, T, never> & GenerationOutputMetadata>;
|
|
1375
1699
|
}
|
|
1376
1700
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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,SAAS,EACT,kBAAkB,EAClB,UAAU,EACV,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,IAAI,EACJ,UAAU,EACV,oBAAoB,EACpB,OAAO,EACR,MAAM,IAAI,CAAC;AACZ,OAAO,EACL,cAAc,EACd,YAAY,EAEZ,YAAY,EACZ,UAAU,EACX,MAAM,IAAI,CAAC;AAEZ,OAAO,EACL,WAAW,EACX,WAAW,EACX,WAAW,EACZ,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,KAAK,EAAK,SAAS,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACrD,OAAO,EAEL,eAAe,EAChB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,kBAAkB,EAMnB,MAAM,YAAY,CAAC;AAMpB,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,aAAa,EAKd,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAE/E,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC;AACpC,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExD,MAAM,MAAM,cAAc,GAAG;IAC3B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