@convex-dev/agent 0.5.0-alpha.1 → 0.6.0-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/MIGRATION.md +153 -0
- package/README.md +32 -27
- package/dist/UIMessages.d.ts +46 -0
- package/dist/UIMessages.d.ts.map +1 -0
- package/dist/UIMessages.js +546 -0
- package/dist/UIMessages.js.map +1 -0
- package/dist/client/createTool.d.ts +126 -27
- package/dist/client/createTool.d.ts.map +1 -1
- package/dist/client/createTool.js +67 -12
- package/dist/client/createTool.js.map +1 -1
- package/dist/client/defaultComponent.d.ts +11 -0
- package/dist/client/defaultComponent.d.ts.map +1 -0
- package/dist/client/defaultComponent.js +7 -0
- package/dist/client/defaultComponent.js.map +1 -0
- package/dist/client/definePlaygroundAPI.d.ts +1335 -204
- package/dist/client/definePlaygroundAPI.d.ts.map +1 -1
- package/dist/client/definePlaygroundAPI.js +52 -28
- package/dist/client/definePlaygroundAPI.js.map +1 -1
- package/dist/client/files.d.ts +20 -7
- package/dist/client/files.d.ts.map +1 -1
- package/dist/client/files.js +68 -11
- package/dist/client/files.js.map +1 -1
- package/dist/client/index.d.ts +1116 -978
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +332 -747
- package/dist/client/index.js.map +1 -1
- package/dist/client/messages.d.ts +461 -0
- package/dist/client/messages.d.ts.map +1 -0
- package/dist/client/messages.js +106 -0
- package/dist/client/messages.js.map +1 -0
- package/dist/client/mockModel.d.ts +42 -0
- package/dist/client/mockModel.d.ts.map +1 -0
- package/dist/client/mockModel.js +182 -0
- package/dist/client/mockModel.js.map +1 -0
- package/dist/client/saveInputMessages.d.ts +20 -0
- package/dist/client/saveInputMessages.d.ts.map +1 -0
- package/dist/client/saveInputMessages.js +58 -0
- package/dist/client/saveInputMessages.js.map +1 -0
- package/dist/client/search.d.ts +350 -39
- package/dist/client/search.d.ts.map +1 -1
- package/dist/client/search.js +350 -39
- package/dist/client/search.js.map +1 -1
- package/dist/client/start.d.ts +84 -0
- package/dist/client/start.d.ts.map +1 -0
- package/dist/client/start.js +185 -0
- package/dist/client/start.js.map +1 -0
- package/dist/client/streamText.d.ts +46 -0
- package/dist/client/streamText.d.ts.map +1 -0
- package/dist/client/streamText.js +117 -0
- package/dist/client/streamText.js.map +1 -0
- package/dist/client/streaming.d.ts +3716 -32
- package/dist/client/streaming.d.ts.map +1 -1
- package/dist/client/streaming.js +161 -59
- package/dist/client/streaming.js.map +1 -1
- package/dist/client/threads.d.ts +46 -0
- package/dist/client/threads.d.ts.map +1 -0
- package/dist/client/threads.js +49 -0
- package/dist/client/threads.js.map +1 -0
- package/dist/client/types.d.ts +266 -128
- package/dist/client/types.d.ts.map +1 -1
- package/dist/client/utils.d.ts +4 -0
- package/dist/client/utils.d.ts.map +1 -0
- package/dist/client/utils.js +21 -0
- package/dist/client/utils.js.map +1 -0
- package/dist/component/_generated/api.d.ts +24 -2178
- package/dist/component/_generated/api.d.ts.map +1 -1
- package/dist/component/_generated/api.js +10 -1
- package/dist/component/_generated/api.js.map +1 -1
- package/dist/component/_generated/component.d.ts +3120 -0
- package/dist/component/_generated/component.d.ts.map +1 -0
- package/dist/component/_generated/component.js +11 -0
- package/dist/component/_generated/component.js.map +1 -0
- package/dist/component/_generated/dataModel.d.ts +4 -18
- package/dist/component/_generated/dataModel.d.ts.map +1 -0
- package/dist/component/_generated/dataModel.js +11 -0
- package/dist/component/_generated/dataModel.js.map +1 -0
- package/dist/component/_generated/server.d.ts +10 -38
- package/dist/component/_generated/server.d.ts.map +1 -1
- package/dist/component/_generated/server.js +9 -5
- package/dist/component/_generated/server.js.map +1 -1
- package/dist/component/files.d.ts +16 -10
- package/dist/component/files.d.ts.map +1 -1
- package/dist/component/files.js +10 -2
- package/dist/component/files.js.map +1 -1
- package/dist/component/messages.d.ts +2578 -366
- package/dist/component/messages.d.ts.map +1 -1
- package/dist/component/messages.js +397 -154
- package/dist/component/messages.js.map +1 -1
- package/dist/component/schema.d.ts +5697 -3584
- package/dist/component/schema.d.ts.map +1 -1
- package/dist/component/schema.js +18 -41
- package/dist/component/schema.js.map +1 -1
- package/dist/component/streams.d.ts +39 -339
- package/dist/component/streams.d.ts.map +1 -1
- package/dist/component/streams.js +114 -73
- package/dist/component/streams.js.map +1 -1
- package/dist/component/threads.d.ts +13 -13
- package/dist/component/users.d.ts +7 -7
- package/dist/component/vector/index.d.ts +1 -1
- package/dist/component/vector/index.d.ts.map +1 -1
- package/dist/component/vector/index.js +1 -3
- package/dist/component/vector/index.js.map +1 -1
- package/dist/deltas.d.ts +43 -0
- package/dist/deltas.d.ts.map +1 -0
- package/dist/deltas.js +446 -0
- package/dist/deltas.js.map +1 -0
- package/dist/mapping.d.ts +38 -20
- package/dist/mapping.d.ts.map +1 -1
- package/dist/mapping.js +365 -97
- package/dist/mapping.js.map +1 -1
- package/dist/react/SmoothText.d.ts +5 -0
- package/dist/react/SmoothText.d.ts.map +1 -0
- package/dist/react/SmoothText.js +6 -0
- package/dist/react/SmoothText.js.map +1 -0
- package/dist/react/index.d.ts +5 -77
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +6 -160
- package/dist/react/index.js.map +1 -1
- package/dist/react/optimisticallySendMessage.d.ts +36 -3
- package/dist/react/optimisticallySendMessage.d.ts.map +1 -1
- package/dist/react/optimisticallySendMessage.js +35 -9
- package/dist/react/optimisticallySendMessage.js.map +1 -1
- package/dist/react/types.d.ts +4 -18
- package/dist/react/types.d.ts.map +1 -1
- package/dist/react/useDeltaStreams.d.ts +10 -0
- package/dist/react/useDeltaStreams.d.ts.map +1 -0
- package/dist/react/useDeltaStreams.js +106 -0
- package/dist/react/useDeltaStreams.js.map +1 -0
- package/dist/react/useSmoothText.d.ts +13 -12
- package/dist/react/useSmoothText.d.ts.map +1 -1
- package/dist/react/useSmoothText.js +32 -15
- package/dist/react/useSmoothText.js.map +1 -1
- package/dist/react/useStreamingUIMessages.d.ts +22 -0
- package/dist/react/useStreamingUIMessages.d.ts.map +1 -0
- package/dist/react/useStreamingUIMessages.js +92 -0
- package/dist/react/useStreamingUIMessages.js.map +1 -0
- package/dist/react/useThreadMessages.d.ts +104 -0
- package/dist/react/useThreadMessages.d.ts.map +1 -0
- package/dist/react/useThreadMessages.js +148 -0
- package/dist/react/useThreadMessages.js.map +1 -0
- package/dist/react/useUIMessages.d.ts +96 -0
- package/dist/react/useUIMessages.d.ts.map +1 -0
- package/dist/react/useUIMessages.js +108 -0
- package/dist/react/useUIMessages.js.map +1 -0
- package/dist/shared.d.ts +20 -4
- package/dist/shared.d.ts.map +1 -1
- package/dist/shared.js +45 -8
- package/dist/shared.js.map +1 -1
- package/dist/validators.d.ts +22981 -5666
- package/dist/validators.d.ts.map +1 -1
- package/dist/validators.js +245 -137
- package/dist/validators.js.map +1 -1
- package/package.json +101 -51
- package/src/UIMessages.combineUIMessages.test.ts +239 -0
- package/src/UIMessages.test.ts +273 -0
- package/src/UIMessages.ts +739 -0
- package/src/client/approval.test.ts +350 -0
- package/src/client/createTool.ts +291 -76
- package/src/client/defaultComponent.ts +17 -0
- package/src/client/definePlaygroundAPI.ts +67 -31
- package/src/client/files.ts +100 -20
- package/src/client/index.test.ts +40 -85
- package/src/client/index.ts +638 -1289
- package/src/client/messages.ts +237 -0
- package/src/client/mockModel.ts +252 -0
- package/src/client/saveInputMessages.test.ts +583 -0
- package/src/client/saveInputMessages.ts +101 -0
- package/src/client/search.test.ts +1207 -0
- package/src/client/search.ts +581 -70
- package/src/client/start.ts +327 -0
- package/src/client/streamText.ts +187 -0
- package/src/client/streaming.test.ts +186 -0
- package/src/client/streaming.ts +241 -97
- package/src/client/threads.ts +83 -0
- package/src/client/types.ts +370 -219
- package/src/client/utils.ts +27 -0
- package/src/component/_generated/api.ts +64 -0
- package/src/component/_generated/component.ts +4902 -0
- package/src/component/_generated/{server.d.ts → server.ts} +33 -21
- package/src/component/files.ts +11 -2
- package/src/component/messages.test.ts +195 -51
- package/src/component/messages.ts +500 -201
- package/src/component/schema.ts +20 -46
- package/src/component/setup.test.ts +7 -0
- package/src/component/streams.ts +184 -83
- package/src/component/users.test.ts +0 -1
- package/src/component/vector/index.ts +1 -3
- package/src/deltas.test.ts +626 -0
- package/src/deltas.ts +569 -0
- package/src/fromUIMessages.test.ts +497 -0
- package/src/mapping.test.ts +180 -6
- package/src/mapping.ts +479 -162
- package/src/react/SmoothText.tsx +9 -0
- package/src/react/index.ts +10 -230
- package/src/react/optimisticallySendMessage.ts +55 -12
- package/src/react/types.ts +6 -39
- package/src/react/useDeltaStreams.ts +160 -0
- package/src/react/useSmoothText.ts +56 -36
- package/src/react/useStreamingUIMessages.ts +143 -0
- package/src/react/useThreadMessages.ts +262 -0
- package/src/react/useUIMessages.test.ts +255 -0
- package/src/react/useUIMessages.ts +195 -0
- package/src/shared.ts +88 -12
- package/src/test.ts +18 -0
- package/src/toUIMessages.test.ts +1269 -0
- package/src/validators.test.ts +18 -19
- package/src/validators.ts +325 -185
- package/dist/client/_generated/_ignore.d.ts +0 -1
- package/dist/client/_generated/_ignore.d.ts.map +0 -1
- package/dist/client/_generated/_ignore.js +0 -3
- package/dist/client/_generated/_ignore.js.map +0 -1
- package/dist/client/listMessages.d.ts +0 -22
- package/dist/client/listMessages.d.ts.map +0 -1
- package/dist/client/listMessages.js +0 -25
- package/dist/client/listMessages.js.map +0 -1
- package/dist/package.json +0 -3
- package/dist/react/deltas.d.ts +0 -26
- package/dist/react/deltas.d.ts.map +0 -1
- package/dist/react/deltas.js +0 -384
- package/dist/react/deltas.js.map +0 -1
- package/dist/react/toUIMessages.d.ts +0 -15
- package/dist/react/toUIMessages.d.ts.map +0 -1
- package/dist/react/toUIMessages.js +0 -211
- package/dist/react/toUIMessages.js.map +0 -1
- package/src/client/listMessages.ts +0 -38
- package/src/component/_generated/api.d.ts +0 -2202
- package/src/component/_generated/api.js +0 -23
- package/src/component/_generated/server.js +0 -90
- package/src/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +0 -1
- package/src/react/deltas.test.ts +0 -315
- package/src/react/deltas.ts +0 -478
- package/src/react/toUIMessages.test.ts +0 -420
- package/src/react/toUIMessages.ts +0 -253
- package/src/vitest.config.ts +0 -7
- /package/src/component/_generated/{dataModel.d.ts → dataModel.ts} +0 -0
|
@@ -1,42 +1,123 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import {
|
|
3
|
-
import type { Agent } from "./index.js";
|
|
1
|
+
import type { ToolResultOutput } from "@ai-sdk/provider-utils";
|
|
2
|
+
import type { FlexibleSchema, ModelMessage, Tool, ToolExecutionOptions, ToolSet } from "ai";
|
|
4
3
|
import type { GenericActionCtx, GenericDataModel } from "convex/server";
|
|
5
4
|
import type { ProviderOptions } from "../validators.js";
|
|
5
|
+
import type { Agent } from "./index.js";
|
|
6
6
|
export type ToolCtx<DataModel extends GenericDataModel = GenericDataModel> = GenericActionCtx<DataModel> & {
|
|
7
|
-
agent
|
|
7
|
+
agent?: Agent;
|
|
8
8
|
userId?: string;
|
|
9
9
|
threadId?: string;
|
|
10
10
|
messageId?: string;
|
|
11
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* Function that is called to determine if the tool needs approval before it can be executed.
|
|
14
|
+
*/
|
|
15
|
+
export type ToolNeedsApprovalFunctionCtx<INPUT, Ctx extends ToolCtx = ToolCtx> = (ctx: Ctx, input: INPUT, options: {
|
|
16
|
+
/**
|
|
17
|
+
* The ID of the tool call. You can use it e.g. when sending tool-call related information with stream data.
|
|
18
|
+
*/
|
|
19
|
+
toolCallId: string;
|
|
20
|
+
/**
|
|
21
|
+
* Messages that were sent to the language model to initiate the response that contained the tool call.
|
|
22
|
+
* The messages **do not** include the system prompt nor the assistant response that contained the tool call.
|
|
23
|
+
*/
|
|
24
|
+
messages: ModelMessage[];
|
|
25
|
+
/**
|
|
26
|
+
* Additional context.
|
|
27
|
+
*
|
|
28
|
+
* Experimental (can break in patch releases).
|
|
29
|
+
*/
|
|
30
|
+
experimental_context?: unknown;
|
|
31
|
+
}) => boolean | PromiseLike<boolean>;
|
|
32
|
+
export type ToolExecuteFunctionCtx<INPUT, OUTPUT, Ctx extends ToolCtx = ToolCtx> = (ctx: Ctx, input: INPUT, options: ToolExecutionOptions) => AsyncIterable<OUTPUT> | PromiseLike<OUTPUT>;
|
|
33
|
+
type NeverOptional<N, T> = 0 extends 1 & N ? Partial<T> : [N] extends [never] ? Partial<Record<keyof T, undefined>> : T;
|
|
34
|
+
/**
|
|
35
|
+
* Error message type for deprecated 'handler' property.
|
|
36
|
+
* Using a string literal type causes TypeScript to show this message in errors.
|
|
37
|
+
*/
|
|
38
|
+
type HANDLER_REMOVED_ERROR = "⚠️ 'handler' was removed in @convex-dev/agent v0.6.0. Rename to 'execute'. See: node_modules/@convex-dev/agent/MIGRATION.md";
|
|
39
|
+
export type ToolOutputPropertiesCtx<INPUT, OUTPUT, Ctx extends ToolCtx = ToolCtx> = NeverOptional<OUTPUT, {
|
|
40
|
+
/**
|
|
41
|
+
* An async function that is called with the arguments from the tool call and produces a result.
|
|
42
|
+
* If `execute` is not provided, the tool will not be executed automatically.
|
|
43
|
+
*
|
|
44
|
+
* @param input - The input of the tool call.
|
|
45
|
+
* @param options.abortSignal - A signal that can be used to abort the tool call.
|
|
46
|
+
*/
|
|
47
|
+
execute?: ToolExecuteFunctionCtx<INPUT, OUTPUT, Ctx>;
|
|
48
|
+
outputSchema?: FlexibleSchema<OUTPUT>;
|
|
49
|
+
/**
|
|
50
|
+
* @deprecated Removed in v0.6.0. Use `execute` instead.
|
|
51
|
+
*/
|
|
52
|
+
handler?: HANDLER_REMOVED_ERROR;
|
|
53
|
+
}>;
|
|
54
|
+
/**
|
|
55
|
+
* Error message type for deprecated 'args' property.
|
|
56
|
+
* Using a string literal type causes TypeScript to show this message in errors.
|
|
57
|
+
*/
|
|
58
|
+
type ARGS_REMOVED_ERROR = "⚠️ 'args' was removed in @convex-dev/agent v0.6.0. Rename to 'inputSchema'. See: node_modules/@convex-dev/agent/MIGRATION.md";
|
|
59
|
+
export type ToolInputProperties<INPUT> = {
|
|
60
|
+
/**
|
|
61
|
+
* The schema of the input that the tool expects.
|
|
62
|
+
* The language model will use this to generate the input.
|
|
63
|
+
* It is also used to validate the output of the language model.
|
|
64
|
+
*
|
|
65
|
+
* You can use descriptions on the schema properties to make the input understandable for the language model.
|
|
66
|
+
*/
|
|
67
|
+
inputSchema: FlexibleSchema<INPUT>;
|
|
68
|
+
/**
|
|
69
|
+
* @deprecated Removed in v0.6.0. Use `inputSchema` instead.
|
|
70
|
+
*/
|
|
71
|
+
args?: ARGS_REMOVED_ERROR;
|
|
72
|
+
};
|
|
12
73
|
/**
|
|
13
74
|
* This is a wrapper around the ai.tool function that adds extra context to the
|
|
14
75
|
* tool call, including the action context, userId, threadId, and messageId.
|
|
15
76
|
* @param tool The tool. See https://sdk.vercel.ai/docs/ai-sdk-core/tools-and-tool-calling
|
|
16
|
-
*
|
|
77
|
+
* Currently contains deprecated parameters `args` and `handler` to maintain backwards compatibility
|
|
78
|
+
* but these will be removed in the future. Use `inputSchema` and `execute` instead, respectively.
|
|
79
|
+
*
|
|
17
80
|
* @returns A tool to be used with the AI SDK.
|
|
18
81
|
*/
|
|
19
82
|
export declare function createTool<INPUT, OUTPUT, Ctx extends ToolCtx = ToolCtx>(def: {
|
|
20
83
|
/**
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
84
|
+
* An optional description of what the tool does.
|
|
85
|
+
* Will be used by the language model to decide whether to use the tool.
|
|
86
|
+
* Not used for provider-defined tools.
|
|
87
|
+
*/
|
|
25
88
|
description?: string;
|
|
26
89
|
/**
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
90
|
+
* An optional title of the tool.
|
|
91
|
+
*/
|
|
92
|
+
title?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Additional provider-specific metadata. They are passed through
|
|
95
|
+
* to the provider from the AI SDK and enable provider-specific
|
|
96
|
+
* functionality that can be fully encapsulated in the provider.
|
|
97
|
+
*/
|
|
98
|
+
providerOptions?: ProviderOptions;
|
|
99
|
+
} & ToolInputProperties<INPUT> & {
|
|
100
|
+
/**
|
|
101
|
+
* An optional list of input examples that show the language
|
|
102
|
+
* model what the input should look like.
|
|
103
|
+
*/
|
|
104
|
+
inputExamples?: Array<{
|
|
105
|
+
input: NoInfer<INPUT>;
|
|
106
|
+
}>;
|
|
32
107
|
/**
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
108
|
+
* Whether the tool needs approval before it can be executed.
|
|
109
|
+
*/
|
|
110
|
+
needsApproval?: boolean | ToolNeedsApprovalFunctionCtx<[
|
|
111
|
+
INPUT
|
|
112
|
+
] extends [never] ? unknown : INPUT, Ctx>;
|
|
113
|
+
/**
|
|
114
|
+
* Strict mode setting for the tool.
|
|
115
|
+
*
|
|
116
|
+
* Providers that support strict mode will use this setting to determine
|
|
117
|
+
* how the input should be generated. Strict mode will always produce
|
|
118
|
+
* valid inputs, but it might limit what input schemas are supported.
|
|
119
|
+
*/
|
|
120
|
+
strict?: boolean;
|
|
40
121
|
/**
|
|
41
122
|
* Provide the context to use, e.g. when defining the tool at runtime.
|
|
42
123
|
*/
|
|
@@ -45,24 +126,42 @@ export declare function createTool<INPUT, OUTPUT, Ctx extends ToolCtx = ToolCtx>
|
|
|
45
126
|
* Optional function that is called when the argument streaming starts.
|
|
46
127
|
* Only called when the tool is used in a streaming context.
|
|
47
128
|
*/
|
|
48
|
-
onInputStart?: (ctx: Ctx, options:
|
|
129
|
+
onInputStart?: (ctx: Ctx, options: ToolExecutionOptions) => void | PromiseLike<void>;
|
|
49
130
|
/**
|
|
50
131
|
* Optional function that is called when an argument streaming delta is available.
|
|
51
132
|
* Only called when the tool is used in a streaming context.
|
|
52
133
|
*/
|
|
53
134
|
onInputDelta?: (ctx: Ctx, options: {
|
|
54
135
|
inputTextDelta: string;
|
|
55
|
-
} &
|
|
136
|
+
} & ToolExecutionOptions) => void | PromiseLike<void>;
|
|
56
137
|
/**
|
|
57
138
|
* Optional function that is called when a tool call can be started,
|
|
58
139
|
* even if the execute function is not provided.
|
|
59
140
|
*/
|
|
60
141
|
onInputAvailable?: (ctx: Ctx, options: {
|
|
61
|
-
input: [INPUT] extends [never] ?
|
|
62
|
-
} &
|
|
63
|
-
|
|
142
|
+
input: [INPUT] extends [never] ? unknown : INPUT;
|
|
143
|
+
} & ToolExecutionOptions) => void | PromiseLike<void>;
|
|
144
|
+
} & ToolOutputPropertiesCtx<INPUT, OUTPUT, Ctx> & {
|
|
145
|
+
/**
|
|
146
|
+
* Optional conversion function that maps the tool result to an output that can be used by the language model.
|
|
147
|
+
*
|
|
148
|
+
* If not provided, the tool result will be sent as a JSON object.
|
|
149
|
+
*/
|
|
150
|
+
toModelOutput?: (ctx: Ctx, options: {
|
|
151
|
+
/**
|
|
152
|
+
* The ID of the tool call. You can use it e.g. when sending tool-call related information with stream data.
|
|
153
|
+
*/
|
|
154
|
+
toolCallId: string;
|
|
155
|
+
/**
|
|
156
|
+
* The input of the tool call.
|
|
157
|
+
*/
|
|
158
|
+
input: [INPUT] extends [never] ? unknown : INPUT;
|
|
159
|
+
/**
|
|
160
|
+
* The output of the tool call.
|
|
161
|
+
*/
|
|
162
|
+
output: 0 extends 1 & OUTPUT ? any : [OUTPUT] extends [never] ? any : NoInfer<OUTPUT>;
|
|
163
|
+
}) => ToolResultOutput | PromiseLike<ToolResultOutput>;
|
|
64
164
|
}): Tool<INPUT, OUTPUT>;
|
|
65
165
|
export declare function wrapTools(ctx: ToolCtx, ...toolSets: (ToolSet | undefined)[]): ToolSet;
|
|
66
|
-
type ToolParameters<T> = z.Schema<T> | Schema<T>;
|
|
67
166
|
export {};
|
|
68
167
|
//# sourceMappingURL=createTool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createTool.d.ts","sourceRoot":"","sources":["../../src/client/createTool.ts"],"names":[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,MAAM,EAAE,CAAC,SAAS,CAAC,GAAG,MAAM,GACxB,GAAG,GACH,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,GACtB,GAAG,GACH,OAAO,CAAC,MAAM,CAAC,CAAC;KACvB,KACE,gBAAgB,GAAG,WAAW,CAAC,gBAAgB,CAAC,CAAC;CACvD,GACF,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CA+FrB;AAMD,wBAAgB,SAAS,CACvB,GAAG,EAAE,OAAO,EACZ,GAAG,QAAQ,EAAE,CAAC,OAAO,GAAG,SAAS,CAAC,EAAE,GACnC,OAAO,CAgBT"}
|
|
@@ -1,41 +1,97 @@
|
|
|
1
1
|
import { tool } from "ai";
|
|
2
|
-
|
|
2
|
+
const MIGRATION_URL = "node_modules/@convex-dev/agent/MIGRATION.md";
|
|
3
|
+
const warnedDeprecations = new Set();
|
|
4
|
+
function warnDeprecation(key, message) {
|
|
5
|
+
if (!warnedDeprecations.has(key)) {
|
|
6
|
+
warnedDeprecations.add(key);
|
|
7
|
+
console.warn(`[@convex-dev/agent] ${message}\n See: ${MIGRATION_URL}`);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
3
10
|
/**
|
|
4
11
|
* This is a wrapper around the ai.tool function that adds extra context to the
|
|
5
12
|
* tool call, including the action context, userId, threadId, and messageId.
|
|
6
13
|
* @param tool The tool. See https://sdk.vercel.ai/docs/ai-sdk-core/tools-and-tool-calling
|
|
7
|
-
*
|
|
14
|
+
* Currently contains deprecated parameters `args` and `handler` to maintain backwards compatibility
|
|
15
|
+
* but these will be removed in the future. Use `inputSchema` and `execute` instead, respectively.
|
|
16
|
+
*
|
|
8
17
|
* @returns A tool to be used with the AI SDK.
|
|
9
18
|
*/
|
|
10
19
|
export function createTool(def) {
|
|
20
|
+
// Runtime backwards compat - types will show errors but runtime still works
|
|
21
|
+
const inputSchema = def.inputSchema ?? def.args;
|
|
22
|
+
if (!inputSchema)
|
|
23
|
+
throw new Error("To use a Convex tool, you must provide an `inputSchema`");
|
|
24
|
+
if (def.args && !def.inputSchema) {
|
|
25
|
+
warnDeprecation("createTool.args", "createTool: 'args' is deprecated. Use 'inputSchema' instead.");
|
|
26
|
+
}
|
|
27
|
+
if (def.handler && !def.execute) {
|
|
28
|
+
warnDeprecation("createTool.handler", "createTool: 'handler' is deprecated. Use 'execute' instead.");
|
|
29
|
+
}
|
|
30
|
+
const executeHandler = def.execute ?? def.handler;
|
|
31
|
+
if (!executeHandler && !def.outputSchema)
|
|
32
|
+
throw new Error("To use a Convex tool, you must either provide an execute" +
|
|
33
|
+
" handler function, define an outputSchema, or both");
|
|
11
34
|
const t = tool({
|
|
12
35
|
type: "function",
|
|
13
36
|
__acceptsCtx: true,
|
|
14
37
|
ctx: def.ctx,
|
|
15
38
|
description: def.description,
|
|
16
|
-
|
|
17
|
-
|
|
39
|
+
title: def.title,
|
|
40
|
+
providerOptions: def.providerOptions,
|
|
41
|
+
inputSchema,
|
|
42
|
+
inputExamples: def.inputExamples,
|
|
43
|
+
needsApproval(input, options) {
|
|
44
|
+
const needsApproval = def.needsApproval;
|
|
45
|
+
if (!needsApproval || typeof needsApproval === "boolean")
|
|
46
|
+
return Boolean(needsApproval);
|
|
18
47
|
if (!getCtx(this)) {
|
|
19
48
|
throw new Error("To use a Convex tool, you must either provide the ctx" +
|
|
20
49
|
" at definition time (dynamically in an action), or use the Agent to" +
|
|
21
50
|
" call it (which injects the ctx, userId and threadId)");
|
|
22
51
|
}
|
|
23
|
-
return
|
|
52
|
+
return needsApproval(getCtx(this), input, options);
|
|
24
53
|
},
|
|
25
|
-
|
|
54
|
+
strict: def.strict,
|
|
55
|
+
...(executeHandler
|
|
56
|
+
? {
|
|
57
|
+
execute(input, options) {
|
|
58
|
+
if (!getCtx(this)) {
|
|
59
|
+
throw new Error("To use a Convex tool, you must either provide the ctx" +
|
|
60
|
+
" at definition time (dynamically in an action), or use the Agent to" +
|
|
61
|
+
" call it (which injects the ctx, userId and threadId)");
|
|
62
|
+
}
|
|
63
|
+
return executeHandler(getCtx(this), input, options);
|
|
64
|
+
},
|
|
65
|
+
}
|
|
66
|
+
: {}),
|
|
67
|
+
outputSchema: def.outputSchema,
|
|
26
68
|
});
|
|
27
69
|
if (def.onInputStart) {
|
|
28
|
-
|
|
70
|
+
const origOnInputStart = def.onInputStart;
|
|
71
|
+
t.onInputStart = function (options) {
|
|
72
|
+
return origOnInputStart.call(this, getCtx(this), options);
|
|
73
|
+
};
|
|
29
74
|
}
|
|
30
75
|
if (def.onInputDelta) {
|
|
31
|
-
|
|
76
|
+
const origOnInputDelta = def.onInputDelta;
|
|
77
|
+
t.onInputDelta = function (options) {
|
|
78
|
+
return origOnInputDelta.call(this, getCtx(this), options);
|
|
79
|
+
};
|
|
32
80
|
}
|
|
33
81
|
if (def.onInputAvailable) {
|
|
34
|
-
|
|
82
|
+
const origOnInputAvailable = def.onInputAvailable;
|
|
83
|
+
t.onInputAvailable = function (options) {
|
|
84
|
+
return origOnInputAvailable.call(this, getCtx(this), options);
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
if (def.toModelOutput) {
|
|
88
|
+
const origToModelOutput = def.toModelOutput;
|
|
89
|
+
t.toModelOutput = function (options) {
|
|
90
|
+
return origToModelOutput.call(this, getCtx(this), options);
|
|
91
|
+
};
|
|
35
92
|
}
|
|
36
93
|
return t;
|
|
37
94
|
}
|
|
38
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
39
95
|
function getCtx(tool) {
|
|
40
96
|
return tool.ctx;
|
|
41
97
|
}
|
|
@@ -46,8 +102,7 @@ export function wrapTools(ctx, ...toolSets) {
|
|
|
46
102
|
continue;
|
|
47
103
|
}
|
|
48
104
|
for (const [name, tool] of Object.entries(toolSet)) {
|
|
49
|
-
|
|
50
|
-
if (!tool.__acceptsCtx) {
|
|
105
|
+
if (tool && !tool.__acceptsCtx) {
|
|
51
106
|
output[name] = tool;
|
|
52
107
|
}
|
|
53
108
|
else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createTool.js","sourceRoot":"","sources":["../../src/client/createTool.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createTool.js","sourceRoot":"","sources":["../../src/client/createTool.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAK1B,MAAM,aAAa,GAAG,6CAA6C,CAAC;AACpE,MAAM,kBAAkB,GAAG,IAAI,GAAG,EAAU,CAAC;AAC7C,SAAS,eAAe,CAAC,GAAW,EAAE,OAAe;IACnD,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;QACjC,kBAAkB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAC5B,OAAO,CAAC,IAAI,CAAC,uBAAuB,OAAO,YAAY,aAAa,EAAE,CAAC,CAAC;IAC1E,CAAC;AACH,CAAC;AA0GD;;;;;;;;GAQG;AACH,MAAM,UAAU,UAAU,CACxB,GAmGG;IAEH,4EAA4E;IAC5E,MAAM,WAAW,GAAG,GAAG,CAAC,WAAW,IAAK,GAAW,CAAC,IAAI,CAAC;IACzD,IAAI,CAAC,WAAW;QACd,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAAC;IAE7E,IAAK,GAAW,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;QAC1C,eAAe,CACb,iBAAiB,EACjB,8DAA8D,CAC/D,CAAC;IACJ,CAAC;IACD,IAAK,GAAW,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC;QACzC,eAAe,CACb,oBAAoB,EACpB,6DAA6D,CAC9D,CAAC;IACJ,CAAC;IAED,MAAM,cAAc,GAAG,GAAG,CAAC,OAAO,IAAK,GAAW,CAAC,OAAO,CAAC;IAC3D,IAAI,CAAC,cAAc,IAAI,CAAC,GAAG,CAAC,YAAY;QACtC,MAAM,IAAI,KAAK,CACb,0DAA0D;YACxD,oDAAoD,CACv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AAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,SAAS;QACX,CAAC;QACD,KAAK,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;YACnD,IAAI,IAAI,IAAI,CAAE,IAAY,CAAC,YAAY,EAAE,CAAC;gBACxC,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;YACtB,CAAC;iBAAM,CAAC;gBACN,MAAM,GAAG,GAAG,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,CAAC;gBAC7B,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC;YACrB,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AgentComponent } from "./types.js";
|
|
2
|
+
export type CustomComponent = {
|
|
3
|
+
/**
|
|
4
|
+
* If you have a custom name for the agent component, you can pass it here
|
|
5
|
+
* as components.myAgentName.
|
|
6
|
+
*/
|
|
7
|
+
component?: AgentComponent;
|
|
8
|
+
};
|
|
9
|
+
export declare function componentAPI(args?: CustomComponent): AgentComponent;
|
|
10
|
+
export declare const defaultComponent: AgentComponent;
|
|
11
|
+
//# sourceMappingURL=defaultComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaultComponent.d.ts","sourceRoot":"","sources":["../../src/client/defaultComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,MAAM,MAAM,eAAe,GAAG;IAC5B;;;OAGG;IACH,SAAS,CAAC,EAAE,cAAc,CAAC;CAC5B,CAAC;AAEF,wBAAgB,YAAY,CAAC,IAAI,CAAC,EAAE,eAAe,GAAG,cAAc,CAEnE;AAED,eAAO,MAAM,gBAAgB,EACN,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaultComponent.js","sourceRoot":"","sources":["../../src/client/defaultComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAWlD,MAAM,UAAU,YAAY,CAAC,IAAsB;IACjD,OAAO,IAAI,EAAE,SAAS,IAAI,gBAAgB,CAAC;AAC7C,CAAC;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG,iBAAiB,EAAE;KAChD,KAAkC,CAAC"}
|