@convex-dev/agent 0.1.1-alpha.0 → 0.1.2-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/README.md +9 -3
- package/dist/commonjs/client/createTool.d.ts +49 -0
- package/dist/commonjs/client/createTool.d.ts.map +1 -0
- package/dist/commonjs/client/createTool.js +45 -0
- package/dist/commonjs/client/createTool.js.map +1 -0
- package/dist/commonjs/client/index.d.ts +101 -322
- package/dist/commonjs/client/index.d.ts.map +1 -1
- package/dist/commonjs/client/index.js +142 -194
- package/dist/commonjs/client/index.js.map +1 -1
- package/dist/commonjs/client/streaming.d.ts +54 -0
- package/dist/commonjs/client/streaming.d.ts.map +1 -0
- package/dist/commonjs/client/streaming.js +121 -0
- package/dist/commonjs/client/streaming.js.map +1 -0
- package/dist/commonjs/client/types.d.ts +290 -2
- package/dist/commonjs/client/types.d.ts.map +1 -1
- package/dist/commonjs/component/messages.d.ts +109 -143
- package/dist/commonjs/component/messages.d.ts.map +1 -1
- package/dist/commonjs/component/messages.js +15 -14
- package/dist/commonjs/component/messages.js.map +1 -1
- package/dist/commonjs/component/schema.d.ts +1026 -52
- package/dist/commonjs/component/schema.d.ts.map +1 -1
- package/dist/commonjs/component/schema.js +39 -1
- package/dist/commonjs/component/schema.js.map +1 -1
- package/dist/commonjs/component/streams.d.ts +191 -0
- package/dist/commonjs/component/streams.d.ts.map +1 -0
- package/dist/commonjs/component/streams.js +169 -0
- package/dist/commonjs/component/streams.js.map +1 -0
- package/dist/commonjs/component/threads.d.ts +1 -1
- package/dist/commonjs/component/threads.js +3 -3
- package/dist/commonjs/component/threads.js.map +1 -1
- package/dist/commonjs/component/users.js +2 -2
- package/dist/commonjs/component/users.js.map +1 -1
- package/dist/commonjs/component/vector/index.d.ts +8 -8
- package/dist/commonjs/component/vector/index.d.ts.map +1 -1
- package/dist/commonjs/component/vector/tables.d.ts +5 -5
- package/dist/commonjs/component/vector/tables.d.ts.map +1 -1
- package/dist/commonjs/component/vector/tables.js +1 -1
- package/dist/commonjs/component/vector/tables.js.map +1 -1
- package/dist/commonjs/mapping.d.ts.map +1 -1
- package/dist/commonjs/mapping.js +3 -1
- package/dist/commonjs/mapping.js.map +1 -1
- package/dist/commonjs/react/index.d.ts +99 -0
- package/dist/commonjs/react/index.d.ts.map +1 -1
- package/dist/commonjs/react/index.js +505 -1
- package/dist/commonjs/react/index.js.map +1 -1
- package/dist/commonjs/react/toUIMessages.d.ts +8 -0
- package/dist/commonjs/react/toUIMessages.d.ts.map +1 -0
- package/dist/commonjs/react/toUIMessages.js +134 -0
- package/dist/commonjs/react/toUIMessages.js.map +1 -0
- package/dist/commonjs/validators.d.ts +513 -11
- package/dist/commonjs/validators.d.ts.map +1 -1
- package/dist/commonjs/validators.js +49 -2
- package/dist/commonjs/validators.js.map +1 -1
- package/dist/esm/client/createTool.d.ts +49 -0
- package/dist/esm/client/createTool.d.ts.map +1 -0
- package/dist/esm/client/createTool.js +45 -0
- package/dist/esm/client/createTool.js.map +1 -0
- package/dist/esm/client/index.d.ts +101 -322
- package/dist/esm/client/index.d.ts.map +1 -1
- package/dist/esm/client/index.js +142 -194
- package/dist/esm/client/index.js.map +1 -1
- package/dist/esm/client/streaming.d.ts +54 -0
- package/dist/esm/client/streaming.d.ts.map +1 -0
- package/dist/esm/client/streaming.js +121 -0
- package/dist/esm/client/streaming.js.map +1 -0
- package/dist/esm/client/types.d.ts +290 -2
- package/dist/esm/client/types.d.ts.map +1 -1
- package/dist/esm/component/messages.d.ts +109 -143
- package/dist/esm/component/messages.d.ts.map +1 -1
- package/dist/esm/component/messages.js +15 -14
- package/dist/esm/component/messages.js.map +1 -1
- package/dist/esm/component/schema.d.ts +1026 -52
- package/dist/esm/component/schema.d.ts.map +1 -1
- package/dist/esm/component/schema.js +39 -1
- package/dist/esm/component/schema.js.map +1 -1
- package/dist/esm/component/streams.d.ts +191 -0
- package/dist/esm/component/streams.d.ts.map +1 -0
- package/dist/esm/component/streams.js +169 -0
- package/dist/esm/component/streams.js.map +1 -0
- package/dist/esm/component/threads.d.ts +1 -1
- package/dist/esm/component/threads.js +3 -3
- package/dist/esm/component/threads.js.map +1 -1
- package/dist/esm/component/users.js +2 -2
- package/dist/esm/component/users.js.map +1 -1
- package/dist/esm/component/vector/index.d.ts +8 -8
- package/dist/esm/component/vector/index.d.ts.map +1 -1
- package/dist/esm/component/vector/tables.d.ts +5 -5
- package/dist/esm/component/vector/tables.d.ts.map +1 -1
- package/dist/esm/component/vector/tables.js +1 -1
- package/dist/esm/component/vector/tables.js.map +1 -1
- package/dist/esm/mapping.d.ts.map +1 -1
- package/dist/esm/mapping.js +3 -1
- package/dist/esm/mapping.js.map +1 -1
- package/dist/esm/react/index.d.ts +99 -0
- package/dist/esm/react/index.d.ts.map +1 -1
- package/dist/esm/react/index.js +505 -1
- package/dist/esm/react/index.js.map +1 -1
- package/dist/esm/react/toUIMessages.d.ts +8 -0
- package/dist/esm/react/toUIMessages.d.ts.map +1 -0
- package/dist/esm/react/toUIMessages.js +134 -0
- package/dist/esm/react/toUIMessages.js.map +1 -0
- package/dist/esm/validators.d.ts +513 -11
- package/dist/esm/validators.d.ts.map +1 -1
- package/dist/esm/validators.js +49 -2
- package/dist/esm/validators.js.map +1 -1
- package/package.json +6 -2
- package/src/client/createTool.ts +108 -0
- package/src/client/index.ts +270 -689
- package/src/client/streaming.ts +166 -0
- package/src/client/types.ts +430 -5
- package/src/component/_generated/api.d.ts +367 -190
- package/src/component/messages.ts +15 -14
- package/src/component/schema.ts +46 -0
- package/src/component/streams.ts +206 -0
- package/src/component/threads.ts +3 -3
- package/src/component/users.ts +2 -2
- package/src/component/vector/tables.ts +1 -1
- package/src/mapping.ts +3 -1
- package/src/react/index.ts +687 -1
- package/src/react/toUIMessages.ts +153 -0
- package/src/validators.test.ts +18 -0
- package/src/validators.ts +72 -2
- package/dist/commonjs/deltaStreaming.d.ts +0 -2
- package/dist/commonjs/deltaStreaming.d.ts.map +0 -1
- package/dist/commonjs/deltaStreaming.js +0 -2
- package/dist/commonjs/deltaStreaming.js.map +0 -1
- package/dist/esm/deltaStreaming.d.ts +0 -2
- package/dist/esm/deltaStreaming.d.ts.map +0 -1
- package/dist/esm/deltaStreaming.js +0 -2
- package/dist/esm/deltaStreaming.js.map +0 -1
- package/src/deltaStreaming.ts +0 -1
|
@@ -2870,11 +2870,11 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
2870
2870
|
export type MessageWithMetadata = Infer<typeof vMessageWithMetadata>;
|
|
2871
2871
|
export declare const vMessageEmbeddings: import("convex/values").VObject<{
|
|
2872
2872
|
model: string;
|
|
2873
|
-
dimension: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
2873
|
+
dimension: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
2874
2874
|
vectors: (number[] | null)[];
|
|
2875
2875
|
}, {
|
|
2876
2876
|
model: import("convex/values").VString<string, "required">;
|
|
2877
|
-
dimension: import("convex/values").VUnion<128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096, any, "required", any>;
|
|
2877
|
+
dimension: import("convex/values").VUnion<128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096, any, "required", any>;
|
|
2878
2878
|
vectors: import("convex/values").VArray<(number[] | null)[], import("convex/values").VUnion<number[] | null, [import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">, import("convex/values").VNull<null, "required">], "required", never>, "required">;
|
|
2879
2879
|
}, "required", "model" | "dimension" | "vectors" | `dimension.${any}`>;
|
|
2880
2880
|
export declare const vStep: import("convex/values").VObject<{
|
|
@@ -3904,7 +3904,7 @@ export type Step = Infer<typeof vStep>;
|
|
|
3904
3904
|
export declare const vStepWithMessages: import("convex/values").VObject<{
|
|
3905
3905
|
embeddings?: {
|
|
3906
3906
|
model: string;
|
|
3907
|
-
dimension: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
3907
|
+
dimension: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
3908
3908
|
vectors: (number[] | null)[];
|
|
3909
3909
|
} | undefined;
|
|
3910
3910
|
messages: {
|
|
@@ -5987,11 +5987,11 @@ export declare const vStepWithMessages: import("convex/values").VObject<{
|
|
|
5987
5987
|
}, "required", "id" | "error" | "model" | "provider" | "message" | "text" | "reasoning" | "files" | "usage" | "providerMetadata" | "sources" | "reasoningDetails" | "warnings" | "finishReason" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | `providerMetadata.${string}`>, "required">;
|
|
5988
5988
|
embeddings: import("convex/values").VObject<{
|
|
5989
5989
|
model: string;
|
|
5990
|
-
dimension: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
5990
|
+
dimension: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
5991
5991
|
vectors: (number[] | null)[];
|
|
5992
5992
|
} | undefined, {
|
|
5993
5993
|
model: import("convex/values").VString<string, "required">;
|
|
5994
|
-
dimension: import("convex/values").VUnion<128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096, any, "required", any>;
|
|
5994
|
+
dimension: import("convex/values").VUnion<128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096, any, "required", any>;
|
|
5995
5995
|
vectors: import("convex/values").VArray<(number[] | null)[], import("convex/values").VUnion<number[] | null, [import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">, import("convex/values").VNull<null, "required">], "required", never>, "required">;
|
|
5996
5996
|
}, "optional", "model" | "dimension" | "vectors" | `dimension.${any}`>;
|
|
5997
5997
|
}, "required", "messages" | "step" | "step.text" | "step.reasoning" | "step.files" | "step.usage" | "step.providerMetadata" | "step.sources" | "step.reasoningDetails" | "step.warnings" | "step.finishReason" | "step.usage.promptTokens" | "step.usage.completionTokens" | "step.usage.totalTokens" | `step.providerMetadata.${string}` | "step.isContinued" | "step.logprobs" | "step.experimental_providerMetadata" | "step.request" | "step.response" | "step.stepType" | "step.toolCalls" | "step.toolResults" | `step.logprobs.${string}` | `step.experimental_providerMetadata.${string}` | "step.request.url" | "step.request.body" | "step.request.headers" | "step.request.method" | `step.request.body.${string}` | `step.request.headers.${string}` | "step.response.id" | "step.response.messages" | "step.response.body" | "step.response.headers" | `step.response.body.${string}` | `step.response.headers.${string}` | "step.response.timestamp" | "step.response.modelId" | "embeddings" | "embeddings.model" | "embeddings.dimension" | "embeddings.vectors" | `embeddings.dimension.${any}`>;
|
|
@@ -6293,6 +6293,7 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
6293
6293
|
frequencyPenalty?: number | undefined;
|
|
6294
6294
|
seed?: number | undefined;
|
|
6295
6295
|
maxRetries?: number | undefined;
|
|
6296
|
+
stream?: boolean | undefined;
|
|
6296
6297
|
toolChoice?: "required" | "auto" | "none" | {
|
|
6297
6298
|
type: "tool";
|
|
6298
6299
|
toolName: string;
|
|
@@ -6300,6 +6301,7 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
6300
6301
|
maxSteps?: number | undefined;
|
|
6301
6302
|
experimental_continueSteps?: boolean | undefined;
|
|
6302
6303
|
prompt?: string | undefined;
|
|
6304
|
+
promptMessageId?: string | undefined;
|
|
6303
6305
|
contextOptions?: {
|
|
6304
6306
|
excludeToolMessages?: boolean | undefined;
|
|
6305
6307
|
recentMessages?: number | undefined;
|
|
@@ -6320,6 +6322,7 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
6320
6322
|
saveOutputMessages?: boolean | undefined;
|
|
6321
6323
|
} | undefined;
|
|
6322
6324
|
}, {
|
|
6325
|
+
stream: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
6323
6326
|
toolChoice: import("convex/values").VUnion<"required" | "auto" | "none" | {
|
|
6324
6327
|
type: "tool";
|
|
6325
6328
|
toolName: string;
|
|
@@ -6332,7 +6335,6 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
6332
6335
|
}, "required", "type" | "toolName">], "optional", "type" | "toolName">;
|
|
6333
6336
|
maxSteps: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
6334
6337
|
experimental_continueSteps: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
6335
|
-
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
6336
6338
|
system: import("convex/values").VString<string | undefined, "optional">;
|
|
6337
6339
|
prompt: import("convex/values").VString<string | undefined, "optional">;
|
|
6338
6340
|
messages: import("convex/values").VArray<({
|
|
@@ -6821,6 +6823,7 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
6821
6823
|
content: import("convex/values").VString<string, "required">;
|
|
6822
6824
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
6823
6825
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">], "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, "optional">;
|
|
6826
|
+
promptMessageId: import("convex/values").VString<string | undefined, "optional">;
|
|
6824
6827
|
maxTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
6825
6828
|
temperature: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
6826
6829
|
topP: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
@@ -6879,7 +6882,8 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
6879
6882
|
saveAnyInputMessages: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
6880
6883
|
saveOutputMessages: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
6881
6884
|
}, "optional", "saveAllInputMessages" | "saveAnyInputMessages" | "saveOutputMessages">;
|
|
6882
|
-
|
|
6885
|
+
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
6886
|
+
}, "required", "userId" | "threadId" | "providerOptions" | `providerOptions.${string}` | "system" | "messages" | "headers" | `headers.${string}` | "maxTokens" | "temperature" | "topP" | "topK" | "presencePenalty" | "frequencyPenalty" | "seed" | "maxRetries" | "stream" | "toolChoice" | "maxSteps" | "experimental_continueSteps" | "prompt" | "promptMessageId" | "contextOptions" | "storageOptions" | "toolChoice.type" | "toolChoice.toolName" | "contextOptions.excludeToolMessages" | "contextOptions.recentMessages" | "contextOptions.searchOptions" | "contextOptions.searchOtherThreads" | "contextOptions.searchOptions.limit" | "contextOptions.searchOptions.messageRange" | "contextOptions.searchOptions.messageRange.before" | "contextOptions.searchOptions.messageRange.after" | "contextOptions.searchOptions.textSearch" | "contextOptions.searchOptions.vectorSearch" | "storageOptions.saveAllInputMessages" | "storageOptions.saveAnyInputMessages" | "storageOptions.saveOutputMessages">;
|
|
6883
6887
|
export type TextArgs = Infer<typeof vTextArgs>;
|
|
6884
6888
|
export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
6885
6889
|
userId?: string | undefined;
|
|
@@ -6967,6 +6971,7 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
6967
6971
|
seed?: number | undefined;
|
|
6968
6972
|
maxRetries?: number | undefined;
|
|
6969
6973
|
prompt?: string | undefined;
|
|
6974
|
+
promptMessageId?: string | undefined;
|
|
6970
6975
|
contextOptions?: {
|
|
6971
6976
|
excludeToolMessages?: boolean | undefined;
|
|
6972
6977
|
recentMessages?: number | undefined;
|
|
@@ -7475,6 +7480,7 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
7475
7480
|
content: import("convex/values").VString<string, "required">;
|
|
7476
7481
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
7477
7482
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">], "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, "optional">;
|
|
7483
|
+
promptMessageId: import("convex/values").VString<string | undefined, "optional">;
|
|
7478
7484
|
maxTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
7479
7485
|
temperature: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
7480
7486
|
topP: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
@@ -7534,19 +7540,19 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
7534
7540
|
saveOutputMessages: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
7535
7541
|
}, "optional", "saveAllInputMessages" | "saveAnyInputMessages" | "saveOutputMessages">;
|
|
7536
7542
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
7537
|
-
}, "required", "userId" | "threadId" | "providerOptions" | `providerOptions.${string}` | "system" | "messages" | "headers" | `headers.${string}` | "maxTokens" | "temperature" | "topP" | "topK" | "presencePenalty" | "frequencyPenalty" | "seed" | "maxRetries" | "prompt" | "contextOptions" | "storageOptions" | "contextOptions.excludeToolMessages" | "contextOptions.recentMessages" | "contextOptions.searchOptions" | "contextOptions.searchOtherThreads" | "contextOptions.searchOptions.limit" | "contextOptions.searchOptions.messageRange" | "contextOptions.searchOptions.messageRange.before" | "contextOptions.searchOptions.messageRange.after" | "contextOptions.searchOptions.textSearch" | "contextOptions.searchOptions.vectorSearch" | "storageOptions.saveAllInputMessages" | "storageOptions.saveAnyInputMessages" | "storageOptions.saveOutputMessages">;
|
|
7543
|
+
}, "required", "userId" | "threadId" | "providerOptions" | `providerOptions.${string}` | "system" | "messages" | "headers" | `headers.${string}` | "maxTokens" | "temperature" | "topP" | "topK" | "presencePenalty" | "frequencyPenalty" | "seed" | "maxRetries" | "prompt" | "promptMessageId" | "contextOptions" | "storageOptions" | "contextOptions.excludeToolMessages" | "contextOptions.recentMessages" | "contextOptions.searchOptions" | "contextOptions.searchOtherThreads" | "contextOptions.searchOptions.limit" | "contextOptions.searchOptions.messageRange" | "contextOptions.searchOptions.messageRange.before" | "contextOptions.searchOptions.messageRange.after" | "contextOptions.searchOptions.textSearch" | "contextOptions.searchOptions.vectorSearch" | "storageOptions.saveAllInputMessages" | "storageOptions.saveAnyInputMessages" | "storageOptions.saveOutputMessages">;
|
|
7538
7544
|
export type SafeObjectArgs = Infer<typeof vSafeObjectArgs>;
|
|
7539
7545
|
export declare const vEmbeddingsWithMetadata: import("convex/values").VObject<{
|
|
7540
7546
|
model: string;
|
|
7541
|
-
dimension: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
7547
|
+
dimension: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
7542
7548
|
vectors: (number[] | null)[];
|
|
7543
7549
|
}, {
|
|
7544
7550
|
vectors: import("convex/values").VArray<(number[] | null)[], import("convex/values").VUnion<number[] | null, [import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">, import("convex/values").VNull<null, "required">], "required", never>, "required">;
|
|
7545
|
-
dimension: import("convex/values").VUnion<128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096, any, "required", any>;
|
|
7551
|
+
dimension: import("convex/values").VUnion<128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096, any, "required", any>;
|
|
7546
7552
|
model: import("convex/values").VString<string, "required">;
|
|
7547
7553
|
}, "required", "model" | "dimension" | "vectors" | `dimension.${any}`>;
|
|
7548
7554
|
export type EmbeddingsWithMetadata = Infer<typeof vEmbeddingsWithMetadata>;
|
|
7549
|
-
export declare function
|
|
7555
|
+
export declare function vPaginationResult<T extends Validator<Value, "required", string>>(itemValidator: T): import("convex/values").VObject<{
|
|
7550
7556
|
splitCursor?: string | null | undefined;
|
|
7551
7557
|
pageStatus?: "SplitRecommended" | "SplitRequired" | null | undefined;
|
|
7552
7558
|
page: T["type"][];
|
|
@@ -7559,5 +7565,501 @@ export declare function paginationResultValidator<T extends Validator<Value, "re
|
|
|
7559
7565
|
splitCursor: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
7560
7566
|
pageStatus: import("convex/values").VUnion<"SplitRecommended" | "SplitRequired" | null | undefined, [import("convex/values").VLiteral<"SplitRecommended", "required">, import("convex/values").VLiteral<"SplitRequired", "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
7561
7567
|
}, "required", "page" | "continueCursor" | "isDone" | "splitCursor" | "pageStatus">;
|
|
7568
|
+
export declare const vTextStreamPart: import("convex/values").VUnion<{
|
|
7569
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
7570
|
+
type: "tool-call";
|
|
7571
|
+
toolCallId: string;
|
|
7572
|
+
toolName: string;
|
|
7573
|
+
args: any;
|
|
7574
|
+
} | {
|
|
7575
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
7576
|
+
args?: any;
|
|
7577
|
+
experimental_content?: ({
|
|
7578
|
+
type: "text";
|
|
7579
|
+
text: string;
|
|
7580
|
+
} | {
|
|
7581
|
+
mimeType?: string | undefined;
|
|
7582
|
+
type: "image";
|
|
7583
|
+
data: string;
|
|
7584
|
+
})[] | undefined;
|
|
7585
|
+
isError?: boolean | undefined;
|
|
7586
|
+
type: "tool-result";
|
|
7587
|
+
toolCallId: string;
|
|
7588
|
+
toolName: string;
|
|
7589
|
+
result: any;
|
|
7590
|
+
} | {
|
|
7591
|
+
type: "text-delta";
|
|
7592
|
+
textDelta: string;
|
|
7593
|
+
} | {
|
|
7594
|
+
type: "reasoning";
|
|
7595
|
+
textDelta: string;
|
|
7596
|
+
} | {
|
|
7597
|
+
type: "source";
|
|
7598
|
+
source: {
|
|
7599
|
+
title?: string | undefined;
|
|
7600
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
7601
|
+
id: string;
|
|
7602
|
+
url: string;
|
|
7603
|
+
sourceType: "url";
|
|
7604
|
+
};
|
|
7605
|
+
} | {
|
|
7606
|
+
type: "tool-call-streaming-start";
|
|
7607
|
+
toolCallId: string;
|
|
7608
|
+
toolName: string;
|
|
7609
|
+
} | {
|
|
7610
|
+
type: "tool-call-delta";
|
|
7611
|
+
toolCallId: string;
|
|
7612
|
+
toolName: string;
|
|
7613
|
+
argsTextDelta: string;
|
|
7614
|
+
}, [import("convex/values").VObject<{
|
|
7615
|
+
type: "text-delta";
|
|
7616
|
+
textDelta: string;
|
|
7617
|
+
}, {
|
|
7618
|
+
type: import("convex/values").VLiteral<"text-delta", "required">;
|
|
7619
|
+
textDelta: import("convex/values").VString<string, "required">;
|
|
7620
|
+
}, "required", "type" | "textDelta">, import("convex/values").VObject<{
|
|
7621
|
+
type: "reasoning";
|
|
7622
|
+
textDelta: string;
|
|
7623
|
+
}, {
|
|
7624
|
+
type: import("convex/values").VLiteral<"reasoning", "required">;
|
|
7625
|
+
textDelta: import("convex/values").VString<string, "required">;
|
|
7626
|
+
}, "required", "type" | "textDelta">, import("convex/values").VObject<{
|
|
7627
|
+
type: "source";
|
|
7628
|
+
source: {
|
|
7629
|
+
title?: string | undefined;
|
|
7630
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
7631
|
+
id: string;
|
|
7632
|
+
url: string;
|
|
7633
|
+
sourceType: "url";
|
|
7634
|
+
};
|
|
7635
|
+
}, {
|
|
7636
|
+
type: import("convex/values").VLiteral<"source", "required">;
|
|
7637
|
+
source: import("convex/values").VObject<{
|
|
7638
|
+
title?: string | undefined;
|
|
7639
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
7640
|
+
id: string;
|
|
7641
|
+
url: string;
|
|
7642
|
+
sourceType: "url";
|
|
7643
|
+
}, {
|
|
7644
|
+
sourceType: import("convex/values").VLiteral<"url", "required">;
|
|
7645
|
+
id: import("convex/values").VString<string, "required">;
|
|
7646
|
+
url: import("convex/values").VString<string, "required">;
|
|
7647
|
+
title: import("convex/values").VString<string | undefined, "optional">;
|
|
7648
|
+
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
7649
|
+
}, "required", "id" | "title" | "providerOptions" | `providerOptions.${string}` | "url" | "sourceType">;
|
|
7650
|
+
}, "required", "type" | "source" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.url" | "source.sourceType">, import("convex/values").VObject<{
|
|
7651
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
7652
|
+
type: "tool-call";
|
|
7653
|
+
toolCallId: string;
|
|
7654
|
+
toolName: string;
|
|
7655
|
+
args: any;
|
|
7656
|
+
}, {
|
|
7657
|
+
type: import("convex/values").VLiteral<"tool-call", "required">;
|
|
7658
|
+
toolCallId: import("convex/values").VString<string, "required">;
|
|
7659
|
+
toolName: import("convex/values").VString<string, "required">;
|
|
7660
|
+
args: import("convex/values").VAny<any, "required", string>;
|
|
7661
|
+
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
7662
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>, import("convex/values").VObject<{
|
|
7663
|
+
type: "tool-call-streaming-start";
|
|
7664
|
+
toolCallId: string;
|
|
7665
|
+
toolName: string;
|
|
7666
|
+
}, {
|
|
7667
|
+
type: import("convex/values").VLiteral<"tool-call-streaming-start", "required">;
|
|
7668
|
+
toolCallId: import("convex/values").VString<string, "required">;
|
|
7669
|
+
toolName: import("convex/values").VString<string, "required">;
|
|
7670
|
+
}, "required", "type" | "toolCallId" | "toolName">, import("convex/values").VObject<{
|
|
7671
|
+
type: "tool-call-delta";
|
|
7672
|
+
toolCallId: string;
|
|
7673
|
+
toolName: string;
|
|
7674
|
+
argsTextDelta: string;
|
|
7675
|
+
}, {
|
|
7676
|
+
type: import("convex/values").VLiteral<"tool-call-delta", "required">;
|
|
7677
|
+
toolCallId: import("convex/values").VString<string, "required">;
|
|
7678
|
+
toolName: import("convex/values").VString<string, "required">;
|
|
7679
|
+
argsTextDelta: import("convex/values").VString<string, "required">;
|
|
7680
|
+
}, "required", "type" | "toolCallId" | "toolName" | "argsTextDelta">, import("convex/values").VObject<{
|
|
7681
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
7682
|
+
args?: any;
|
|
7683
|
+
experimental_content?: ({
|
|
7684
|
+
type: "text";
|
|
7685
|
+
text: string;
|
|
7686
|
+
} | {
|
|
7687
|
+
mimeType?: string | undefined;
|
|
7688
|
+
type: "image";
|
|
7689
|
+
data: string;
|
|
7690
|
+
})[] | undefined;
|
|
7691
|
+
isError?: boolean | undefined;
|
|
7692
|
+
type: "tool-result";
|
|
7693
|
+
toolCallId: string;
|
|
7694
|
+
toolName: string;
|
|
7695
|
+
result: any;
|
|
7696
|
+
}, {
|
|
7697
|
+
type: import("convex/values").VLiteral<"tool-result", "required">;
|
|
7698
|
+
toolCallId: import("convex/values").VString<string, "required">;
|
|
7699
|
+
toolName: import("convex/values").VString<string, "required">;
|
|
7700
|
+
result: import("convex/values").VAny<any, "required", string>;
|
|
7701
|
+
args: import("convex/values").VAny<any, "optional", string>;
|
|
7702
|
+
experimental_content: import("convex/values").VArray<({
|
|
7703
|
+
type: "text";
|
|
7704
|
+
text: string;
|
|
7705
|
+
} | {
|
|
7706
|
+
mimeType?: string | undefined;
|
|
7707
|
+
type: "image";
|
|
7708
|
+
data: string;
|
|
7709
|
+
})[] | undefined, import("convex/values").VUnion<{
|
|
7710
|
+
type: "text";
|
|
7711
|
+
text: string;
|
|
7712
|
+
} | {
|
|
7713
|
+
mimeType?: string | undefined;
|
|
7714
|
+
type: "image";
|
|
7715
|
+
data: string;
|
|
7716
|
+
}, [import("convex/values").VObject<{
|
|
7717
|
+
type: "text";
|
|
7718
|
+
text: string;
|
|
7719
|
+
}, {
|
|
7720
|
+
type: import("convex/values").VLiteral<"text", "required">;
|
|
7721
|
+
text: import("convex/values").VString<string, "required">;
|
|
7722
|
+
}, "required", "type" | "text">, import("convex/values").VObject<{
|
|
7723
|
+
mimeType?: string | undefined;
|
|
7724
|
+
type: "image";
|
|
7725
|
+
data: string;
|
|
7726
|
+
}, {
|
|
7727
|
+
type: import("convex/values").VLiteral<"image", "required">;
|
|
7728
|
+
data: import("convex/values").VString<string, "required">;
|
|
7729
|
+
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
7730
|
+
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
7731
|
+
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
7732
|
+
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
7733
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>], "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}` | "textDelta" | "source" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.url" | "source.sourceType" | "argsTextDelta">;
|
|
7734
|
+
export type TextStreamPart = Infer<typeof vTextStreamPart>;
|
|
7735
|
+
export declare const vStreamCursor: import("convex/values").VObject<{
|
|
7736
|
+
streamId: string;
|
|
7737
|
+
cursor: number;
|
|
7738
|
+
}, {
|
|
7739
|
+
streamId: import("convex/values").VString<string, "required">;
|
|
7740
|
+
cursor: import("convex/values").VFloat64<number, "required">;
|
|
7741
|
+
}, "required", "streamId" | "cursor">;
|
|
7742
|
+
export type StreamCursor = Infer<typeof vStreamCursor>;
|
|
7743
|
+
export declare const vStreamArgs: import("convex/values").VUnion<{
|
|
7744
|
+
kind: "list";
|
|
7745
|
+
} | {
|
|
7746
|
+
kind: "deltas";
|
|
7747
|
+
cursors: {
|
|
7748
|
+
streamId: string;
|
|
7749
|
+
cursor: number;
|
|
7750
|
+
}[];
|
|
7751
|
+
} | undefined, [import("convex/values").VObject<{
|
|
7752
|
+
kind: "list";
|
|
7753
|
+
}, {
|
|
7754
|
+
kind: import("convex/values").VLiteral<"list", "required">;
|
|
7755
|
+
}, "required", "kind">, import("convex/values").VObject<{
|
|
7756
|
+
kind: "deltas";
|
|
7757
|
+
cursors: {
|
|
7758
|
+
streamId: string;
|
|
7759
|
+
cursor: number;
|
|
7760
|
+
}[];
|
|
7761
|
+
}, {
|
|
7762
|
+
kind: import("convex/values").VLiteral<"deltas", "required">;
|
|
7763
|
+
cursors: import("convex/values").VArray<{
|
|
7764
|
+
streamId: string;
|
|
7765
|
+
cursor: number;
|
|
7766
|
+
}[], import("convex/values").VObject<{
|
|
7767
|
+
streamId: string;
|
|
7768
|
+
cursor: number;
|
|
7769
|
+
}, {
|
|
7770
|
+
streamId: import("convex/values").VString<string, "required">;
|
|
7771
|
+
cursor: import("convex/values").VFloat64<number, "required">;
|
|
7772
|
+
}, "required", "streamId" | "cursor">, "required">;
|
|
7773
|
+
}, "required", "kind" | "cursors">], "optional", "kind" | "cursors">;
|
|
7774
|
+
export type StreamArgs = Infer<typeof vStreamArgs>;
|
|
7775
|
+
export declare const vStreamMessage: import("convex/values").VObject<{
|
|
7776
|
+
userId?: string | undefined;
|
|
7777
|
+
agentName?: string | undefined;
|
|
7778
|
+
model?: string | undefined;
|
|
7779
|
+
provider?: string | undefined;
|
|
7780
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
7781
|
+
order: number;
|
|
7782
|
+
stepOrder: number;
|
|
7783
|
+
streamId: string;
|
|
7784
|
+
}, {
|
|
7785
|
+
streamId: import("convex/values").VString<string, "required">;
|
|
7786
|
+
order: import("convex/values").VFloat64<number, "required">;
|
|
7787
|
+
stepOrder: import("convex/values").VFloat64<number, "required">;
|
|
7788
|
+
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
7789
|
+
agentName: import("convex/values").VString<string | undefined, "optional">;
|
|
7790
|
+
model: import("convex/values").VString<string | undefined, "optional">;
|
|
7791
|
+
provider: import("convex/values").VString<string | undefined, "optional">;
|
|
7792
|
+
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
7793
|
+
}, "required", "userId" | "order" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "streamId">;
|
|
7794
|
+
export type StreamMessage = Infer<typeof vStreamMessage>;
|
|
7795
|
+
export declare const vStreamDelta: import("convex/values").VObject<{
|
|
7796
|
+
streamId: string;
|
|
7797
|
+
start: number;
|
|
7798
|
+
end: number;
|
|
7799
|
+
parts: ({
|
|
7800
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
7801
|
+
type: "tool-call";
|
|
7802
|
+
toolCallId: string;
|
|
7803
|
+
toolName: string;
|
|
7804
|
+
args: any;
|
|
7805
|
+
} | {
|
|
7806
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
7807
|
+
args?: any;
|
|
7808
|
+
experimental_content?: ({
|
|
7809
|
+
type: "text";
|
|
7810
|
+
text: string;
|
|
7811
|
+
} | {
|
|
7812
|
+
mimeType?: string | undefined;
|
|
7813
|
+
type: "image";
|
|
7814
|
+
data: string;
|
|
7815
|
+
})[] | undefined;
|
|
7816
|
+
isError?: boolean | undefined;
|
|
7817
|
+
type: "tool-result";
|
|
7818
|
+
toolCallId: string;
|
|
7819
|
+
toolName: string;
|
|
7820
|
+
result: any;
|
|
7821
|
+
} | {
|
|
7822
|
+
type: "text-delta";
|
|
7823
|
+
textDelta: string;
|
|
7824
|
+
} | {
|
|
7825
|
+
type: "reasoning";
|
|
7826
|
+
textDelta: string;
|
|
7827
|
+
} | {
|
|
7828
|
+
type: "source";
|
|
7829
|
+
source: {
|
|
7830
|
+
title?: string | undefined;
|
|
7831
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
7832
|
+
id: string;
|
|
7833
|
+
url: string;
|
|
7834
|
+
sourceType: "url";
|
|
7835
|
+
};
|
|
7836
|
+
} | {
|
|
7837
|
+
type: "tool-call-streaming-start";
|
|
7838
|
+
toolCallId: string;
|
|
7839
|
+
toolName: string;
|
|
7840
|
+
} | {
|
|
7841
|
+
type: "tool-call-delta";
|
|
7842
|
+
toolCallId: string;
|
|
7843
|
+
toolName: string;
|
|
7844
|
+
argsTextDelta: string;
|
|
7845
|
+
})[];
|
|
7846
|
+
}, {
|
|
7847
|
+
streamId: import("convex/values").VString<string, "required">;
|
|
7848
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
7849
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
7850
|
+
parts: import("convex/values").VArray<({
|
|
7851
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
7852
|
+
type: "tool-call";
|
|
7853
|
+
toolCallId: string;
|
|
7854
|
+
toolName: string;
|
|
7855
|
+
args: any;
|
|
7856
|
+
} | {
|
|
7857
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
7858
|
+
args?: any;
|
|
7859
|
+
experimental_content?: ({
|
|
7860
|
+
type: "text";
|
|
7861
|
+
text: string;
|
|
7862
|
+
} | {
|
|
7863
|
+
mimeType?: string | undefined;
|
|
7864
|
+
type: "image";
|
|
7865
|
+
data: string;
|
|
7866
|
+
})[] | undefined;
|
|
7867
|
+
isError?: boolean | undefined;
|
|
7868
|
+
type: "tool-result";
|
|
7869
|
+
toolCallId: string;
|
|
7870
|
+
toolName: string;
|
|
7871
|
+
result: any;
|
|
7872
|
+
} | {
|
|
7873
|
+
type: "text-delta";
|
|
7874
|
+
textDelta: string;
|
|
7875
|
+
} | {
|
|
7876
|
+
type: "reasoning";
|
|
7877
|
+
textDelta: string;
|
|
7878
|
+
} | {
|
|
7879
|
+
type: "source";
|
|
7880
|
+
source: {
|
|
7881
|
+
title?: string | undefined;
|
|
7882
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
7883
|
+
id: string;
|
|
7884
|
+
url: string;
|
|
7885
|
+
sourceType: "url";
|
|
7886
|
+
};
|
|
7887
|
+
} | {
|
|
7888
|
+
type: "tool-call-streaming-start";
|
|
7889
|
+
toolCallId: string;
|
|
7890
|
+
toolName: string;
|
|
7891
|
+
} | {
|
|
7892
|
+
type: "tool-call-delta";
|
|
7893
|
+
toolCallId: string;
|
|
7894
|
+
toolName: string;
|
|
7895
|
+
argsTextDelta: string;
|
|
7896
|
+
})[], import("convex/values").VUnion<{
|
|
7897
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
7898
|
+
type: "tool-call";
|
|
7899
|
+
toolCallId: string;
|
|
7900
|
+
toolName: string;
|
|
7901
|
+
args: any;
|
|
7902
|
+
} | {
|
|
7903
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
7904
|
+
args?: any;
|
|
7905
|
+
experimental_content?: ({
|
|
7906
|
+
type: "text";
|
|
7907
|
+
text: string;
|
|
7908
|
+
} | {
|
|
7909
|
+
mimeType?: string | undefined;
|
|
7910
|
+
type: "image";
|
|
7911
|
+
data: string;
|
|
7912
|
+
})[] | undefined;
|
|
7913
|
+
isError?: boolean | undefined;
|
|
7914
|
+
type: "tool-result";
|
|
7915
|
+
toolCallId: string;
|
|
7916
|
+
toolName: string;
|
|
7917
|
+
result: any;
|
|
7918
|
+
} | {
|
|
7919
|
+
type: "text-delta";
|
|
7920
|
+
textDelta: string;
|
|
7921
|
+
} | {
|
|
7922
|
+
type: "reasoning";
|
|
7923
|
+
textDelta: string;
|
|
7924
|
+
} | {
|
|
7925
|
+
type: "source";
|
|
7926
|
+
source: {
|
|
7927
|
+
title?: string | undefined;
|
|
7928
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
7929
|
+
id: string;
|
|
7930
|
+
url: string;
|
|
7931
|
+
sourceType: "url";
|
|
7932
|
+
};
|
|
7933
|
+
} | {
|
|
7934
|
+
type: "tool-call-streaming-start";
|
|
7935
|
+
toolCallId: string;
|
|
7936
|
+
toolName: string;
|
|
7937
|
+
} | {
|
|
7938
|
+
type: "tool-call-delta";
|
|
7939
|
+
toolCallId: string;
|
|
7940
|
+
toolName: string;
|
|
7941
|
+
argsTextDelta: string;
|
|
7942
|
+
}, [import("convex/values").VObject<{
|
|
7943
|
+
type: "text-delta";
|
|
7944
|
+
textDelta: string;
|
|
7945
|
+
}, {
|
|
7946
|
+
type: import("convex/values").VLiteral<"text-delta", "required">;
|
|
7947
|
+
textDelta: import("convex/values").VString<string, "required">;
|
|
7948
|
+
}, "required", "type" | "textDelta">, import("convex/values").VObject<{
|
|
7949
|
+
type: "reasoning";
|
|
7950
|
+
textDelta: string;
|
|
7951
|
+
}, {
|
|
7952
|
+
type: import("convex/values").VLiteral<"reasoning", "required">;
|
|
7953
|
+
textDelta: import("convex/values").VString<string, "required">;
|
|
7954
|
+
}, "required", "type" | "textDelta">, import("convex/values").VObject<{
|
|
7955
|
+
type: "source";
|
|
7956
|
+
source: {
|
|
7957
|
+
title?: string | undefined;
|
|
7958
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
7959
|
+
id: string;
|
|
7960
|
+
url: string;
|
|
7961
|
+
sourceType: "url";
|
|
7962
|
+
};
|
|
7963
|
+
}, {
|
|
7964
|
+
type: import("convex/values").VLiteral<"source", "required">;
|
|
7965
|
+
source: import("convex/values").VObject<{
|
|
7966
|
+
title?: string | undefined;
|
|
7967
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
7968
|
+
id: string;
|
|
7969
|
+
url: string;
|
|
7970
|
+
sourceType: "url";
|
|
7971
|
+
}, {
|
|
7972
|
+
sourceType: import("convex/values").VLiteral<"url", "required">;
|
|
7973
|
+
id: import("convex/values").VString<string, "required">;
|
|
7974
|
+
url: import("convex/values").VString<string, "required">;
|
|
7975
|
+
title: import("convex/values").VString<string | undefined, "optional">;
|
|
7976
|
+
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
7977
|
+
}, "required", "id" | "title" | "providerOptions" | `providerOptions.${string}` | "url" | "sourceType">;
|
|
7978
|
+
}, "required", "type" | "source" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.url" | "source.sourceType">, import("convex/values").VObject<{
|
|
7979
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
7980
|
+
type: "tool-call";
|
|
7981
|
+
toolCallId: string;
|
|
7982
|
+
toolName: string;
|
|
7983
|
+
args: any;
|
|
7984
|
+
}, {
|
|
7985
|
+
type: import("convex/values").VLiteral<"tool-call", "required">;
|
|
7986
|
+
toolCallId: import("convex/values").VString<string, "required">;
|
|
7987
|
+
toolName: import("convex/values").VString<string, "required">;
|
|
7988
|
+
args: import("convex/values").VAny<any, "required", string>;
|
|
7989
|
+
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
7990
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>, import("convex/values").VObject<{
|
|
7991
|
+
type: "tool-call-streaming-start";
|
|
7992
|
+
toolCallId: string;
|
|
7993
|
+
toolName: string;
|
|
7994
|
+
}, {
|
|
7995
|
+
type: import("convex/values").VLiteral<"tool-call-streaming-start", "required">;
|
|
7996
|
+
toolCallId: import("convex/values").VString<string, "required">;
|
|
7997
|
+
toolName: import("convex/values").VString<string, "required">;
|
|
7998
|
+
}, "required", "type" | "toolCallId" | "toolName">, import("convex/values").VObject<{
|
|
7999
|
+
type: "tool-call-delta";
|
|
8000
|
+
toolCallId: string;
|
|
8001
|
+
toolName: string;
|
|
8002
|
+
argsTextDelta: string;
|
|
8003
|
+
}, {
|
|
8004
|
+
type: import("convex/values").VLiteral<"tool-call-delta", "required">;
|
|
8005
|
+
toolCallId: import("convex/values").VString<string, "required">;
|
|
8006
|
+
toolName: import("convex/values").VString<string, "required">;
|
|
8007
|
+
argsTextDelta: import("convex/values").VString<string, "required">;
|
|
8008
|
+
}, "required", "type" | "toolCallId" | "toolName" | "argsTextDelta">, import("convex/values").VObject<{
|
|
8009
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
8010
|
+
args?: any;
|
|
8011
|
+
experimental_content?: ({
|
|
8012
|
+
type: "text";
|
|
8013
|
+
text: string;
|
|
8014
|
+
} | {
|
|
8015
|
+
mimeType?: string | undefined;
|
|
8016
|
+
type: "image";
|
|
8017
|
+
data: string;
|
|
8018
|
+
})[] | undefined;
|
|
8019
|
+
isError?: boolean | undefined;
|
|
8020
|
+
type: "tool-result";
|
|
8021
|
+
toolCallId: string;
|
|
8022
|
+
toolName: string;
|
|
8023
|
+
result: any;
|
|
8024
|
+
}, {
|
|
8025
|
+
type: import("convex/values").VLiteral<"tool-result", "required">;
|
|
8026
|
+
toolCallId: import("convex/values").VString<string, "required">;
|
|
8027
|
+
toolName: import("convex/values").VString<string, "required">;
|
|
8028
|
+
result: import("convex/values").VAny<any, "required", string>;
|
|
8029
|
+
args: import("convex/values").VAny<any, "optional", string>;
|
|
8030
|
+
experimental_content: import("convex/values").VArray<({
|
|
8031
|
+
type: "text";
|
|
8032
|
+
text: string;
|
|
8033
|
+
} | {
|
|
8034
|
+
mimeType?: string | undefined;
|
|
8035
|
+
type: "image";
|
|
8036
|
+
data: string;
|
|
8037
|
+
})[] | undefined, import("convex/values").VUnion<{
|
|
8038
|
+
type: "text";
|
|
8039
|
+
text: string;
|
|
8040
|
+
} | {
|
|
8041
|
+
mimeType?: string | undefined;
|
|
8042
|
+
type: "image";
|
|
8043
|
+
data: string;
|
|
8044
|
+
}, [import("convex/values").VObject<{
|
|
8045
|
+
type: "text";
|
|
8046
|
+
text: string;
|
|
8047
|
+
}, {
|
|
8048
|
+
type: import("convex/values").VLiteral<"text", "required">;
|
|
8049
|
+
text: import("convex/values").VString<string, "required">;
|
|
8050
|
+
}, "required", "type" | "text">, import("convex/values").VObject<{
|
|
8051
|
+
mimeType?: string | undefined;
|
|
8052
|
+
type: "image";
|
|
8053
|
+
data: string;
|
|
8054
|
+
}, {
|
|
8055
|
+
type: import("convex/values").VLiteral<"image", "required">;
|
|
8056
|
+
data: import("convex/values").VString<string, "required">;
|
|
8057
|
+
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
8058
|
+
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
8059
|
+
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
8060
|
+
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
8061
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>], "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}` | "textDelta" | "source" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.url" | "source.sourceType" | "argsTextDelta">, "required">;
|
|
8062
|
+
}, "required", "streamId" | "start" | "end" | "parts">;
|
|
8063
|
+
export type StreamDelta = Infer<typeof vStreamDelta>;
|
|
7562
8064
|
export {};
|
|
7563
8065
|
//# sourceMappingURL=validators.d.ts.map
|