ai 7.0.173 → 7.0.174
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/CHANGELOG.md +19 -0
- package/dist/index.d.ts +68 -21
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +292 -80
- package/dist/index.js.map +1 -1
- package/dist/internal/index.d.ts +11 -9
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/index.js +16 -3
- package/dist/internal/index.js.map +1 -1
- package/docs/02-foundations/02-providers-and-models.mdx +1 -0
- package/docs/03-agents/06-memory.mdx +28 -1
- package/docs/03-ai-sdk-core/33-extractions.mdx +58 -1
- package/docs/03-ai-sdk-core/42-batch.mdx +54 -0
- package/docs/03-ai-sdk-core/45-provider-management.mdx +8 -0
- package/docs/07-reference/01-ai-sdk-core/14-extract.mdx +13 -13
- package/docs/07-reference/01-ai-sdk-core/20-start-batch.mdx +7 -0
- package/docs/07-reference/01-ai-sdk-core/22-get-batch-results.mdx +7 -0
- package/docs/07-reference/01-ai-sdk-core/40-provider-registry.mdx +14 -0
- package/docs/07-reference/01-ai-sdk-core/42-custom-provider.mdx +13 -0
- package/docs/07-reference/05-ai-sdk-errors/ai-no-such-model-error.mdx +3 -0
- package/docs/07-reference/05-ai-sdk-errors/ai-no-such-provider-error.mdx +3 -0
- package/package.json +12 -12
- package/src/batch/batch-types.ts +70 -18
- package/src/batch/batch.ts +93 -7
- package/src/extract/extract.ts +23 -4
- package/src/extract/extraction-provider.ts +5 -0
- package/src/extract/extraction-result.ts +1 -1
- package/src/generate-text/stream-text.ts +1 -1
- package/src/global.ts +1 -0
- package/src/model/resolve-model.ts +25 -0
- package/src/registry/custom-provider.ts +37 -0
- package/src/registry/index.ts +1 -0
- package/src/registry/no-such-provider-error.ts +1 -0
- package/src/registry/provider-registry.ts +59 -5
- package/src/telemetry/redact-telemetry-credentials.ts +22 -4
- package/src/types/citation.ts +41 -25
- package/src/ui/validate-ui-messages.ts +46 -91
- package/src/util/normalize-json-value.ts +182 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# ai
|
|
2
2
|
|
|
3
|
+
## 7.0.174
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 3bea041: feat(ai): support `output` in `startBatch` and parse it in `getBatchResults`
|
|
8
|
+
- 30d35eb: Fix `streamText` passing `tools: undefined` to `experimental_transform` factories when no `tools` are provided. Transforms now receive an empty tool set, matching the `StreamTextTransform` type.
|
|
9
|
+
- fab7478: Fix locked stream errors when telemetry subscribers or integrations replace a model stream whose request or response metadata requires credential redaction.
|
|
10
|
+
- 10ff0b1: add extraction model support to provider registries, custom providers and string model ids
|
|
11
|
+
- 718824c: Prevent excessive memory and CPU usage when validating UI messages with deeply nested provider or tool metadata. `validateUIMessages`, `safeValidateUIMessages`, and the agent UI stream helpers validated JSON values in `providerMetadata`, `callProviderMetadata`, `resultProviderMetadata`, `toolMetadata`, and citation metadata with a recursive union schema that needed several times the memory of the value, so a valid request could exhaust the memory of a worker before the model was called. These values are now validated in a single pass and are no longer copied, except to remove `__proto__` keys.
|
|
12
|
+
- d99098a: Centralize empty extraction value normalization in `experimental_extract`, preserving missing-value behavior while removing duplicated conversion from extraction providers.
|
|
13
|
+
- Updated dependencies [74042c5]
|
|
14
|
+
- Updated dependencies [b8c01eb]
|
|
15
|
+
- Updated dependencies [10ff0b1]
|
|
16
|
+
- Updated dependencies [e878ab3]
|
|
17
|
+
- Updated dependencies [d99098a]
|
|
18
|
+
- @ai-sdk/gateway@4.0.147
|
|
19
|
+
- @ai-sdk/provider@4.0.39
|
|
20
|
+
- @ai-sdk/provider-utils@5.0.82
|
|
21
|
+
|
|
3
22
|
## 7.0.173
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -3,8 +3,18 @@ import { Arrayable, AssistantContent, AssistantModelMessage, AssistantModelMessa
|
|
|
3
3
|
import { AISDKError, AISDKError as AISDKError$1, APICallError, EmbeddingModelV2, EmbeddingModelV3, EmbeddingModelV4, EmbeddingModelV4CallOptions, EmbeddingModelV4Embedding, EmbeddingModelV4Middleware, EmptyResponseBodyError, Experimental_BatchV4, Experimental_BatchV4Error, Experimental_BatchV4ModelIds, Experimental_BatchV4StartResult, Experimental_BatchV4Status, Experimental_DecisionModelV4, Experimental_DecisionModelV4CallOptions, Experimental_DecisionModelV4Question, Experimental_DecisionModelV4Question as Experimental_DecisionQuestion, Experimental_DecisionModelV4Result, Experimental_DecisionRefusalError, Experimental_DecisionUnsupportedQuestionTypeError, Experimental_DecisionUnsupportedQuestionTypeError as Experimental_DecisionUnsupportedQuestionTypeError$1, Experimental_EvaluationModelV4, Experimental_ExtractionModelV4, Experimental_ExtractionModelV4CallOptions, Experimental_ExtractionModelV4Field, Experimental_ExtractionModelV4Field as Experimental_ExtractionField, Experimental_ExtractionModelV4Result, Experimental_ExtractionModelV4Source, Experimental_ExtractionModelV4Source as Experimental_ExtractionSource, Experimental_ExtractionRefusalError, Experimental_ExtractionUnsupportedFieldTypeError, Experimental_RealtimeFactoryV4, Experimental_RealtimeFactoryV4GetTokenOptions, Experimental_RealtimeFactoryV4GetTokenResult, Experimental_RealtimeModelV4, Experimental_RealtimeModelV4ClientEvent, Experimental_RealtimeModelV4ServerConnection, Experimental_RealtimeModelV4ServerEvent, Experimental_RealtimeModelV4SessionConfig, Experimental_RealtimeModelV4SessionIntent, Experimental_RealtimeModelV4ToolDefinition, Experimental_RealtimeModelV4Usage, Experimental_SpeechModelV4StreamUsage, Experimental_SpeechTranslationModelV4, Experimental_SpeechTranslationModelV4Usage, Experimental_VideoModelV3, Experimental_VideoModelV4, Experimental_VideoModelV4FrameType, Experimental_VideoModelV4OperationStatusResult, Experimental_VideoModelV4OperationWebhook, FilesV4, FilesV4UploadFileCallOptions, ImageModelV2, ImageModelV2ProviderMetadata, ImageModelV3, ImageModelV4, ImageModelV4Middleware, ImageModelV4ProviderMetadata, ImageModelV4Usage, InvalidPromptError, InvalidResponseDataError, JSONObject, JSONParseError, JSONParseError as JSONParseError$1, JSONSchema7, JSONSchema7 as JSONSchema7$1, JSONValue as JSONValue$1, LanguageModelV2, LanguageModelV3, LanguageModelV4, LanguageModelV4CallOptions, LanguageModelV4Citation, LanguageModelV4Content, LanguageModelV4Middleware, LanguageModelV4Prompt, LanguageModelV4Source, LanguageModelV4ToolCall, LanguageModelV4ToolChoice, LoadAPIKeyError, LoadSettingError, NoContentGeneratedError, NoSuchModelError, NoSuchModelError as NoSuchModelError$1, NoSuchProviderReferenceError, ProviderV2, ProviderV3, ProviderV4, RerankingModelV3, RerankingModelV4, SharedV4AudioFormat, SharedV4Headers, SharedV4ProviderMetadata, SharedV4ProviderReference, SharedV4Warning, SkillsV4, SkillsV4File, SkillsV4UploadSkillCallOptions, SkillsV4UploadSkillResult, SpeechModelV2, SpeechModelV3, SpeechModelV4, TooManyEmbeddingValuesForCallError, TranscriptionModelV2, TranscriptionModelV3, TranscriptionModelV4, TranscriptionModelV4TimestampGranularity, TypeValidationError, TypeValidationError as TypeValidationError$1, UnsupportedFunctionalityError } from "@ai-sdk/provider";
|
|
4
4
|
import { array, boolean, custom, discriminatedUnion, enum as enum$1, extend, int, literal, looseObject, maximum, minLength, never, nonnegative, number, object, optional, pipe, positive, record, refine, startsWith, string, transform as transform$1, union, unknown } from "zod/v4/mini";
|
|
5
5
|
import { ZodType, array as array$1, boolean as boolean$1, custom as custom$1, discriminatedUnion as discriminatedUnion$1, instanceof as instanceof$1, lazy, literal as literal$1, null as null$1, number as number$1, object as object$1, record as record$1, string as string$1, union as union$1, unknown as unknown$1 } from "zod/v4";
|
|
6
|
+
import "zod/v4/core";
|
|
6
7
|
import { ServerResponse } from "node:http";
|
|
7
8
|
import { ServerResponse as ServerResponse$1 } from "http";
|
|
9
|
+
//#region src/types/provider-metadata.d.ts
|
|
10
|
+
/**
|
|
11
|
+
* Additional provider-specific metadata that is returned from the provider.
|
|
12
|
+
*
|
|
13
|
+
* This is needed to enable provider-specific functionality that can be
|
|
14
|
+
* fully encapsulated in the provider.
|
|
15
|
+
*/
|
|
16
|
+
type ProviderMetadata = SharedV4ProviderMetadata;
|
|
17
|
+
//#endregion
|
|
8
18
|
//#region src/types/citation.d.ts
|
|
9
19
|
/** A reference supporting a generated text part. */
|
|
10
20
|
type Citation = LanguageModelV4Citation;
|
|
@@ -280,15 +290,6 @@ type Provider = {
|
|
|
280
290
|
rerankingModel?(modelId: string): RerankingModel;
|
|
281
291
|
};
|
|
282
292
|
//#endregion
|
|
283
|
-
//#region src/types/provider-metadata.d.ts
|
|
284
|
-
/**
|
|
285
|
-
* Additional provider-specific metadata that is returned from the provider.
|
|
286
|
-
*
|
|
287
|
-
* This is needed to enable provider-specific functionality that can be
|
|
288
|
-
* fully encapsulated in the provider.
|
|
289
|
-
*/
|
|
290
|
-
type ProviderMetadata = SharedV4ProviderMetadata;
|
|
291
|
-
//#endregion
|
|
292
293
|
//#region src/types/provider-reference.d.ts
|
|
293
294
|
type ProviderReference = SharedV4ProviderReference;
|
|
294
295
|
//#endregion
|
|
@@ -5285,6 +5286,7 @@ declare global {
|
|
|
5285
5286
|
*
|
|
5286
5287
|
* If not set, the default provider is the Vercel AI gateway provider.
|
|
5287
5288
|
* An explicitly configured provider must support decision models to use experimental_decide.
|
|
5289
|
+
* An explicitly configured provider must support extraction models to use experimental_extract.
|
|
5288
5290
|
*
|
|
5289
5291
|
* @see https://ai-sdk.dev/docs/ai-sdk-core/provider-management#global-provider-configuration
|
|
5290
5292
|
*/
|
|
@@ -7911,6 +7913,15 @@ type StartBatchOptions<TOOLS extends ToolSet$1 = ToolSet$1, PROVIDER extends Bat
|
|
|
7911
7913
|
provider?: PROVIDER;
|
|
7912
7914
|
requests: ReadonlyArray<BatchRequest<InferBatchModelIds<PROVIDER>, TOOLS>>;
|
|
7913
7915
|
providerOptions?: ProviderOptions;
|
|
7916
|
+
/**
|
|
7917
|
+
* Specification for structured data in the text responses. Its response
|
|
7918
|
+
* format is sent with every text request in the batch; image requests
|
|
7919
|
+
* ignore it.
|
|
7920
|
+
*
|
|
7921
|
+
* Pass the same specification to `getBatchResults` as `output` to parse and
|
|
7922
|
+
* validate each result.
|
|
7923
|
+
*/
|
|
7924
|
+
output?: Output;
|
|
7914
7925
|
/**
|
|
7915
7926
|
* URL that the provider should notify when the batch reaches a terminal
|
|
7916
7927
|
* state. Providers that do not support completion webhooks return an
|
|
@@ -7972,7 +7983,7 @@ type GetBatchStatusOptions = {
|
|
|
7972
7983
|
/**
|
|
7973
7984
|
* Options for retrieving batch results.
|
|
7974
7985
|
*/
|
|
7975
|
-
type GetBatchResultsOptions<TOOLS extends ToolSet$1 = ToolSet$1> = GetBatchStatusOptions & {
|
|
7986
|
+
type GetBatchResultsOptions<TOOLS extends ToolSet$1 = ToolSet$1, OUTPUT extends Output | undefined = undefined> = GetBatchStatusOptions & {
|
|
7976
7987
|
/**
|
|
7977
7988
|
* Definitions for client tools that were provided to `startBatch` requests.
|
|
7978
7989
|
*
|
|
@@ -7980,6 +7991,13 @@ type GetBatchResultsOptions<TOOLS extends ToolSet$1 = ToolSet$1> = GetBatchStatu
|
|
|
7980
7991
|
* calls. Their `execute` functions are never invoked.
|
|
7981
7992
|
*/
|
|
7982
7993
|
tools?: TOOLS;
|
|
7994
|
+
/**
|
|
7995
|
+
* The output specification that was provided to `startBatch` requests.
|
|
7996
|
+
*
|
|
7997
|
+
* When provided, the text of each successful item is parsed and validated
|
|
7998
|
+
* with it. The item then has either `output` or `outputError`.
|
|
7999
|
+
*/
|
|
8000
|
+
output?: OUTPUT;
|
|
7983
8001
|
};
|
|
7984
8002
|
/**
|
|
7985
8003
|
* A normalized result for a successful text batch item.
|
|
@@ -7998,12 +8016,31 @@ type TextBatchGenerationResult<TOOLS extends ToolSet$1 = ToolSet$1> = {
|
|
|
7998
8016
|
};
|
|
7999
8017
|
readonly providerMetadata?: ProviderMetadata;
|
|
8000
8018
|
};
|
|
8019
|
+
/**
|
|
8020
|
+
* The parsed output of a successful text batch item, or the reason it could
|
|
8021
|
+
* not be produced. Only present when `output` is passed to `getBatchResults`.
|
|
8022
|
+
*
|
|
8023
|
+
* A parsing failure does not fail the item: `text`, `usage` and the other
|
|
8024
|
+
* generation results remain available.
|
|
8025
|
+
*/
|
|
8026
|
+
type TextBatchOutputResult<OUTPUT extends Output | undefined> = OUTPUT extends Output ? {
|
|
8027
|
+
readonly output: InferCompleteOutput<OUTPUT>;
|
|
8028
|
+
readonly outputError?: undefined;
|
|
8029
|
+
} | {
|
|
8030
|
+
readonly output?: undefined;
|
|
8031
|
+
/**
|
|
8032
|
+
* Why no output is available, e.g. the text was not valid JSON,
|
|
8033
|
+
* did not match the schema, or the item did not finish with a
|
|
8034
|
+
* complete response.
|
|
8035
|
+
*/
|
|
8036
|
+
readonly outputError: BatchError;
|
|
8037
|
+
} : unknown;
|
|
8001
8038
|
/**
|
|
8002
8039
|
* A complete terminal result for one request in a text batch.
|
|
8003
8040
|
*/
|
|
8004
|
-
type TextBatchItemResult<TOOLS extends ToolSet$1 = ToolSet$1> = {
|
|
8041
|
+
type TextBatchItemResult<TOOLS extends ToolSet$1 = ToolSet$1, OUTPUT extends Output | undefined = undefined> = {
|
|
8005
8042
|
readonly type: 'text';
|
|
8006
|
-
} & ((TextBatchGenerationResult<TOOLS> & {
|
|
8043
|
+
} & ((TextBatchGenerationResult<TOOLS> & TextBatchOutputResult<OUTPUT> & {
|
|
8007
8044
|
readonly id: string;
|
|
8008
8045
|
readonly status: 'succeeded';
|
|
8009
8046
|
}) | {
|
|
@@ -8049,7 +8086,7 @@ type ImageBatchItemResult = {
|
|
|
8049
8086
|
/**
|
|
8050
8087
|
* A complete terminal result for one request in a batch.
|
|
8051
8088
|
*/
|
|
8052
|
-
type BatchItemResult<TOOLS extends ToolSet$1 = ToolSet$1> = TextBatchItemResult<TOOLS> | ImageBatchItemResult;
|
|
8089
|
+
type BatchItemResult<TOOLS extends ToolSet$1 = ToolSet$1, OUTPUT extends Output | undefined = undefined> = TextBatchItemResult<TOOLS, OUTPUT> | ImageBatchItemResult;
|
|
8053
8090
|
//#endregion
|
|
8054
8091
|
//#region src/batch/batch.d.ts
|
|
8055
8092
|
/**
|
|
@@ -8063,7 +8100,7 @@ declare function listBatches({ provider, providerOptions, limit, cursor, maxRetr
|
|
|
8063
8100
|
/**
|
|
8064
8101
|
* Starts a batch.
|
|
8065
8102
|
*/
|
|
8066
|
-
declare function startBatch<TOOLS extends ToolSet$1, PROVIDER extends BatchProvider>({ provider, requests, providerOptions, webhookUrl, abortSignal, headers, timeout }: StartBatchOptions<TOOLS, PROVIDER>): Promise<StartBatchResult>;
|
|
8103
|
+
declare function startBatch<TOOLS extends ToolSet$1, PROVIDER extends BatchProvider>({ provider, requests, providerOptions, output, webhookUrl, abortSignal, headers, timeout }: StartBatchOptions<TOOLS, PROVIDER>): Promise<StartBatchResult>;
|
|
8067
8104
|
/**
|
|
8068
8105
|
* Retrieves the latest normalized status for a batch.
|
|
8069
8106
|
*/
|
|
@@ -8071,7 +8108,7 @@ declare function getBatchStatus({ provider, batch, providerOptions, maxRetries,
|
|
|
8071
8108
|
/**
|
|
8072
8109
|
* Streams complete terminal results for the requests in a batch.
|
|
8073
8110
|
*/
|
|
8074
|
-
declare function getBatchResults<TOOLS extends ToolSet$1>({ provider, batch, tools, providerOptions, maxRetries, abortSignal, headers, timeout }: GetBatchResultsOptions<TOOLS>): AsyncIterableStream<BatchItemResult<TOOLS>>;
|
|
8111
|
+
declare function getBatchResults<TOOLS extends ToolSet$1, OUTPUT extends Output | undefined = undefined>({ provider, batch, tools, output, providerOptions, maxRetries, abortSignal, headers, timeout }: GetBatchResultsOptions<TOOLS, OUTPUT>): AsyncIterableStream<BatchItemResult<TOOLS, OUTPUT>>;
|
|
8075
8112
|
//#endregion
|
|
8076
8113
|
//#region src/embed/embed-result.d.ts
|
|
8077
8114
|
/**
|
|
@@ -8918,7 +8955,7 @@ export type Experimental_EvaluationAnswer<QUESTION extends Experimental_Decision
|
|
|
8918
8955
|
export type Experimental_EvaluationResult<QUESTIONS extends Record<string, Experimental_DecisionModelV4Question>> = DecisionResult<QUESTIONS>;
|
|
8919
8956
|
//#endregion
|
|
8920
8957
|
//#region src/extract/extraction-result.d.ts
|
|
8921
|
-
type ExtractionModel = Experimental_ExtractionModelV4;
|
|
8958
|
+
type ExtractionModel = string | Experimental_ExtractionModelV4;
|
|
8922
8959
|
type ExtractionValue<FIELD extends Experimental_ExtractionModelV4Field> = FIELD extends {
|
|
8923
8960
|
type: 'number' | 'duration';
|
|
8924
8961
|
} ? number : FIELD extends {
|
|
@@ -8962,7 +8999,7 @@ type ExtractionResult<FIELDS extends Record<string, Experimental_ExtractionModel
|
|
|
8962
8999
|
//#region src/extract/extract.d.ts
|
|
8963
9000
|
/** Extract typed field values from one shared state. Experimental. */
|
|
8964
9001
|
declare function extract<const FIELDS extends Record<string, Experimental_ExtractionModelV4Field>>({ model: modelArg, state, fields, referenceDate, maxOutputTokens, reasoning, maxRetries, abortSignal, experimental_download: download, headers, providerOptions }: {
|
|
8965
|
-
/** An extraction model instance. */
|
|
9002
|
+
/** An extraction model instance or an ID resolved by the configured default provider. */
|
|
8966
9003
|
model: ExtractionModel;
|
|
8967
9004
|
state: DecisionState;
|
|
8968
9005
|
fields: FIELDS;
|
|
@@ -10759,6 +10796,13 @@ type ProviderDecisionModelIdentifier<PROVIDER> = PROVIDER extends {
|
|
|
10759
10796
|
} ? ExtractLiteralUnion<ARGS[0]> : PROVIDER extends {
|
|
10760
10797
|
evaluationModel: (...args: infer ARGS) => unknown;
|
|
10761
10798
|
} ? ExtractLiteralUnion<ARGS[0]> : never;
|
|
10799
|
+
type ProviderExtractionModelIdentifier<PROVIDER> = PROVIDER extends {
|
|
10800
|
+
extractionModel: (...args: infer ARGS) => unknown;
|
|
10801
|
+
} ? ExtractLiteralUnion<ARGS[0]> : never;
|
|
10802
|
+
type ExtractionProviderRegistry<PROVIDERS extends Record<string, ProviderV4 | ProviderV3> = Record<string, ProviderV4 | ProviderV3>, SEPARATOR extends string = ':'> = DecisionProviderRegistry<PROVIDERS, SEPARATOR> & {
|
|
10803
|
+
extractionModel<KEY extends keyof PROVIDERS>(id: KEY extends string ? `${KEY & string}${SEPARATOR}${ProviderExtractionModelIdentifier<PROVIDERS[KEY]>}` : never): Experimental_ExtractionModelV4;
|
|
10804
|
+
extractionModel<KEY extends keyof PROVIDERS>(id: KEY extends string ? `${KEY & string}${SEPARATOR}${string}` : never): Experimental_ExtractionModelV4;
|
|
10805
|
+
};
|
|
10762
10806
|
/** Registry with experimental decision access, separate from the stable interface. */
|
|
10763
10807
|
type DecisionProviderRegistry<PROVIDERS extends Record<string, ProviderV4 | ProviderV3> = Record<string, ProviderV4 | ProviderV3>, SEPARATOR extends string = ':'> = ProviderRegistryProvider<PROVIDERS, SEPARATOR> & {
|
|
10764
10808
|
decisionModel<KEY extends keyof PROVIDERS>(id: KEY extends string ? `${KEY & string}${SEPARATOR}${ProviderDecisionModelIdentifier<PROVIDERS[KEY]>}` : never): Experimental_DecisionModelV4;
|
|
@@ -10807,7 +10851,7 @@ export declare function createProviderRegistry<PROVIDERS extends Record<string,
|
|
|
10807
10851
|
separator?: SEPARATOR;
|
|
10808
10852
|
languageModelMiddleware?: LanguageModelMiddleware | LanguageModelMiddleware[];
|
|
10809
10853
|
imageModelMiddleware?: ImageModelMiddleware | ImageModelMiddleware[];
|
|
10810
|
-
}):
|
|
10854
|
+
}): ExtractionProviderRegistry<PROVIDERS, SEPARATOR>;
|
|
10811
10855
|
/**
|
|
10812
10856
|
* @deprecated Use `createProviderRegistry` instead.
|
|
10813
10857
|
*/
|
|
@@ -10826,6 +10870,7 @@ export declare const experimental_createProviderRegistry: typeof createProviderR
|
|
|
10826
10870
|
* @param {Record<string, RerankingModel>} [options.rerankingModels] - A record of reranking models, where keys are model IDs and values are reranking model instances.
|
|
10827
10871
|
* @param {Record<string, VideoModel>} [options.videoModels] - A record of video models, where keys are model IDs and values are video model instances.
|
|
10828
10872
|
* @param {Record<string, DecisionModel>} [options.decisionModels] - Experimental decision models or default-provider model IDs, keyed by alias.
|
|
10873
|
+
* @param {Record<string, ExtractionModel>} [options.extractionModels] - Experimental extraction models or default-provider model IDs, keyed by alias.
|
|
10829
10874
|
* @param {FilesV4} [options.files] - A files interface for uploading files.
|
|
10830
10875
|
* @param {SkillsV4} [options.skills] - A skills interface for uploading skills.
|
|
10831
10876
|
* @param {ProviderV2 | ProviderV3 | ProviderV4} [options.fallbackProvider] - An optional fallback provider to use when a requested model is not found in the custom provider.
|
|
@@ -10833,7 +10878,7 @@ export declare const experimental_createProviderRegistry: typeof createProviderR
|
|
|
10833
10878
|
*
|
|
10834
10879
|
* @throws {NoSuchModelError} Throws when a requested model is not found and no fallback provider is available.
|
|
10835
10880
|
*/
|
|
10836
|
-
export declare function customProvider<LANGUAGE_MODELS extends Record<string, LanguageModel>, EMBEDDING_MODELS extends Record<string, EmbeddingModel>, IMAGE_MODELS extends Record<string, ImageModel>, TRANSCRIPTION_MODELS extends Record<string, TranscriptionModel>, SPEECH_MODELS extends Record<string, SpeechModel>, RERANKING_MODELS extends Record<string, RerankingModel>, VIDEO_MODELS extends Record<string, VideoModel>, FILES extends FilesV4 | undefined = undefined, SKILLS extends SkillsV4 | undefined = undefined, FALLBACK extends ProviderV2 | ProviderV3 | ProviderV4 | undefined = undefined, DECISION_MODELS extends Record<string, DecisionModel> = Record<string, DecisionModel>>({ languageModels, embeddingModels, imageModels, transcriptionModels, speechModels, rerankingModels, videoModels, decisionModels: decisionModelsArg, evaluationModels, files, skills, fallbackProvider: fallbackProviderArg }: {
|
|
10881
|
+
export declare function customProvider<LANGUAGE_MODELS extends Record<string, LanguageModel>, EMBEDDING_MODELS extends Record<string, EmbeddingModel>, IMAGE_MODELS extends Record<string, ImageModel>, TRANSCRIPTION_MODELS extends Record<string, TranscriptionModel>, SPEECH_MODELS extends Record<string, SpeechModel>, RERANKING_MODELS extends Record<string, RerankingModel>, VIDEO_MODELS extends Record<string, VideoModel>, FILES extends FilesV4 | undefined = undefined, SKILLS extends SkillsV4 | undefined = undefined, FALLBACK extends ProviderV2 | ProviderV3 | ProviderV4 | undefined = undefined, DECISION_MODELS extends Record<string, DecisionModel> = Record<string, DecisionModel>, EXTRACTION_MODELS extends Record<string, ExtractionModel> = Record<string, ExtractionModel>>({ languageModels, embeddingModels, imageModels, transcriptionModels, speechModels, rerankingModels, videoModels, decisionModels: decisionModelsArg, evaluationModels, extractionModels, files, skills, fallbackProvider: fallbackProviderArg }: {
|
|
10837
10882
|
languageModels?: LANGUAGE_MODELS;
|
|
10838
10883
|
embeddingModels?: EMBEDDING_MODELS;
|
|
10839
10884
|
imageModels?: IMAGE_MODELS;
|
|
@@ -10844,6 +10889,7 @@ export declare function customProvider<LANGUAGE_MODELS extends Record<string, La
|
|
|
10844
10889
|
decisionModels?: DECISION_MODELS;
|
|
10845
10890
|
/** @deprecated Use `decisionModels` instead. When both are set, `decisionModels` takes precedence. */
|
|
10846
10891
|
evaluationModels?: DECISION_MODELS;
|
|
10892
|
+
extractionModels?: EXTRACTION_MODELS;
|
|
10847
10893
|
files?: FILES;
|
|
10848
10894
|
skills?: SKILLS;
|
|
10849
10895
|
fallbackProvider?: FALLBACK;
|
|
@@ -10860,6 +10906,7 @@ export declare function customProvider<LANGUAGE_MODELS extends Record<string, La
|
|
|
10860
10906
|
evaluationModel(modelId: ExtractModelId<DECISION_MODELS>): Experimental_DecisionModelV4 & {
|
|
10861
10907
|
doEvaluate: Experimental_DecisionModelV4['doDecide'];
|
|
10862
10908
|
};
|
|
10909
|
+
extractionModel(modelId: ExtractModelId<EXTRACTION_MODELS>): Experimental_ExtractionModelV4;
|
|
10863
10910
|
} & (FILES extends FilesV4 ? {
|
|
10864
10911
|
files(): FilesV4;
|
|
10865
10912
|
} : [FALLBACK] extends [{
|
|
@@ -10887,7 +10934,7 @@ export declare class NoSuchProviderError extends NoSuchModelError$1 {
|
|
|
10887
10934
|
readonly availableProviders: string[];
|
|
10888
10935
|
constructor({ modelId, modelType, providerId, availableProviders, message }: {
|
|
10889
10936
|
modelId: string;
|
|
10890
|
-
modelType: 'languageModel' | 'embeddingModel' | 'imageModel' | 'transcriptionModel' | 'speechModel' | 'rerankingModel' | 'videoModel' | 'decisionModel' |
|
|
10937
|
+
modelType: 'languageModel' | 'embeddingModel' | 'imageModel' | 'transcriptionModel' | 'speechModel' | 'rerankingModel' | 'videoModel' | 'decisionModel' | 'extractionModel' |
|
|
10891
10938
|
/** @deprecated Use `decisionModel` instead. */
|
|
10892
10939
|
'evaluationModel';
|
|
10893
10940
|
providerId: string;
|
|
@@ -11723,5 +11770,5 @@ export declare function uploadSkill({ api, files, displayTitle, providerOptions
|
|
|
11723
11770
|
files: UploadSkillFile[];
|
|
11724
11771
|
}): Promise<UploadSkillResult>;
|
|
11725
11772
|
//#endregion
|
|
11726
|
-
export { AISDKError, APICallError, type ActiveTools, type Agent, type AgentCallParameters, type AgentStreamParameters, type AssistantContent, type AssistantModelMessage, type AsyncIterableStream, type CallWarning, type CallWarningRegistry, type ChatAddToolApproveResponseFunction, type ChatAddToolOutputFunction, type ChatInit, type ChatOnDataCallback, type ChatOnErrorCallback, type ChatOnFinishCallback, type ChatOnToolCallCallback, type ChatRequestOptions, type ChatState, type ChatStatus, type ChatTransport, type ChunkDetector, type Citation, type CompletionRequestOptions, type ContentPart, type CreateUIMessage, type CustomContentUIPart, type DataContent, type DataUIPart, type DeepPartial, type DirectChatTransportOptions, DownloadError, type DurableTelemetryContext, type DurableTelemetryEventContext, type DynamicToolCall, type DynamicToolError, type DynamicToolResult, type DynamicToolUIPart, type Embedding, type EmbeddingModel, type EmbeddingModelMiddleware, type EmbeddingModelUsage, EmptyResponseBodyError, type ErrorHandler, AbstractRealtimeSession as Experimental_AbstractRealtimeSession, ToolLoopAgent as Experimental_Agent, type ToolLoopAgentSettings as Experimental_AgentSettings, type ToolLoopAgentSettings, type Batch as Experimental_Batch, type BatchError as Experimental_BatchError, type BatchItemResult as Experimental_BatchItemResult, type BatchProvider as Experimental_BatchProvider, type BatchReference as Experimental_BatchReference, type BatchRequest as Experimental_BatchRequest, type BatchStatus as Experimental_BatchStatus, type CancelBatchOptions as Experimental_CancelBatchOptions, type CancelBatchResult as Experimental_CancelBatchResult, type DecideEndEvent as Experimental_DecideEndEvent, type DecideStartEvent as Experimental_DecideStartEvent, type DecisionAnswer as Experimental_DecisionAnswer, type DecisionModel as Experimental_DecisionModel, type DecisionModelCallEndEvent as Experimental_DecisionModelCallEndEvent, type DecisionModelCallStartEvent as Experimental_DecisionModelCallStartEvent, type DecisionProviderRegistry as Experimental_DecisionProviderRegistry, type Experimental_DecisionQuestion, Experimental_DecisionRefusalError, type DecisionResult as Experimental_DecisionResult, type DecisionState as Experimental_DecisionState, type DecisionState as Experimental_ExtractionState, type DecisionStatePart as Experimental_DecisionStatePart, type DecisionStatePart as Experimental_ExtractionStatePart, Experimental_DecisionUnsupportedQuestionTypeError, type DownloadFunction as Experimental_DownloadFunction, type ExtractionAnswer as Experimental_ExtractionAnswer, type Experimental_ExtractionField, type ExtractionModel as Experimental_ExtractionModel, Experimental_ExtractionRefusalError, type ExtractionResult as Experimental_ExtractionResult, type Experimental_ExtractionSource, Experimental_ExtractionUnsupportedFieldTypeError, type ExtractionValue as Experimental_ExtractionValue, type Experimental_GeneratedImage, type GetBatchResultsOptions as Experimental_GetBatchResultsOptions, type GetBatchStatusOptions as Experimental_GetBatchStatusOptions, type ImageBatchGenerationResult as Experimental_ImageBatchGenerationResult, type ImageBatchItemResult as Experimental_ImageBatchItemResult, type ImageBatchRequest as Experimental_ImageBatchRequest, type InferAgentUIMessage as Experimental_InferAgentUIMessage, type InferAgentUIMessage, type LanguageModelStreamPart as Experimental_LanguageModelStreamPart, type LanguageModelStreamPart, type ListBatchesOptions as Experimental_ListBatchesOptions, type ListBatchesResult as Experimental_ListBatchesResult, type LogWarningsFunction as Experimental_LogWarningsFunction, type LogWarningsFunction, type RealtimeClientEvent as Experimental_RealtimeClientEvent, type RealtimeFactory as Experimental_RealtimeFactory, type RealtimeFactoryGetTokenOptions as Experimental_RealtimeFactoryGetTokenOptions, type RealtimeFactoryGetTokenResult as Experimental_RealtimeFactoryGetTokenResult, type RealtimeModel as Experimental_RealtimeModel, type RealtimeServerConnection as Experimental_RealtimeServerConnection, type RealtimeServerEvent as Experimental_RealtimeServerEvent, type RealtimeSessionConfig as Experimental_RealtimeSessionConfig, type RealtimeSessionIntent as Experimental_RealtimeSessionIntent, type RealtimeSessionOptions as Experimental_RealtimeSessionOptions, type RealtimeSessionState as Experimental_RealtimeSessionState, type RealtimeSetupResponse as Experimental_RealtimeSetupResponse, type RealtimeState as Experimental_RealtimeState, type RealtimeStatus as Experimental_RealtimeStatus, type RealtimeToolDefinition as Experimental_RealtimeToolDefinition, type RealtimeUsage as Experimental_RealtimeUsage, type Experimental_SandboxDirectoryEntry, type Experimental_SandboxFileStat, type Experimental_SandboxProcess, type Experimental_SandboxSession, type Experimental_SpeechResult, type SpeechStreamPart as Experimental_SpeechStreamPart, type SpeechStreamUsage as Experimental_SpeechStreamUsage, type SpeechTextPart as Experimental_SpeechTextPart, type StartBatchOptions as Experimental_StartBatchOptions, type StartBatchResult as Experimental_StartBatchResult, type Steering as Experimental_Steering, type SteeringMessageUIPart as Experimental_SteeringMessageUIPart, type SteeringNotDeliveredReason as Experimental_SteeringNotDeliveredReason, type SteeringOutcome as Experimental_SteeringOutcome, type StreamSpeechResult as Experimental_StreamSpeechResult, type StreamTranscriptionEndEvent as Experimental_StreamTranscriptionEndEvent, type StreamTranscriptionStartEvent as Experimental_StreamTranscriptionStartEvent, type StreamTranslationResult as Experimental_StreamTranslationResult, type TextBatchGenerationResult as Experimental_TextBatchGenerationResult, type TextBatchItemResult as Experimental_TextBatchItemResult, type TextBatchRequest as Experimental_TextBatchRequest, type Experimental_ToolCallerTool, type Experimental_ToolCallers, type Experimental_TranscriptionResult, type TranslationStreamPart as Experimental_TranslationStreamPart, type FilePart, type FileUIPart, type FinishReason, type FlexibleSchema, type GatewayAsyncJobMetadata, type GatewayModelId, type GatewayProviderMetadata, type GenerateImageCall, type GenerateImageResult, type GenerateObjectEndEvent, type GenerateObjectResult, type GenerateObjectStartEvent, type GenerateObjectStepEndEvent, type GenerateObjectStepStartEvent, type GenerateSpeechEndEvent, type GenerateSpeechStartEvent, type GenerateTextAbortEvent, type GenerateTextEndEvent, type GenerateTextInclude, type GenerateTextOnAbortCallback, type GenerateTextOnEndCallback, type GenerateTextOnFinishCallback, type GenerateTextOnStartCallback, type GenerateTextOnStepEndCallback, type GenerateTextOnStepErrorCallback, type GenerateTextOnStepFinishCallback, type GenerateTextOnStepStartCallback, type GenerateTextResult, type GenerateTextStartEvent, type GenerateTextStepEndEvent, type GenerateTextStepErrorEvent, type GenerateTextStepStartEvent, type GenerateVideoPrompt, type GenerateVideoResult, type GeneratedAudioFile, type GeneratedFile, type GenericToolApprovalFunction, type GetVideoStatusResult, type HttpChatTransportInitOptions, type IdGenerator, type ImageModel, type ImageModelMiddleware, type ImageModelProviderMetadata, type ImageModelResponseMetadata, type ImageModelUsage, type ImagePart, type InferCompleteOutput as InferGenerateOutput, type InferSchema, type InferPartialOutput as InferStreamOutput, type InferTelemetryEvent, type InferToolInput, type InferToolOutput, type InferUIDataParts, type InferUIMessageChunk, type InferUITool, type InferUITools, type Instructions, InvalidPromptError, InvalidResponseDataError, JSONParseError, type JSONSchema7, type JSONValue, type LanguageModel, type LanguageModelCallEndEvent, type LanguageModelCallOptions, type LanguageModelCallStartEvent, type LanguageModelMiddleware, type LanguageModelRequestMetadata, type LanguageModelResponseMetadata, type LanguageModelUsage, LoadAPIKeyError, LoadSettingError, type ModelInfo, type ModelMessage, NoContentGeneratedError, NoSuchModelError, NoSuchProviderReferenceError, type ObjectStreamPart, type OnFinishEvent, type OnLanguageModelCallEndCallback, type OnLanguageModelCallStartCallback, type OnStartEvent, type OnStepFinishEvent, type OnStepStartEvent, type OnToolCallFinishEvent, type OnToolCallStartEvent, type OnToolExecutionEndCallback, type OnToolExecutionStartCallback, output_d_exports as Output, type OutputChunkTimingStats, type Output as OutputInterface, type PrepareReconnectToStreamRequest, type PrepareSendMessagesRequest, type PrepareStepFunction, type PrepareStepResult, type PrepareWebSocketChatTransportReconnectToStreamRequest, type PrepareWebSocketChatTransportSendMessagesRequest, type Prompt, type Provider, type ProviderMetadata, type ProviderReference, type ProviderRegistryProvider, type ReasoningFileOutput, type ReasoningFileUIPart, type ReasoningOutput, type ReasoningUIPart, type RepairTextFunction, type RequestOptions, type RerankEndEvent, type RerankResult, type RerankStartEvent, type RerankingModel, type RerankingModelCallEndEvent, type RerankingModelCallStartEvent, type SafeValidateUIMessagesResult, type SafeValidateWebSocketChatTransportRequestResult, type Schema, type SingleToolApprovalFunction, type SourceDocumentUIPart, type SourceUrlUIPart, type SpeechModel, type SpeechModelResponseMetadata, type SpeechResult, type StartVideoResult, type StaticToolCall, type StaticToolError, type StaticToolOutputDenied, type StaticToolResult, type StepResult, type StepResultPerformance, type StepStartUIPart, type StopCondition, type StreamObjectOnFinishCallback, type StreamObjectResult, type StreamTextEndEvent, type StreamTextInclude, type StreamTextOnChunkCallback, type StreamTextOnEndCallback, type StreamTextOnErrorCallback, type StreamTextOnErrorResult, type StreamTextOnErrorRetryCallback, type StreamTextResult, type StreamTextTransform, type StreamTranscriptionResult, type SystemModelMessage, type Telemetry, type TelemetryOptions, type TelemetryTracingChannelMessage, type TelemetryTracingEventType, type TextPart, type TextStreamPart, type TextUIPart, type TimeoutConfiguration, type ToUIMessageChunkOptions, TooManyEmbeddingValuesForCallError, type Tool, type ToolApprovalConfiguration, type ToolApprovalRequest, type ToolApprovalRequestOutput, type ToolApprovalResponse, type ToolApprovalResponseOutput, type ToolApprovalStatus, type ToolCallPart, type ToolCallRepairFunction, type ToolChoice, type ToolContent, type ToolExecuteFunction, type ToolExecutionEndEvent, type ToolExecutionOptions, type ToolExecutionStartEvent, type ToolInputRefinement, type ToolModelMessage, type ToolOrder, type ToolOutputErrorUIPart, type ToolResultPart, type ToolSet, type ToolUIPart, type TranscriptionEndEvent, type TranscriptionModel, type TranscriptionModelResponseMetadata, type TranscriptionResult, type TranscriptionStartEvent, type TranscriptionStreamPart, TypeValidationError, type TypedToolCall, type TypedToolError, type TypedToolOutputDenied, type TypedToolResult, type UIDataPartSchemas, type UIDataTypes, type UIMessage, type UIMessageChunk, type UIMessagePart, type UIMessageStreamOnEndCallback, type UIMessageStreamOnFinishCallback, type UIMessageStreamOnStepEndCallback, type UIMessageStreamOnStepFinishCallback, type UIMessageStreamOptions, type UIMessageStreamOutcome, type UIMessageStreamWriter, type UIMessageStreamWriterWithOutcome, type UITool, type UIToolInvocation, type UITools, UnsupportedFunctionalityError, type UploadFileResult, type UploadSkillResult, type UseCompletionOptions, type UserContent, type UserModelMessage, type Warning, type WebSocketChatTransportAbortRequest, type WebSocketChatTransportInitOptions, type WebSocketChatTransportRequest, type WebSocketChatTransportResponse, type WebSocketChatTransportResumeRequest, type WebSocketChatTransportSendRequest, asSchema, createGateway, createIdGenerator, dynamicTool, cancelBatch as experimental_cancelBatch, createSteering as experimental_createSteering, decide as experimental_decide, decodeRealtimeAudio as experimental_decodeRealtimeAudio, encodeRealtimeAudio as experimental_encodeRealtimeAudio, extract as experimental_extract, filterActiveTools as experimental_filterActiveTools, experimental_generateSpeech, getBatchResults as experimental_getBatchResults, getBatchStatus as experimental_getBatchStatus, getRealtimeToolDefinitions as experimental_getRealtimeToolDefinitions, listBatches as experimental_listBatches, resampleAudio as experimental_resampleAudio, startBatch as experimental_startBatch, streamLanguageModelCall as experimental_streamLanguageModelCall, streamSpeech as experimental_streamSpeech, streamTextLowMemory as experimental_streamTextLowMemory, streamTranscribe as experimental_streamTranscribe, streamTranslate as experimental_streamTranslate, experimental_toolCaller, experimental_transcribe, gateway, generateId$1 as generateId, isStepCount as stepCountIs, jsonSchema, parseJsonEventStream, tool$1 as tool, zodSchema };
|
|
11773
|
+
export { AISDKError, APICallError, type ActiveTools, type Agent, type AgentCallParameters, type AgentStreamParameters, type AssistantContent, type AssistantModelMessage, type AsyncIterableStream, type CallWarning, type CallWarningRegistry, type ChatAddToolApproveResponseFunction, type ChatAddToolOutputFunction, type ChatInit, type ChatOnDataCallback, type ChatOnErrorCallback, type ChatOnFinishCallback, type ChatOnToolCallCallback, type ChatRequestOptions, type ChatState, type ChatStatus, type ChatTransport, type ChunkDetector, type Citation, type CompletionRequestOptions, type ContentPart, type CreateUIMessage, type CustomContentUIPart, type DataContent, type DataUIPart, type DeepPartial, type DirectChatTransportOptions, DownloadError, type DurableTelemetryContext, type DurableTelemetryEventContext, type DynamicToolCall, type DynamicToolError, type DynamicToolResult, type DynamicToolUIPart, type Embedding, type EmbeddingModel, type EmbeddingModelMiddleware, type EmbeddingModelUsage, EmptyResponseBodyError, type ErrorHandler, AbstractRealtimeSession as Experimental_AbstractRealtimeSession, ToolLoopAgent as Experimental_Agent, type ToolLoopAgentSettings as Experimental_AgentSettings, type ToolLoopAgentSettings, type Batch as Experimental_Batch, type BatchError as Experimental_BatchError, type BatchItemResult as Experimental_BatchItemResult, type BatchProvider as Experimental_BatchProvider, type BatchReference as Experimental_BatchReference, type BatchRequest as Experimental_BatchRequest, type BatchStatus as Experimental_BatchStatus, type CancelBatchOptions as Experimental_CancelBatchOptions, type CancelBatchResult as Experimental_CancelBatchResult, type DecideEndEvent as Experimental_DecideEndEvent, type DecideStartEvent as Experimental_DecideStartEvent, type DecisionAnswer as Experimental_DecisionAnswer, type DecisionModel as Experimental_DecisionModel, type DecisionModelCallEndEvent as Experimental_DecisionModelCallEndEvent, type DecisionModelCallStartEvent as Experimental_DecisionModelCallStartEvent, type DecisionProviderRegistry as Experimental_DecisionProviderRegistry, type Experimental_DecisionQuestion, Experimental_DecisionRefusalError, type DecisionResult as Experimental_DecisionResult, type DecisionState as Experimental_DecisionState, type DecisionState as Experimental_ExtractionState, type DecisionStatePart as Experimental_DecisionStatePart, type DecisionStatePart as Experimental_ExtractionStatePart, Experimental_DecisionUnsupportedQuestionTypeError, type DownloadFunction as Experimental_DownloadFunction, type ExtractionAnswer as Experimental_ExtractionAnswer, type Experimental_ExtractionField, type ExtractionModel as Experimental_ExtractionModel, type ExtractionProviderRegistry as Experimental_ExtractionProviderRegistry, Experimental_ExtractionRefusalError, type ExtractionResult as Experimental_ExtractionResult, type Experimental_ExtractionSource, Experimental_ExtractionUnsupportedFieldTypeError, type ExtractionValue as Experimental_ExtractionValue, type Experimental_GeneratedImage, type GetBatchResultsOptions as Experimental_GetBatchResultsOptions, type GetBatchStatusOptions as Experimental_GetBatchStatusOptions, type ImageBatchGenerationResult as Experimental_ImageBatchGenerationResult, type ImageBatchItemResult as Experimental_ImageBatchItemResult, type ImageBatchRequest as Experimental_ImageBatchRequest, type InferAgentUIMessage as Experimental_InferAgentUIMessage, type InferAgentUIMessage, type LanguageModelStreamPart as Experimental_LanguageModelStreamPart, type LanguageModelStreamPart, type ListBatchesOptions as Experimental_ListBatchesOptions, type ListBatchesResult as Experimental_ListBatchesResult, type LogWarningsFunction as Experimental_LogWarningsFunction, type LogWarningsFunction, type RealtimeClientEvent as Experimental_RealtimeClientEvent, type RealtimeFactory as Experimental_RealtimeFactory, type RealtimeFactoryGetTokenOptions as Experimental_RealtimeFactoryGetTokenOptions, type RealtimeFactoryGetTokenResult as Experimental_RealtimeFactoryGetTokenResult, type RealtimeModel as Experimental_RealtimeModel, type RealtimeServerConnection as Experimental_RealtimeServerConnection, type RealtimeServerEvent as Experimental_RealtimeServerEvent, type RealtimeSessionConfig as Experimental_RealtimeSessionConfig, type RealtimeSessionIntent as Experimental_RealtimeSessionIntent, type RealtimeSessionOptions as Experimental_RealtimeSessionOptions, type RealtimeSessionState as Experimental_RealtimeSessionState, type RealtimeSetupResponse as Experimental_RealtimeSetupResponse, type RealtimeState as Experimental_RealtimeState, type RealtimeStatus as Experimental_RealtimeStatus, type RealtimeToolDefinition as Experimental_RealtimeToolDefinition, type RealtimeUsage as Experimental_RealtimeUsage, type Experimental_SandboxDirectoryEntry, type Experimental_SandboxFileStat, type Experimental_SandboxProcess, type Experimental_SandboxSession, type Experimental_SpeechResult, type SpeechStreamPart as Experimental_SpeechStreamPart, type SpeechStreamUsage as Experimental_SpeechStreamUsage, type SpeechTextPart as Experimental_SpeechTextPart, type StartBatchOptions as Experimental_StartBatchOptions, type StartBatchResult as Experimental_StartBatchResult, type Steering as Experimental_Steering, type SteeringMessageUIPart as Experimental_SteeringMessageUIPart, type SteeringNotDeliveredReason as Experimental_SteeringNotDeliveredReason, type SteeringOutcome as Experimental_SteeringOutcome, type StreamSpeechResult as Experimental_StreamSpeechResult, type StreamTranscriptionEndEvent as Experimental_StreamTranscriptionEndEvent, type StreamTranscriptionStartEvent as Experimental_StreamTranscriptionStartEvent, type StreamTranslationResult as Experimental_StreamTranslationResult, type TextBatchGenerationResult as Experimental_TextBatchGenerationResult, type TextBatchItemResult as Experimental_TextBatchItemResult, type TextBatchRequest as Experimental_TextBatchRequest, type Experimental_ToolCallerTool, type Experimental_ToolCallers, type Experimental_TranscriptionResult, type TranslationStreamPart as Experimental_TranslationStreamPart, type FilePart, type FileUIPart, type FinishReason, type FlexibleSchema, type GatewayAsyncJobMetadata, type GatewayModelId, type GatewayProviderMetadata, type GenerateImageCall, type GenerateImageResult, type GenerateObjectEndEvent, type GenerateObjectResult, type GenerateObjectStartEvent, type GenerateObjectStepEndEvent, type GenerateObjectStepStartEvent, type GenerateSpeechEndEvent, type GenerateSpeechStartEvent, type GenerateTextAbortEvent, type GenerateTextEndEvent, type GenerateTextInclude, type GenerateTextOnAbortCallback, type GenerateTextOnEndCallback, type GenerateTextOnFinishCallback, type GenerateTextOnStartCallback, type GenerateTextOnStepEndCallback, type GenerateTextOnStepErrorCallback, type GenerateTextOnStepFinishCallback, type GenerateTextOnStepStartCallback, type GenerateTextResult, type GenerateTextStartEvent, type GenerateTextStepEndEvent, type GenerateTextStepErrorEvent, type GenerateTextStepStartEvent, type GenerateVideoPrompt, type GenerateVideoResult, type GeneratedAudioFile, type GeneratedFile, type GenericToolApprovalFunction, type GetVideoStatusResult, type HttpChatTransportInitOptions, type IdGenerator, type ImageModel, type ImageModelMiddleware, type ImageModelProviderMetadata, type ImageModelResponseMetadata, type ImageModelUsage, type ImagePart, type InferCompleteOutput as InferGenerateOutput, type InferSchema, type InferPartialOutput as InferStreamOutput, type InferTelemetryEvent, type InferToolInput, type InferToolOutput, type InferUIDataParts, type InferUIMessageChunk, type InferUITool, type InferUITools, type Instructions, InvalidPromptError, InvalidResponseDataError, JSONParseError, type JSONSchema7, type JSONValue, type LanguageModel, type LanguageModelCallEndEvent, type LanguageModelCallOptions, type LanguageModelCallStartEvent, type LanguageModelMiddleware, type LanguageModelRequestMetadata, type LanguageModelResponseMetadata, type LanguageModelUsage, LoadAPIKeyError, LoadSettingError, type ModelInfo, type ModelMessage, NoContentGeneratedError, NoSuchModelError, NoSuchProviderReferenceError, type ObjectStreamPart, type OnFinishEvent, type OnLanguageModelCallEndCallback, type OnLanguageModelCallStartCallback, type OnStartEvent, type OnStepFinishEvent, type OnStepStartEvent, type OnToolCallFinishEvent, type OnToolCallStartEvent, type OnToolExecutionEndCallback, type OnToolExecutionStartCallback, output_d_exports as Output, type OutputChunkTimingStats, type Output as OutputInterface, type PrepareReconnectToStreamRequest, type PrepareSendMessagesRequest, type PrepareStepFunction, type PrepareStepResult, type PrepareWebSocketChatTransportReconnectToStreamRequest, type PrepareWebSocketChatTransportSendMessagesRequest, type Prompt, type Provider, type ProviderMetadata, type ProviderReference, type ProviderRegistryProvider, type ReasoningFileOutput, type ReasoningFileUIPart, type ReasoningOutput, type ReasoningUIPart, type RepairTextFunction, type RequestOptions, type RerankEndEvent, type RerankResult, type RerankStartEvent, type RerankingModel, type RerankingModelCallEndEvent, type RerankingModelCallStartEvent, type SafeValidateUIMessagesResult, type SafeValidateWebSocketChatTransportRequestResult, type Schema, type SingleToolApprovalFunction, type SourceDocumentUIPart, type SourceUrlUIPart, type SpeechModel, type SpeechModelResponseMetadata, type SpeechResult, type StartVideoResult, type StaticToolCall, type StaticToolError, type StaticToolOutputDenied, type StaticToolResult, type StepResult, type StepResultPerformance, type StepStartUIPart, type StopCondition, type StreamObjectOnFinishCallback, type StreamObjectResult, type StreamTextEndEvent, type StreamTextInclude, type StreamTextOnChunkCallback, type StreamTextOnEndCallback, type StreamTextOnErrorCallback, type StreamTextOnErrorResult, type StreamTextOnErrorRetryCallback, type StreamTextResult, type StreamTextTransform, type StreamTranscriptionResult, type SystemModelMessage, type Telemetry, type TelemetryOptions, type TelemetryTracingChannelMessage, type TelemetryTracingEventType, type TextPart, type TextStreamPart, type TextUIPart, type TimeoutConfiguration, type ToUIMessageChunkOptions, TooManyEmbeddingValuesForCallError, type Tool, type ToolApprovalConfiguration, type ToolApprovalRequest, type ToolApprovalRequestOutput, type ToolApprovalResponse, type ToolApprovalResponseOutput, type ToolApprovalStatus, type ToolCallPart, type ToolCallRepairFunction, type ToolChoice, type ToolContent, type ToolExecuteFunction, type ToolExecutionEndEvent, type ToolExecutionOptions, type ToolExecutionStartEvent, type ToolInputRefinement, type ToolModelMessage, type ToolOrder, type ToolOutputErrorUIPart, type ToolResultPart, type ToolSet, type ToolUIPart, type TranscriptionEndEvent, type TranscriptionModel, type TranscriptionModelResponseMetadata, type TranscriptionResult, type TranscriptionStartEvent, type TranscriptionStreamPart, TypeValidationError, type TypedToolCall, type TypedToolError, type TypedToolOutputDenied, type TypedToolResult, type UIDataPartSchemas, type UIDataTypes, type UIMessage, type UIMessageChunk, type UIMessagePart, type UIMessageStreamOnEndCallback, type UIMessageStreamOnFinishCallback, type UIMessageStreamOnStepEndCallback, type UIMessageStreamOnStepFinishCallback, type UIMessageStreamOptions, type UIMessageStreamOutcome, type UIMessageStreamWriter, type UIMessageStreamWriterWithOutcome, type UITool, type UIToolInvocation, type UITools, UnsupportedFunctionalityError, type UploadFileResult, type UploadSkillResult, type UseCompletionOptions, type UserContent, type UserModelMessage, type Warning, type WebSocketChatTransportAbortRequest, type WebSocketChatTransportInitOptions, type WebSocketChatTransportRequest, type WebSocketChatTransportResponse, type WebSocketChatTransportResumeRequest, type WebSocketChatTransportSendRequest, asSchema, createGateway, createIdGenerator, dynamicTool, cancelBatch as experimental_cancelBatch, createSteering as experimental_createSteering, decide as experimental_decide, decodeRealtimeAudio as experimental_decodeRealtimeAudio, encodeRealtimeAudio as experimental_encodeRealtimeAudio, extract as experimental_extract, filterActiveTools as experimental_filterActiveTools, experimental_generateSpeech, getBatchResults as experimental_getBatchResults, getBatchStatus as experimental_getBatchStatus, getRealtimeToolDefinitions as experimental_getRealtimeToolDefinitions, listBatches as experimental_listBatches, resampleAudio as experimental_resampleAudio, startBatch as experimental_startBatch, streamLanguageModelCall as experimental_streamLanguageModelCall, streamSpeech as experimental_streamSpeech, streamTextLowMemory as experimental_streamTextLowMemory, streamTranscribe as experimental_streamTranscribe, streamTranslate as experimental_streamTranslate, experimental_toolCaller, experimental_transcribe, gateway, generateId$1 as generateId, isStepCount as stepCountIs, jsonSchema, parseJsonEventStream, tool$1 as tool, zodSchema };
|
|
11727
11774
|
//# sourceMappingURL=index.d.ts.map
|