@convex-dev/agent 0.6.3 → 0.7.0-alpha.0
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 +60 -116
- package/dist/client/messages.d.ts +1 -398
- package/dist/client/messages.d.ts.map +1 -1
- package/dist/client/messages.js +3 -47
- package/dist/client/messages.js.map +1 -1
- package/dist/client/types.d.ts +1 -455
- package/dist/client/types.d.ts.map +1 -1
- package/dist/component/_generated/component.d.ts +805 -45
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/apiKeys.js +5 -5
- package/dist/component/apiKeys.js.map +1 -1
- package/dist/component/files.d.ts.map +1 -1
- package/dist/component/files.js +13 -11
- package/dist/component/files.js.map +1 -1
- package/dist/component/messages.d.ts +1252 -201
- package/dist/component/messages.d.ts.map +1 -1
- package/dist/component/messages.js +83 -47
- package/dist/component/messages.js.map +1 -1
- package/dist/component/schema.d.ts +2593 -332
- package/dist/component/schema.d.ts.map +1 -1
- package/dist/component/streams.d.ts +7 -1
- package/dist/component/streams.d.ts.map +1 -1
- package/dist/component/streams.js +46 -47
- package/dist/component/streams.js.map +1 -1
- package/dist/component/threads.d.ts.map +1 -1
- package/dist/component/threads.js +8 -9
- package/dist/component/threads.js.map +1 -1
- package/dist/component/users.js +2 -2
- package/dist/component/users.js.map +1 -1
- package/dist/component/vector/index.d.ts.map +1 -1
- package/dist/component/vector/index.js +14 -8
- package/dist/component/vector/index.js.map +1 -1
- package/dist/react/index.d.ts +5 -5
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +5 -5
- package/dist/react/index.js.map +1 -1
- package/dist/shared.d.ts +19 -7
- package/dist/shared.d.ts.map +1 -1
- package/dist/shared.js +4 -4
- package/dist/shared.js.map +1 -1
- package/dist/streaming/materializePersistedUIMessageChunks.d.ts +16 -0
- package/dist/streaming/materializePersistedUIMessageChunks.d.ts.map +1 -0
- package/dist/streaming/materializePersistedUIMessageChunks.js +302 -0
- package/dist/streaming/materializePersistedUIMessageChunks.js.map +1 -0
- package/dist/streaming/persistedUIMessageChunks.d.ts +106 -0
- package/dist/streaming/persistedUIMessageChunks.d.ts.map +1 -0
- package/dist/streaming/persistedUIMessageChunks.js +475 -0
- package/dist/streaming/persistedUIMessageChunks.js.map +1 -0
- package/dist/validators.d.ts +10026 -1055
- package/dist/validators.d.ts.map +1 -1
- package/dist/validators.js +71 -9
- package/dist/validators.js.map +1 -1
- package/dist/{UIMessages.d.ts → vercel/UIMessages.d.ts} +1 -1
- package/dist/vercel/UIMessages.d.ts.map +1 -0
- package/dist/{UIMessages.js → vercel/UIMessages.js} +63 -1
- package/dist/vercel/UIMessages.js.map +1 -0
- package/dist/{client → vercel/client}/createTool.d.ts +23 -16
- package/dist/vercel/client/createTool.d.ts.map +1 -0
- package/dist/{client → vercel/client}/createTool.js +2 -0
- package/dist/vercel/client/createTool.js.map +1 -0
- package/dist/{client → vercel/client}/definePlaygroundAPI.d.ts +593 -134
- package/dist/{client → vercel/client}/definePlaygroundAPI.d.ts.map +1 -1
- package/dist/{client → vercel/client}/definePlaygroundAPI.js +13 -9
- package/dist/vercel/client/definePlaygroundAPI.js.map +1 -0
- package/dist/{client → vercel/client}/files.d.ts +2 -2
- package/dist/vercel/client/files.d.ts.map +1 -0
- package/dist/vercel/client/files.js.map +1 -0
- package/dist/vercel/client/messages.d.ts +542 -0
- package/dist/vercel/client/messages.d.ts.map +1 -0
- package/dist/vercel/client/messages.js +66 -0
- package/dist/vercel/client/messages.js.map +1 -0
- package/dist/{client → vercel/client}/mockModel.d.ts +17 -17
- package/dist/vercel/client/mockModel.d.ts.map +1 -0
- package/dist/{client → vercel/client}/mockModel.js +12 -13
- package/dist/vercel/client/mockModel.js.map +1 -0
- package/dist/{client → vercel/client}/saveInputMessages.d.ts +2 -2
- package/dist/vercel/client/saveInputMessages.d.ts.map +1 -0
- package/dist/vercel/client/saveInputMessages.js.map +1 -0
- package/dist/{client → vercel/client}/search.d.ts +119 -22
- package/dist/vercel/client/search.d.ts.map +1 -0
- package/dist/{client → vercel/client}/search.js +2 -2
- package/dist/vercel/client/search.js.map +1 -0
- package/dist/{client → vercel/client}/start.d.ts +26 -11
- package/dist/vercel/client/start.d.ts.map +1 -0
- package/dist/{client → vercel/client}/start.js +64 -22
- package/dist/vercel/client/start.js.map +1 -0
- package/dist/{client → vercel/client}/streamText.d.ts +13 -12
- package/dist/vercel/client/streamText.d.ts.map +1 -0
- package/dist/{client → vercel/client}/streamText.js +43 -9
- package/dist/vercel/client/streamText.js.map +1 -0
- package/dist/{client → vercel/client}/streaming.d.ts +1410 -183
- package/dist/vercel/client/streaming.d.ts.map +1 -0
- package/dist/{client → vercel/client}/streaming.js +120 -52
- package/dist/vercel/client/streaming.js.map +1 -0
- package/dist/vercel/client/types.d.ts +456 -0
- package/dist/vercel/client/types.d.ts.map +1 -0
- package/dist/vercel/client/types.js +3 -0
- package/dist/vercel/client/types.js.map +1 -0
- package/dist/{client → vercel/client}/utils.d.ts +3 -2
- package/dist/vercel/client/utils.d.ts.map +1 -0
- package/dist/{client → vercel/client}/utils.js +2 -2
- package/dist/vercel/client/utils.js.map +1 -0
- package/dist/vercel/deltas.d.ts +31 -0
- package/dist/vercel/deltas.d.ts.map +1 -0
- package/dist/vercel/deltas.js +525 -0
- package/dist/vercel/deltas.js.map +1 -0
- package/dist/{client → vercel}/index.d.ts +484 -97
- package/dist/vercel/index.d.ts.map +1 -0
- package/dist/{client → vercel}/index.js +65 -38
- package/dist/vercel/index.js.map +1 -0
- package/dist/{mapping.d.ts → vercel/mapping.d.ts} +5 -13
- package/dist/vercel/mapping.d.ts.map +1 -0
- package/dist/{mapping.js → vercel/mapping.js} +411 -112
- package/dist/vercel/mapping.js.map +1 -0
- package/dist/{react → vercel/react}/optimisticallySendMessage.d.ts +2 -2
- package/dist/vercel/react/optimisticallySendMessage.d.ts.map +1 -0
- package/dist/vercel/react/optimisticallySendMessage.js.map +1 -0
- package/dist/{react → vercel/react}/types.d.ts +1 -1
- package/dist/vercel/react/types.d.ts.map +1 -0
- package/dist/{react → vercel/react}/types.js.map +1 -1
- package/dist/{react → vercel/react}/useDeltaStreams.d.ts +1 -1
- package/dist/vercel/react/useDeltaStreams.d.ts.map +1 -0
- package/dist/{react → vercel/react}/useDeltaStreams.js +1 -1
- package/dist/vercel/react/useDeltaStreams.js.map +1 -0
- package/dist/{react → vercel/react}/useStreamingUIMessages.d.ts +1 -1
- package/dist/vercel/react/useStreamingUIMessages.d.ts.map +1 -0
- package/dist/vercel/react/useStreamingUIMessages.js +112 -0
- package/dist/vercel/react/useStreamingUIMessages.js.map +1 -0
- package/dist/{react → vercel/react}/useThreadMessages.d.ts +1 -1
- package/dist/vercel/react/useThreadMessages.d.ts.map +1 -0
- package/dist/{react → vercel/react}/useThreadMessages.js +1 -1
- package/dist/vercel/react/useThreadMessages.js.map +1 -0
- package/dist/{react → vercel/react}/useUIMessages.d.ts +2 -1
- package/dist/vercel/react/useUIMessages.d.ts.map +1 -0
- package/dist/{react → vercel/react}/useUIMessages.js +8 -4
- package/dist/vercel/react/useUIMessages.js.map +1 -0
- package/package.json +30 -22
- package/src/client/messages.ts +5 -107
- package/src/client/types.ts +0 -621
- package/src/component/_generated/component.ts +1089 -48
- package/src/component/apiKeys.ts +5 -5
- package/src/component/files.test.ts +1 -1
- package/src/component/files.ts +14 -12
- package/src/component/messages.test.ts +273 -1
- package/src/component/messages.ts +99 -57
- package/src/component/streams.ts +80 -64
- package/src/component/threads.ts +12 -9
- package/src/component/users.ts +2 -2
- package/src/component/vector/index.ts +14 -7
- package/src/eslintConfig.test.ts +44 -0
- package/src/react/index.ts +8 -5
- package/src/shared.ts +26 -36
- package/src/streaming/materializePersistedUIMessageChunks.test.ts +513 -0
- package/src/streaming/materializePersistedUIMessageChunks.ts +398 -0
- package/src/streaming/persistedUIMessageChunks.test.ts +205 -0
- package/src/streaming/persistedUIMessageChunks.ts +658 -0
- package/src/validators.test.ts +4 -1
- package/src/validators.ts +89 -8
- package/src/{UIMessages.combineUIMessages.test.ts → vercel/UIMessages.combineUIMessages.test.ts} +4 -1
- package/src/{UIMessages.ts → vercel/UIMessages.ts} +96 -5
- package/src/{client → vercel/client}/approval.test.ts +48 -19
- package/src/{client → vercel/client}/createTool.ts +63 -23
- package/src/{client → vercel/client}/definePlaygroundAPI.ts +44 -29
- package/src/{client → vercel/client}/files.ts +2 -2
- package/src/{client → vercel/client}/index.test.ts +162 -3
- package/src/vercel/client/messages.ts +182 -0
- package/src/{client → vercel/client}/mockModel.ts +38 -39
- package/src/{client → vercel/client}/saveInputMessages.test.ts +1 -1
- package/src/{client → vercel/client}/saveInputMessages.ts +7 -4
- package/src/{client → vercel/client}/search.test.ts +3 -3
- package/src/{client → vercel/client}/search.ts +4 -4
- package/src/{client → vercel/client}/setup.test.ts +6 -3
- package/src/vercel/client/start.test.ts +14 -0
- package/src/{client → vercel/client}/start.ts +147 -36
- package/src/vercel/client/streamText.test.ts +223 -0
- package/src/{client → vercel/client}/streamText.ts +102 -31
- package/src/{client → vercel/client}/streaming.integration.test.ts +40 -115
- package/src/{client → vercel/client}/streaming.test.ts +178 -4
- package/src/{client → vercel/client}/streaming.ts +114 -52
- package/src/vercel/client/types.test.ts +13 -0
- package/src/vercel/client/types.ts +679 -0
- package/src/{client → vercel/client}/utils.ts +13 -7
- package/src/vercel/deltas.test.ts +898 -0
- package/src/vercel/deltas.ts +633 -0
- package/src/{fromUIMessages.test.ts → vercel/fromUIMessages.test.ts} +17 -1
- package/src/{client → vercel}/index.ts +169 -62
- package/src/vercel/mapping.test.ts +965 -0
- package/src/{mapping.ts → vercel/mapping.ts} +501 -131
- package/src/{react → vercel/react}/optimisticallySendMessage.ts +2 -2
- package/src/{react → vercel/react}/types.ts +1 -1
- package/src/{react → vercel/react}/useDeltaStreams.ts +6 -2
- package/src/{react → vercel/react}/useStreamingUIMessages.ts +67 -35
- package/src/{react → vercel/react}/useThreadMessages.ts +2 -2
- package/src/{react → vercel/react}/useUIMessages.test.ts +80 -1
- package/src/{react → vercel/react}/useUIMessages.ts +13 -5
- package/src/{toUIMessages.test.ts → vercel/toUIMessages.test.ts} +49 -2
- package/dist/UIMessages.d.ts.map +0 -1
- package/dist/UIMessages.js.map +0 -1
- package/dist/client/createTool.d.ts.map +0 -1
- package/dist/client/createTool.js.map +0 -1
- package/dist/client/definePlaygroundAPI.js.map +0 -1
- package/dist/client/files.d.ts.map +0 -1
- package/dist/client/files.js.map +0 -1
- package/dist/client/index.d.ts.map +0 -1
- package/dist/client/index.js.map +0 -1
- package/dist/client/mockModel.d.ts.map +0 -1
- package/dist/client/mockModel.js.map +0 -1
- package/dist/client/saveInputMessages.d.ts.map +0 -1
- package/dist/client/saveInputMessages.js.map +0 -1
- package/dist/client/search.d.ts.map +0 -1
- package/dist/client/search.js.map +0 -1
- package/dist/client/start.d.ts.map +0 -1
- package/dist/client/start.js.map +0 -1
- package/dist/client/streamText.d.ts.map +0 -1
- package/dist/client/streamText.js.map +0 -1
- package/dist/client/streaming.d.ts.map +0 -1
- package/dist/client/streaming.js.map +0 -1
- package/dist/client/utils.d.ts.map +0 -1
- package/dist/client/utils.js.map +0 -1
- package/dist/deltas.d.ts +0 -43
- package/dist/deltas.d.ts.map +0 -1
- package/dist/deltas.js +0 -446
- package/dist/deltas.js.map +0 -1
- package/dist/mapping.d.ts.map +0 -1
- package/dist/mapping.js.map +0 -1
- package/dist/react/optimisticallySendMessage.d.ts.map +0 -1
- package/dist/react/optimisticallySendMessage.js.map +0 -1
- package/dist/react/types.d.ts.map +0 -1
- package/dist/react/useDeltaStreams.d.ts.map +0 -1
- package/dist/react/useDeltaStreams.js.map +0 -1
- package/dist/react/useStreamingUIMessages.d.ts.map +0 -1
- package/dist/react/useStreamingUIMessages.js +0 -92
- package/dist/react/useStreamingUIMessages.js.map +0 -1
- package/dist/react/useThreadMessages.d.ts.map +0 -1
- package/dist/react/useThreadMessages.js.map +0 -1
- package/dist/react/useUIMessages.d.ts.map +0 -1
- package/dist/react/useUIMessages.js.map +0 -1
- package/src/client/streamText.test.ts +0 -102
- package/src/deltas.test.ts +0 -626
- package/src/deltas.ts +0 -569
- package/src/mapping.test.ts +0 -402
- /package/dist/{client → vercel/client}/files.js +0 -0
- /package/dist/{client → vercel/client}/saveInputMessages.js +0 -0
- /package/dist/{react → vercel/react}/optimisticallySendMessage.js +0 -0
- /package/dist/{react → vercel/react}/types.js +0 -0
- /package/src/{UIMessages.test.ts → vercel/UIMessages.test.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definePlaygroundAPI.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"definePlaygroundAPI.d.ts","sourceRoot":"","sources":["../../../src/vercel/client/definePlaygroundAPI.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EAErB,KAAK,eAAe,EACrB,MAAM,eAAe,CAAC;AAoBvB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC;IACzC,UAAU,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;CACpD,CAAC,CAAC,YAAY,CAAC,CAAC;AAEjB,MAAM,MAAM,QAAQ,CAAC,SAAS,SAAS,gBAAgB,IAAI,CACzD,GAAG,EAAE,gBAAgB,CAAC,SAAS,CAAC,GAAG,eAAe,CAAC,SAAS,CAAC,EAC7D,IAAI,EAAE;IAAE,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,KAC/D,KAAK,EAAE,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;AAGhC,wBAAgB,mBAAmB,CAAC,SAAS,SAAS,gBAAgB,EACpE,SAAS,EAAE,cAAc,EACzB,EACE,MAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8TF"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { actionGeneric, mutationGeneric, paginationOptsValidator, queryGeneric, } from "convex/server";
|
|
2
2
|
import { v } from "convex/values";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { getModelName, getProviderName } from "
|
|
3
|
+
import { vContextOptions, vMessage, vMessageDoc, vPaginationResult, vStorageOptions, vThreadDoc, vStreamArgs, } from "../../validators.js";
|
|
4
|
+
import { createThread as createThread_ } from "../../client/threads.js";
|
|
5
|
+
import { extractText, getModelName, getProviderName, isTool, } from "../../shared.js";
|
|
6
|
+
import { serializeResponseMessages, toModelMessage } from "../mapping.js";
|
|
7
|
+
import { listMessages as listMessages_ } from "./messages.js";
|
|
8
|
+
import { syncStreams, vStreamMessagesReturnValue } from "./streaming.js";
|
|
6
9
|
// Playground API definition
|
|
7
10
|
export function definePlaygroundAPI(component, { agents: agentsOrFn, userNameLookup, }) {
|
|
8
11
|
function validateAgents(agents) {
|
|
@@ -188,12 +191,13 @@ export function definePlaygroundAPI(component, { agents: agentsOrFn, userNameLoo
|
|
|
188
191
|
...(system ? { system } : {}),
|
|
189
192
|
...(messages ? { messages: messages.map(toModelMessage) } : {}),
|
|
190
193
|
}, { contextOptions, storageOptions, saveStreamDeltas: true });
|
|
191
|
-
const outputMessages =
|
|
192
|
-
|
|
194
|
+
const outputMessages = [];
|
|
195
|
+
for (const step of await steps) {
|
|
196
|
+
const { messages } = await serializeResponseMessages(ctx, component, step, {
|
|
193
197
|
model: getModelName(agent.options.languageModel),
|
|
194
198
|
provider: getProviderName(agent.options.languageModel),
|
|
195
|
-
});
|
|
196
|
-
|
|
199
|
+
}, step.response.messages);
|
|
200
|
+
outputMessages.push(messages.map((messageWithMetadata, i) => {
|
|
197
201
|
return {
|
|
198
202
|
...messageWithMetadata,
|
|
199
203
|
tool: isTool(messageWithMetadata.message),
|
|
@@ -206,8 +210,8 @@ export function definePlaygroundAPI(component, { agents: agentsOrFn, userNameLoo
|
|
|
206
210
|
order: 0,
|
|
207
211
|
stepOrder: i + 1,
|
|
208
212
|
};
|
|
209
|
-
});
|
|
210
|
-
}
|
|
213
|
+
}));
|
|
214
|
+
}
|
|
211
215
|
return { text: await text, messages: outputMessages.flat() };
|
|
212
216
|
},
|
|
213
217
|
returns: v.object({ text: v.string(), messages: v.array(vMessageDoc) }),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definePlaygroundAPI.js","sourceRoot":"","sources":["../../../src/vercel/client/definePlaygroundAPI.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,eAAe,EACf,uBAAuB,EACvB,YAAY,GAMb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAClC,OAAO,EACL,eAAe,EACf,QAAQ,EACR,WAAW,EACX,iBAAiB,EACjB,eAAe,EACf,UAAU,EACV,WAAW,GAEZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,YAAY,IAAI,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EACL,WAAW,EACX,YAAY,EACZ,eAAe,EACf,MAAM,GACP,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,yBAAyB,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE1E,OAAO,EAAE,YAAY,IAAI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AM,EAAE,IAAI,CAAC,MAAM;gBACnB,QAAQ,EAAE,IAAI,CAAC,QAAQ;gBACvB,eAAe;gBACf,UAAU,EAAE,IAAI,CAAC,UAAU;gBAC3B,cAAc,EAAE,IAAI,CAAC,cAAc;gBACnC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,cAAc,CAAC;aAC7C,CAAC,CAAC;YACH,MAAM,kBAAkB,GAAG,QAAQ,CAAC,SAAS,CAC3C,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,eAAe,CACjC,CAAC;YACF,IAAI,kBAAkB,KAAK,CAAC,CAAC,EAAE,CAAC;gBAC9B,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,kBAAkB,CAAC,CAAC;YAC/C,CAAC;YACD,OAAO,QAAQ,CAAC;QAClB,CAAC;KACF,CAAC,CAAC;IAEH,OAAO;QACL,aAAa;QACb,SAAS;QACT,WAAW;QACX,YAAY;QACZ,UAAU;QACV,YAAY;QACZ,YAAY;QACZ,kBAAkB;KACnB,CAAC;AACJ,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FilePart, ImagePart, ModelMessage } from "ai";
|
|
2
|
-
import type { Id } from "
|
|
2
|
+
import type { Id } from "../../component/_generated/dataModel.js";
|
|
3
3
|
import type { ActionCtx, AgentComponent, MutationCtx, QueryCtx } from "./types.js";
|
|
4
|
-
import type { Message } from "
|
|
4
|
+
import type { Message } from "../../validators.js";
|
|
5
5
|
import type { StorageReader } from "convex/server";
|
|
6
6
|
export declare const MAX_FILE_SIZE: number;
|
|
7
7
|
type File = {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../../src/vercel/client/files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,QAAQ,EACR,SAAS,EACT,YAAY,EAEb,MAAM,IAAI,CAAC;AACZ,OAAO,KAAK,EAAE,EAA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ions, PaginationResult } from "convex/server";
|
|
3
|
+
import type { MessageDoc } from "../../validators.js";
|
|
4
|
+
import { type Message, type MessageEmbeddings, type MessageWithMetadata } from "../../validators.js";
|
|
5
|
+
import { type UIMessage } from "../UIMessages.js";
|
|
6
|
+
import type { AgentComponent, MutationCtx, QueryCtx, ActionCtx } from "./types.js";
|
|
7
|
+
export { listMessages } from "../../client/messages.js";
|
|
8
|
+
export declare function listUIMessages(ctx: QueryCtx | MutationCtx | ActionCtx, component: AgentComponent, args: {
|
|
9
|
+
threadId: string;
|
|
10
|
+
paginationOpts: PaginationOptions;
|
|
11
|
+
}): Promise<PaginationResult<UIMessage>>;
|
|
12
|
+
export type SaveMessagesArgs = {
|
|
13
|
+
threadId: string;
|
|
14
|
+
userId?: string | null;
|
|
15
|
+
/**
|
|
16
|
+
* The message that these messages are in response to. They will be
|
|
17
|
+
* the same "order" as this message, at increasing stepOrder(s).
|
|
18
|
+
*/
|
|
19
|
+
promptMessageId?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The messages to save.
|
|
22
|
+
*/
|
|
23
|
+
messages: (ModelMessage | Message)[];
|
|
24
|
+
/**
|
|
25
|
+
* Metadata to save with the messages. Each element corresponds to the
|
|
26
|
+
* message at the same index.
|
|
27
|
+
*/
|
|
28
|
+
metadata?: Omit<MessageWithMetadata, "message">[];
|
|
29
|
+
/**
|
|
30
|
+
* If true, it will fail any pending steps.
|
|
31
|
+
* Defaults to false.
|
|
32
|
+
*/
|
|
33
|
+
failPendingSteps?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* The embeddings to save with the messages.
|
|
36
|
+
*/
|
|
37
|
+
embeddings?: MessageEmbeddings;
|
|
38
|
+
/**
|
|
39
|
+
* A pending message ID to replace when adding messages.
|
|
40
|
+
*/
|
|
41
|
+
pendingMessageId?: string;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Explicitly save messages associated with the thread (& user if provided)
|
|
45
|
+
*/
|
|
46
|
+
export declare function saveMessages(ctx: MutationCtx | ActionCtx, component: AgentComponent, args: SaveMessagesArgs & {
|
|
47
|
+
/**
|
|
48
|
+
* The agent name to associate with the messages.
|
|
49
|
+
*/
|
|
50
|
+
agentName?: string;
|
|
51
|
+
}): Promise<{
|
|
52
|
+
messages: MessageDoc[];
|
|
53
|
+
}>;
|
|
54
|
+
export type SaveMessageArgs = {
|
|
55
|
+
threadId: string;
|
|
56
|
+
userId?: string | null;
|
|
57
|
+
/**
|
|
58
|
+
* The message that these messages are in response to. They will be
|
|
59
|
+
* the same "order" as this message, at increasing stepOrder(s).
|
|
60
|
+
*/
|
|
61
|
+
promptMessageId?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Metadata to save with the messages. Each element corresponds to the
|
|
64
|
+
* message at the same index.
|
|
65
|
+
*/
|
|
66
|
+
metadata?: Omit<MessageWithMetadata, "message">;
|
|
67
|
+
/**
|
|
68
|
+
* The embedding to save with the message.
|
|
69
|
+
*/
|
|
70
|
+
embedding?: {
|
|
71
|
+
vector: number[];
|
|
72
|
+
model: string;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* A pending message ID to replace with this message.
|
|
76
|
+
*/
|
|
77
|
+
pendingMessageId?: string;
|
|
78
|
+
} & ({
|
|
79
|
+
prompt?: undefined;
|
|
80
|
+
/**
|
|
81
|
+
* The message to save.
|
|
82
|
+
*/
|
|
83
|
+
message: ModelMessage | Message;
|
|
84
|
+
} | {
|
|
85
|
+
prompt: string;
|
|
86
|
+
message?: undefined;
|
|
87
|
+
});
|
|
88
|
+
/**
|
|
89
|
+
* Save a message to the thread.
|
|
90
|
+
* @param ctx A ctx object from a mutation or action.
|
|
91
|
+
* @param args The message and what to associate it with (user / thread)
|
|
92
|
+
* You can pass extra metadata alongside the message, e.g. associated fileIds.
|
|
93
|
+
* @returns The messageId of the saved message.
|
|
94
|
+
*/
|
|
95
|
+
export declare function saveMessage(ctx: MutationCtx | ActionCtx, component: AgentComponent, args: SaveMessageArgs & {
|
|
96
|
+
/**
|
|
97
|
+
* The agent name to associate with the message.
|
|
98
|
+
*/
|
|
99
|
+
agentName?: string;
|
|
100
|
+
}): Promise<{
|
|
101
|
+
messageId: string;
|
|
102
|
+
message: {
|
|
103
|
+
text?: string | undefined;
|
|
104
|
+
reasoning?: string | undefined;
|
|
105
|
+
id?: string | undefined;
|
|
106
|
+
userId?: string | undefined;
|
|
107
|
+
embeddingId?: string | undefined;
|
|
108
|
+
fileIds?: string[] | undefined;
|
|
109
|
+
error?: string | undefined;
|
|
110
|
+
agentName?: string | undefined;
|
|
111
|
+
model?: string | undefined;
|
|
112
|
+
provider?: string | undefined;
|
|
113
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
114
|
+
message?: {
|
|
115
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
116
|
+
role: "user";
|
|
117
|
+
content: string | ({
|
|
118
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
119
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
120
|
+
text: string;
|
|
121
|
+
type: "text";
|
|
122
|
+
} | {
|
|
123
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
124
|
+
mediaType?: string | undefined;
|
|
125
|
+
mimeType?: string | undefined;
|
|
126
|
+
type: "image";
|
|
127
|
+
image: string | ArrayBuffer | {
|
|
128
|
+
type: "reference";
|
|
129
|
+
reference: Record<string, string>;
|
|
130
|
+
};
|
|
131
|
+
} | {
|
|
132
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
133
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
134
|
+
mediaType?: string | undefined;
|
|
135
|
+
mimeType?: string | undefined;
|
|
136
|
+
filename?: string | undefined;
|
|
137
|
+
type: "file";
|
|
138
|
+
data: string | ArrayBuffer | {
|
|
139
|
+
type: "reference";
|
|
140
|
+
reference: Record<string, string>;
|
|
141
|
+
};
|
|
142
|
+
})[];
|
|
143
|
+
} | {
|
|
144
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
145
|
+
role: "assistant";
|
|
146
|
+
content: string | ({
|
|
147
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
148
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
149
|
+
text: string;
|
|
150
|
+
type: "text";
|
|
151
|
+
} | {
|
|
152
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
153
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
154
|
+
mediaType?: string | undefined;
|
|
155
|
+
mimeType?: string | undefined;
|
|
156
|
+
filename?: string | undefined;
|
|
157
|
+
type: "file";
|
|
158
|
+
data: string | ArrayBuffer | {
|
|
159
|
+
type: "reference";
|
|
160
|
+
reference: Record<string, string>;
|
|
161
|
+
};
|
|
162
|
+
} | {
|
|
163
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
164
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
165
|
+
signature?: string | undefined;
|
|
166
|
+
text: string;
|
|
167
|
+
type: "reasoning";
|
|
168
|
+
} | {
|
|
169
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
170
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
171
|
+
data?: string | ArrayBuffer | undefined;
|
|
172
|
+
url?: string | undefined;
|
|
173
|
+
type: "reasoning-file";
|
|
174
|
+
mediaType: string;
|
|
175
|
+
} | {
|
|
176
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
177
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
178
|
+
type: "custom";
|
|
179
|
+
kind: string;
|
|
180
|
+
} | {
|
|
181
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
182
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
183
|
+
type: "redacted-reasoning";
|
|
184
|
+
data: string;
|
|
185
|
+
} | {
|
|
186
|
+
title?: string | undefined;
|
|
187
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
188
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
189
|
+
args?: any;
|
|
190
|
+
providerExecuted?: boolean | undefined;
|
|
191
|
+
toolMetadata?: Record<string, any> | undefined;
|
|
192
|
+
type: "tool-call";
|
|
193
|
+
toolCallId: string;
|
|
194
|
+
toolName: string;
|
|
195
|
+
input: any;
|
|
196
|
+
} | {
|
|
197
|
+
title?: string | undefined;
|
|
198
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
199
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
200
|
+
input?: any;
|
|
201
|
+
providerExecuted?: boolean | undefined;
|
|
202
|
+
toolMetadata?: Record<string, any> | undefined;
|
|
203
|
+
type: "tool-call";
|
|
204
|
+
toolCallId: string;
|
|
205
|
+
toolName: string;
|
|
206
|
+
args: any;
|
|
207
|
+
} | {
|
|
208
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
209
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
210
|
+
args?: any;
|
|
211
|
+
providerExecuted?: boolean | undefined;
|
|
212
|
+
output?: {
|
|
213
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
214
|
+
type: "text";
|
|
215
|
+
value: string;
|
|
216
|
+
} | {
|
|
217
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
218
|
+
type: "json";
|
|
219
|
+
value: any;
|
|
220
|
+
} | {
|
|
221
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
222
|
+
type: "error-text";
|
|
223
|
+
value: string;
|
|
224
|
+
} | {
|
|
225
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
226
|
+
type: "error-json";
|
|
227
|
+
value: any;
|
|
228
|
+
} | {
|
|
229
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
230
|
+
reason?: string | undefined;
|
|
231
|
+
type: "execution-denied";
|
|
232
|
+
} | {
|
|
233
|
+
type: "content";
|
|
234
|
+
value: ({
|
|
235
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
236
|
+
text: string;
|
|
237
|
+
type: "text";
|
|
238
|
+
} | {
|
|
239
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
240
|
+
filename?: string | undefined;
|
|
241
|
+
type: "file";
|
|
242
|
+
mediaType: string;
|
|
243
|
+
data: {
|
|
244
|
+
type: "reference";
|
|
245
|
+
reference: Record<string, string>;
|
|
246
|
+
} | {
|
|
247
|
+
type: "url";
|
|
248
|
+
url: string;
|
|
249
|
+
} | {
|
|
250
|
+
type: "data";
|
|
251
|
+
data: string | ArrayBuffer;
|
|
252
|
+
} | {
|
|
253
|
+
text: string;
|
|
254
|
+
type: "text";
|
|
255
|
+
};
|
|
256
|
+
} | {
|
|
257
|
+
type: "media";
|
|
258
|
+
mediaType: string;
|
|
259
|
+
data: string;
|
|
260
|
+
} | {
|
|
261
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
262
|
+
filename?: string | undefined;
|
|
263
|
+
type: "file-data";
|
|
264
|
+
mediaType: string;
|
|
265
|
+
data: string;
|
|
266
|
+
} | {
|
|
267
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
268
|
+
mediaType?: string | undefined;
|
|
269
|
+
type: "file-url";
|
|
270
|
+
url: string;
|
|
271
|
+
} | {
|
|
272
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
273
|
+
type: "file-id";
|
|
274
|
+
fileId: string | Record<string, string>;
|
|
275
|
+
} | {
|
|
276
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
277
|
+
type: "file-reference";
|
|
278
|
+
providerReference: Record<string, string>;
|
|
279
|
+
} | {
|
|
280
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
281
|
+
type: "image-data";
|
|
282
|
+
mediaType: string;
|
|
283
|
+
data: string;
|
|
284
|
+
} | {
|
|
285
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
286
|
+
type: "image-file-reference";
|
|
287
|
+
providerReference: Record<string, string>;
|
|
288
|
+
} | {
|
|
289
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
290
|
+
type: "image-url";
|
|
291
|
+
url: string;
|
|
292
|
+
} | {
|
|
293
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
294
|
+
type: "image-file-id";
|
|
295
|
+
fileId: string | Record<string, string>;
|
|
296
|
+
} | {
|
|
297
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
298
|
+
type: "custom";
|
|
299
|
+
})[];
|
|
300
|
+
} | undefined;
|
|
301
|
+
result?: any;
|
|
302
|
+
isError?: boolean | undefined;
|
|
303
|
+
experimental_content?: ({
|
|
304
|
+
text: string;
|
|
305
|
+
type: "text";
|
|
306
|
+
} | {
|
|
307
|
+
mimeType?: string | undefined;
|
|
308
|
+
type: "image";
|
|
309
|
+
data: string;
|
|
310
|
+
})[] | undefined;
|
|
311
|
+
type: "tool-result";
|
|
312
|
+
toolCallId: string;
|
|
313
|
+
toolName: string;
|
|
314
|
+
} | {
|
|
315
|
+
title?: string | undefined;
|
|
316
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
317
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
318
|
+
id: string;
|
|
319
|
+
type: "source";
|
|
320
|
+
url: string;
|
|
321
|
+
sourceType: "url";
|
|
322
|
+
} | {
|
|
323
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
324
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
325
|
+
filename?: string | undefined;
|
|
326
|
+
id: string;
|
|
327
|
+
title: string;
|
|
328
|
+
type: "source";
|
|
329
|
+
mediaType: string;
|
|
330
|
+
sourceType: "document";
|
|
331
|
+
} | {
|
|
332
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
333
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
334
|
+
signature?: string | undefined;
|
|
335
|
+
isAutomatic?: boolean | undefined;
|
|
336
|
+
type: "tool-approval-request";
|
|
337
|
+
toolCallId: string;
|
|
338
|
+
approvalId: string;
|
|
339
|
+
})[];
|
|
340
|
+
} | {
|
|
341
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
342
|
+
role: "tool";
|
|
343
|
+
content: ({
|
|
344
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
345
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
346
|
+
args?: any;
|
|
347
|
+
providerExecuted?: boolean | undefined;
|
|
348
|
+
output?: {
|
|
349
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
350
|
+
type: "text";
|
|
351
|
+
value: string;
|
|
352
|
+
} | {
|
|
353
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
354
|
+
type: "json";
|
|
355
|
+
value: any;
|
|
356
|
+
} | {
|
|
357
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
358
|
+
type: "error-text";
|
|
359
|
+
value: string;
|
|
360
|
+
} | {
|
|
361
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
362
|
+
type: "error-json";
|
|
363
|
+
value: any;
|
|
364
|
+
} | {
|
|
365
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
366
|
+
reason?: string | undefined;
|
|
367
|
+
type: "execution-denied";
|
|
368
|
+
} | {
|
|
369
|
+
type: "content";
|
|
370
|
+
value: ({
|
|
371
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
372
|
+
text: string;
|
|
373
|
+
type: "text";
|
|
374
|
+
} | {
|
|
375
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
376
|
+
filename?: string | undefined;
|
|
377
|
+
type: "file";
|
|
378
|
+
mediaType: string;
|
|
379
|
+
data: {
|
|
380
|
+
type: "reference";
|
|
381
|
+
reference: Record<string, string>;
|
|
382
|
+
} | {
|
|
383
|
+
type: "url";
|
|
384
|
+
url: string;
|
|
385
|
+
} | {
|
|
386
|
+
type: "data";
|
|
387
|
+
data: string | ArrayBuffer;
|
|
388
|
+
} | {
|
|
389
|
+
text: string;
|
|
390
|
+
type: "text";
|
|
391
|
+
};
|
|
392
|
+
} | {
|
|
393
|
+
type: "media";
|
|
394
|
+
mediaType: string;
|
|
395
|
+
data: string;
|
|
396
|
+
} | {
|
|
397
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
398
|
+
filename?: string | undefined;
|
|
399
|
+
type: "file-data";
|
|
400
|
+
mediaType: string;
|
|
401
|
+
data: string;
|
|
402
|
+
} | {
|
|
403
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
404
|
+
mediaType?: string | undefined;
|
|
405
|
+
type: "file-url";
|
|
406
|
+
url: string;
|
|
407
|
+
} | {
|
|
408
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
409
|
+
type: "file-id";
|
|
410
|
+
fileId: string | Record<string, string>;
|
|
411
|
+
} | {
|
|
412
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
413
|
+
type: "file-reference";
|
|
414
|
+
providerReference: Record<string, string>;
|
|
415
|
+
} | {
|
|
416
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
417
|
+
type: "image-data";
|
|
418
|
+
mediaType: string;
|
|
419
|
+
data: string;
|
|
420
|
+
} | {
|
|
421
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
422
|
+
type: "image-file-reference";
|
|
423
|
+
providerReference: Record<string, string>;
|
|
424
|
+
} | {
|
|
425
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
426
|
+
type: "image-url";
|
|
427
|
+
url: string;
|
|
428
|
+
} | {
|
|
429
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
430
|
+
type: "image-file-id";
|
|
431
|
+
fileId: string | Record<string, string>;
|
|
432
|
+
} | {
|
|
433
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
434
|
+
type: "custom";
|
|
435
|
+
})[];
|
|
436
|
+
} | undefined;
|
|
437
|
+
result?: any;
|
|
438
|
+
isError?: boolean | undefined;
|
|
439
|
+
experimental_content?: ({
|
|
440
|
+
text: string;
|
|
441
|
+
type: "text";
|
|
442
|
+
} | {
|
|
443
|
+
mimeType?: string | undefined;
|
|
444
|
+
type: "image";
|
|
445
|
+
data: string;
|
|
446
|
+
})[] | undefined;
|
|
447
|
+
type: "tool-result";
|
|
448
|
+
toolCallId: string;
|
|
449
|
+
toolName: string;
|
|
450
|
+
} | {
|
|
451
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
452
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
453
|
+
providerExecuted?: boolean | undefined;
|
|
454
|
+
reason?: string | undefined;
|
|
455
|
+
type: "tool-approval-response";
|
|
456
|
+
approvalId: string;
|
|
457
|
+
approved: boolean;
|
|
458
|
+
})[];
|
|
459
|
+
} | {
|
|
460
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
461
|
+
role: "system";
|
|
462
|
+
content: string;
|
|
463
|
+
} | undefined;
|
|
464
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
465
|
+
usage?: {
|
|
466
|
+
promptTokens?: number | undefined;
|
|
467
|
+
completionTokens?: number | undefined;
|
|
468
|
+
totalTokens?: number | undefined;
|
|
469
|
+
reasoningTokens?: number | undefined;
|
|
470
|
+
cachedInputTokens?: number | undefined;
|
|
471
|
+
nonCachedInputTokens?: number | undefined;
|
|
472
|
+
cacheWriteInputTokens?: number | undefined;
|
|
473
|
+
textOutputTokens?: number | undefined;
|
|
474
|
+
raw?: Record<string, any> | undefined;
|
|
475
|
+
} | undefined;
|
|
476
|
+
sources?: ({
|
|
477
|
+
title?: string | undefined;
|
|
478
|
+
type?: "source" | undefined;
|
|
479
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
480
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
481
|
+
id: string;
|
|
482
|
+
url: string;
|
|
483
|
+
sourceType: "url";
|
|
484
|
+
} | {
|
|
485
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
486
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
487
|
+
filename?: string | undefined;
|
|
488
|
+
id: string;
|
|
489
|
+
title: string;
|
|
490
|
+
type: "source";
|
|
491
|
+
mediaType: string;
|
|
492
|
+
sourceType: "document";
|
|
493
|
+
})[] | undefined;
|
|
494
|
+
warnings?: ({
|
|
495
|
+
details?: string | undefined;
|
|
496
|
+
type: "unsupported";
|
|
497
|
+
feature: string;
|
|
498
|
+
} | {
|
|
499
|
+
details?: string | undefined;
|
|
500
|
+
type: "compatibility";
|
|
501
|
+
feature: string;
|
|
502
|
+
} | {
|
|
503
|
+
type: "deprecated";
|
|
504
|
+
message: string;
|
|
505
|
+
setting: string;
|
|
506
|
+
} | {
|
|
507
|
+
details?: string | undefined;
|
|
508
|
+
type: "unsupported-setting";
|
|
509
|
+
setting: string;
|
|
510
|
+
} | {
|
|
511
|
+
details?: string | undefined;
|
|
512
|
+
tool: any;
|
|
513
|
+
type: "unsupported-tool";
|
|
514
|
+
} | {
|
|
515
|
+
type: "other";
|
|
516
|
+
message: string;
|
|
517
|
+
})[] | undefined;
|
|
518
|
+
finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
519
|
+
reasoningDetails?: ({
|
|
520
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
521
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
522
|
+
signature?: string | undefined;
|
|
523
|
+
text: string;
|
|
524
|
+
type: "reasoning";
|
|
525
|
+
} | {
|
|
526
|
+
signature?: string | undefined;
|
|
527
|
+
text: string;
|
|
528
|
+
type: "text";
|
|
529
|
+
} | {
|
|
530
|
+
type: "redacted";
|
|
531
|
+
data: string;
|
|
532
|
+
})[] | undefined;
|
|
533
|
+
tool: boolean;
|
|
534
|
+
status: "pending" | "success" | "failed";
|
|
535
|
+
order: number;
|
|
536
|
+
_creationTime: number;
|
|
537
|
+
threadId: string;
|
|
538
|
+
stepOrder: number;
|
|
539
|
+
_id: string;
|
|
540
|
+
};
|
|
541
|
+
}>;
|
|
542
|
+
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/vercel/client/messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AACvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACzB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAgB,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAKhE,OAAO,KAAK,EACV,cAAc,EACd,WAAW,EACX,QAAQ,EACR,SAAS,EACV,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,wBAAsB,cAAc,CAClC,GAAG,EAAE,QAAQ,GAAG,WAAW,GAAG,SAAS,EACvC,SAAS,EAAE,cAAc,EACzB,IAAI,EAAE;IACJ,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,iBAAiB,CAAC;CACnC,GACA,OAAO,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,CAGtC;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,EAAE,CAAC,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