ai 7.0.186 → 7.0.187
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 +15 -0
- package/dist/{default-stop-condition-CVw9jxWu.js → default-stop-condition-CeJWqvOg.js} +19 -13
- package/dist/default-stop-condition-CeJWqvOg.js.map +1 -0
- package/dist/{index-D1zb0Eh5.d.ts → index-Dg74caoY.d.ts} +39 -11
- package/dist/index-Dg74caoY.d.ts.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +66 -14
- package/dist/index.js.map +1 -1
- package/dist/internal/index.d.ts +1 -1
- package/dist/internal/index.js +1 -1
- package/docs/03-agents/07-workflow-agent.mdx +22 -5
- package/docs/03-ai-sdk-core/18-tools.mdx +10 -8
- package/docs/03-ai-sdk-core/32-decisions.mdx +4 -0
- package/docs/03-ai-sdk-core/36-transcription.mdx +12 -13
- package/docs/03-ai-sdk-core/36-translation.mdx +18 -23
- package/docs/03-ai-sdk-core/50-error-handling.mdx +6 -0
- package/docs/03-ai-sdk-core/60-telemetry.mdx +14 -12
- package/docs/04-ai-sdk-ui/21-error-handling.mdx +11 -9
- package/docs/07-reference/01-ai-sdk-core/02-stream-text.mdx +1 -1
- package/docs/07-reference/01-ai-sdk-core/{11-stream-translate.mdx → 11-stream-speech-translation.mdx} +9 -16
- package/docs/07-reference/01-ai-sdk-core/{11-stream-transcribe.mdx → 11-stream-transcription.mdx} +7 -14
- package/docs/07-reference/01-ai-sdk-core/index.mdx +4 -4
- package/docs/07-reference/04-ai-sdk-workflow/01-workflow-agent.mdx +14 -0
- package/docs/07-reference/05-ai-sdk-errors/ai-no-transcript-generated-error.mdx +1 -0
- package/docs/07-reference/05-ai-sdk-errors/ai-no-translation-generated-error.mdx +1 -0
- package/package.json +17 -13
- package/src/error/no-transcript-generated-error.ts +11 -2
- package/src/error/no-translation-generated-error.ts +13 -2
- package/src/generate-text/stream-text.ts +27 -0
- package/src/logger/deprecations.ts +2 -0
- package/src/model/resolve-model.ts +3 -3
- package/src/transcribe/index.ts +19 -1
- package/src/transcribe/stream-transcribe.ts +21 -11
- package/src/translate/index.ts +41 -3
- package/src/translate/stream-translate-result.ts +4 -4
- package/src/translate/stream-translate.ts +23 -13
- package/src/util/retry-with-exponential-backoff.ts +14 -9
- package/dist/default-stop-condition-CVw9jxWu.js.map +0 -1
- package/dist/index-D1zb0Eh5.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { $ as
|
|
2
|
+
import { $ as createToolModelOutput, A as toolSearch, At as RetryError, B as setAbortTimeout, Bt as InvalidToolApprovalSignatureError, C as resolveToolApproval, Ct as asVideoModelV4, D as convertToReasoningOutputs, Dt as createLogWarnings, E as DefaultGenerateTextResult, Et as asEmbeddingModelV4, F as resolveGeneratedFileData, Ft as NoSuchToolError, G as addImageModelUsage, H as getRetryDelayInMs, Ht as InvalidArgumentError, I as DefaultGeneratedFile, It as NoOutputGeneratedError, J as createNullLanguageModelUsage, K as addLanguageModelUsage, L as DefaultGeneratedFileWithType, Lt as MissingToolResultsError, M as prepareToolsForToolCallers, Mt as InvalidDataContentError, N as resolveToolCallerConfiguration, Nt as UnsupportedModelVersionError, O as validateToolContext, Ot as logWarnings, P as convertLanguageModelContent, Pt as ToolCallRepairError, Q as prepareLanguageModelCallOptions, R as collectToolApprovals, Rt as ToolCallNotFoundForApprovalError, S as filterIncludedContext, St as asProviderV4, T as getToolCallInputSchemaInput, Tt as asImageModelV4, U as mergeAbortSignals, V as prepareRetries, Vt as InvalidToolApprovalError, W as getOwn, X as prepareTools, Y as standardizePrompt, Z as prepareToolChoice, _ as createTelemetryDispatcher, _t as resolveRerankingModel, a as createAsyncIterableStream, at as convertDataContentToBase64String, b as AI_SDK_TELEMETRY_TRACING_CHANNEL, bt as resolveTranscriptionModel, c as validateApprovedToolApprovals, dt as asEvaluationModel, et as convertToLanguageModelPrompt, f as hashCanonical, ft as resolveDecisionModel, g as DefaultStepResult, gt as resolveLanguageModel, h as createRestrictedTelemetryDispatcher$4, ht as resolveImageModel, i as asAsyncIterableStream, it as splitDataUrl, j as appendToolCallerMessages, jt as InvalidMessageRoleError, k as createToolSearchState, kt as notify, l as maybeSignApproval, lt as download, m as isDeepEqualData, mt as resolveExtractionModel, o as mapWithConcurrency, ot as convertDataContentToUint8Array, p as toResponseMessages, pt as resolveEmbeddingModel, q as asLanguageModelUsage, r as isOutputChunk$1, rt as convertToLanguageModelV4FilePart, s as prepareToolCallConcurrency, st as mergeObjects, t as createDefaultStopCondition, ut as VERSION, v as getGlobalTelemetryIntegrations, vt as resolveSpeechModel, w as parseToolCall, wt as asLanguageModelV4, x as mergeCallbacks, xt as resolveVideoModel, y as registerTelemetry, yt as resolveSpeechTranslationModel, z as calculateTokensPerSecond, zt as InvalidToolInputError } from "./default-stop-condition-CeJWqvOg.js";
|
|
3
3
|
import { t as simulateReadableStream } from "./simulate-readable-stream-Bi5kQKbv.js";
|
|
4
4
|
import { GatewayAuthenticationError, createGateway, gateway, gateway as gateway$1 } from "@ai-sdk/gateway";
|
|
5
5
|
import { DelayedPromise, DownloadError, DownloadError as DownloadError$1, EXPERIMENTAL_EMBEDDING_MODEL_MAX_INPUT_BYTES_PER_CALL, EXPERIMENTAL_EMBEDDING_MODEL_PROVIDER_OPTIONS_TRANSFORMER, asArray, asSchema, asSchema as asSchema$1, convertAsyncIteratorToReadableStream, convertBase64ToUint8Array, convertUint8ArrayToBase64, createIdGenerator, createIdGenerator as createIdGenerator$1, delay, detectMediaType, dynamicTool, executeTool, experimental_toolCaller, filterNullable, generateId, generateId as generateId$1, getErrorMessage, getRuntimeEnvironmentUserAgent, getTopLevelMediaType, getWebSocketConstructor, isAbortError, isArrayBuffer, isBuffer, isExecutableTool, isFullMediaType, isNonNullable, isProviderReference, isProviderStreamError, isUint8Array, jsonSchema, lazySchema, normalizeHeaders, parseJsonEventStream, parseJsonEventStream as parseJsonEventStream$1, readWebSocketMessageText, resolve, safeParseJSON, safeValidateTypes, toWebSocketUrl, tool, validateTypes, waitForWebSocketBufferDrain, withUserAgentSuffix, zodSchema, zodSchema as zodSchema$1 } from "@ai-sdk/provider-utils";
|
|
@@ -135,13 +135,14 @@ const symbol$7 = Symbol.for(marker$7);
|
|
|
135
135
|
* Error that is thrown when no transcript was generated.
|
|
136
136
|
*/
|
|
137
137
|
var NoTranscriptGeneratedError = class extends AISDKError$1 {
|
|
138
|
-
constructor(
|
|
138
|
+
constructor({ cause, responses }) {
|
|
139
139
|
super({
|
|
140
140
|
name: name$7,
|
|
141
|
-
message: "No transcript generated."
|
|
141
|
+
message: "No transcript generated.",
|
|
142
|
+
cause
|
|
142
143
|
});
|
|
143
144
|
this[symbol$7] = true;
|
|
144
|
-
this.responses =
|
|
145
|
+
this.responses = responses;
|
|
145
146
|
}
|
|
146
147
|
static isInstance(error) {
|
|
147
148
|
return AISDKError$1.hasMarker(error, marker$7);
|
|
@@ -156,13 +157,14 @@ const symbol$6 = Symbol.for(marker$6);
|
|
|
156
157
|
* Error that is thrown when no translation was generated.
|
|
157
158
|
*/
|
|
158
159
|
var NoTranslationGeneratedError = class extends AISDKError$1 {
|
|
159
|
-
constructor(
|
|
160
|
+
constructor({ cause, response }) {
|
|
160
161
|
super({
|
|
161
162
|
name: name$6,
|
|
162
|
-
message: "No translation generated."
|
|
163
|
+
message: "No translation generated.",
|
|
164
|
+
cause
|
|
163
165
|
});
|
|
164
166
|
this[symbol$6] = true;
|
|
165
|
-
this.response =
|
|
167
|
+
this.response = response;
|
|
166
168
|
}
|
|
167
169
|
static isInstance(error) {
|
|
168
170
|
return AISDKError$1.hasMarker(error, marker$6);
|
|
@@ -6481,6 +6483,8 @@ var DefaultStreamTextResult = class {
|
|
|
6481
6483
|
let languageModelStreamReader = initialLanguageModelCall.stream.getReader();
|
|
6482
6484
|
let automaticStreamRetryCount = 0;
|
|
6483
6485
|
let callbackStreamRetryCount = 0;
|
|
6486
|
+
const streamRetryAbortController = new AbortController();
|
|
6487
|
+
const streamRetryAbortSignal = mergeAbortSignals(modelCallAbortSignal, streamRetryAbortController.signal);
|
|
6484
6488
|
let bufferedAttemptParts = [];
|
|
6485
6489
|
const openTextParts = /* @__PURE__ */ new Set();
|
|
6486
6490
|
const openReasoningParts = /* @__PURE__ */ new Set();
|
|
@@ -6605,8 +6609,15 @@ var DefaultStreamTextResult = class {
|
|
|
6605
6609
|
closeOpenAttemptParts();
|
|
6606
6610
|
let retryLanguageModelCall;
|
|
6607
6611
|
try {
|
|
6612
|
+
await delay(getRetryDelayInMs({
|
|
6613
|
+
error,
|
|
6614
|
+
responseHeaders: response?.headers,
|
|
6615
|
+
exponentialBackoffDelay: 2e3 * 2 ** (automaticStreamRetryCount + callbackStreamRetryCount - 1)
|
|
6616
|
+
}), { abortSignal: streamRetryAbortSignal });
|
|
6617
|
+
streamRetryAbortSignal?.throwIfAborted();
|
|
6608
6618
|
retryLanguageModelCall = await callLanguageModel();
|
|
6609
6619
|
} catch (retryError) {
|
|
6620
|
+
if (streamRetryAbortController.signal.aborted) return;
|
|
6610
6621
|
if (!interruptWindowClosed && isInterrupted()) {
|
|
6611
6622
|
await interruptAttempt();
|
|
6612
6623
|
return;
|
|
@@ -6626,6 +6637,7 @@ var DefaultStreamTextResult = class {
|
|
|
6626
6637
|
}
|
|
6627
6638
|
},
|
|
6628
6639
|
cancel(reason) {
|
|
6640
|
+
streamRetryAbortController.abort(reason);
|
|
6629
6641
|
clearModelOutputTimeouts();
|
|
6630
6642
|
return languageModelStreamReader.cancel(reason);
|
|
6631
6643
|
}
|
|
@@ -17323,7 +17335,7 @@ const originalGenerateCallId = createIdGenerator$1({
|
|
|
17323
17335
|
*
|
|
17324
17336
|
* @returns A result object that contains the streaming transcript and final transcript metadata.
|
|
17325
17337
|
*/
|
|
17326
|
-
function
|
|
17338
|
+
function streamTranscription({ model, audio, inputAudioFormat, providerOptions = {}, abortSignal, headers, includeRawChunks, telemetry, _internal: { currentDate = () => /* @__PURE__ */ new Date(), generateCallId = originalGenerateCallId } = {} }) {
|
|
17327
17339
|
const resolvedModel = resolveTranscriptionModel(model);
|
|
17328
17340
|
if (!resolvedModel) throw new Error("Model could not be resolved");
|
|
17329
17341
|
const doStream = resolvedModel.doStream?.bind(resolvedModel);
|
|
@@ -17388,6 +17400,11 @@ function streamTranscribe({ model, audio, inputAudioFormat, providerOptions = {}
|
|
|
17388
17400
|
model: resolvedModel.modelId
|
|
17389
17401
|
});
|
|
17390
17402
|
};
|
|
17403
|
+
let providerError;
|
|
17404
|
+
const createNoTranscriptGeneratedError = () => new NoTranscriptGeneratedError({
|
|
17405
|
+
cause: providerError,
|
|
17406
|
+
responses: [currentResponseMetadata()]
|
|
17407
|
+
});
|
|
17391
17408
|
const pipeAbortController = new AbortController();
|
|
17392
17409
|
const transform = new TransformStream({
|
|
17393
17410
|
async transform(value, controller) {
|
|
@@ -17406,12 +17423,15 @@ function streamTranscribe({ model, audio, inputAudioFormat, providerOptions = {}
|
|
|
17406
17423
|
case "transcript-partial":
|
|
17407
17424
|
case "transcript-final":
|
|
17408
17425
|
case "raw":
|
|
17426
|
+
controller.enqueue(value);
|
|
17427
|
+
break;
|
|
17409
17428
|
case "error":
|
|
17429
|
+
providerError = value.error;
|
|
17410
17430
|
controller.enqueue(value);
|
|
17411
17431
|
break;
|
|
17412
17432
|
case "finish":
|
|
17413
17433
|
if (!warningsPromise.isResolved()) resolveWarnings([]);
|
|
17414
|
-
if (!value.text) throw
|
|
17434
|
+
if (!value.text) throw createNoTranscriptGeneratedError();
|
|
17415
17435
|
textPromise.resolve(value.text);
|
|
17416
17436
|
segmentsPromise.resolve(value.segments);
|
|
17417
17437
|
languagePromise.resolve(value.language);
|
|
@@ -17446,7 +17466,7 @@ function streamTranscribe({ model, audio, inputAudioFormat, providerOptions = {}
|
|
|
17446
17466
|
}
|
|
17447
17467
|
},
|
|
17448
17468
|
flush() {
|
|
17449
|
-
if (textPromise.isPending()) throw
|
|
17469
|
+
if (textPromise.isPending()) throw createNoTranscriptGeneratedError();
|
|
17450
17470
|
},
|
|
17451
17471
|
cancel(reason) {
|
|
17452
17472
|
pipeAbortController.abort(reason ?? /* @__PURE__ */ new Error("Transcription stream was cancelled."));
|
|
@@ -17581,6 +17601,17 @@ const experimental_transcribe = (options) => {
|
|
|
17581
17601
|
}] });
|
|
17582
17602
|
return transcribe(options);
|
|
17583
17603
|
};
|
|
17604
|
+
/**
|
|
17605
|
+
* @deprecated Use `streamTranscription` instead.
|
|
17606
|
+
*/
|
|
17607
|
+
const experimental_streamTranscribe = (options) => {
|
|
17608
|
+
logWarnings({ warnings: [{
|
|
17609
|
+
type: "deprecated",
|
|
17610
|
+
setting: "experimental_streamTranscribe",
|
|
17611
|
+
message: "Use streamTranscription instead."
|
|
17612
|
+
}] });
|
|
17613
|
+
return streamTranscription(options);
|
|
17614
|
+
};
|
|
17584
17615
|
//#endregion
|
|
17585
17616
|
//#region src/translate/stream-translate.ts
|
|
17586
17617
|
/**
|
|
@@ -17599,7 +17630,7 @@ const experimental_transcribe = (options) => {
|
|
|
17599
17630
|
*
|
|
17600
17631
|
* @returns A result object that contains the streaming translation and final translation metadata.
|
|
17601
17632
|
*/
|
|
17602
|
-
function
|
|
17633
|
+
function streamSpeechTranslation({ model, audio, inputAudioFormat, targetLanguage, sourceLanguage, outputAudioFormat, providerOptions = {}, abortSignal, headers, includeRawChunks, _internal: { currentDate = () => /* @__PURE__ */ new Date() } = {} }) {
|
|
17603
17634
|
const resolvedModel = resolveSpeechTranslationModel(model);
|
|
17604
17635
|
const doStream = resolvedModel.doStream.bind(resolvedModel);
|
|
17605
17636
|
const headersWithUserAgent = withUserAgentSuffix(headers ?? {}, `ai/${VERSION}`);
|
|
@@ -17637,6 +17668,11 @@ function streamTranslate({ model, audio, inputAudioFormat, targetLanguage, sourc
|
|
|
17637
17668
|
};
|
|
17638
17669
|
const pipeAbortController = new AbortController();
|
|
17639
17670
|
let hasAudioOutput = false;
|
|
17671
|
+
let providerError;
|
|
17672
|
+
const createNoTranslationGeneratedError = () => new NoTranslationGeneratedError({
|
|
17673
|
+
cause: providerError,
|
|
17674
|
+
response: currentResponseMetadata()
|
|
17675
|
+
});
|
|
17640
17676
|
const transform = new TransformStream({
|
|
17641
17677
|
transform(value, controller) {
|
|
17642
17678
|
switch (value.type) {
|
|
@@ -17660,12 +17696,15 @@ function streamTranslate({ model, audio, inputAudioFormat, targetLanguage, sourc
|
|
|
17660
17696
|
case "source-transcript-partial":
|
|
17661
17697
|
case "source-transcript-final":
|
|
17662
17698
|
case "raw":
|
|
17699
|
+
controller.enqueue(value);
|
|
17700
|
+
break;
|
|
17663
17701
|
case "error":
|
|
17702
|
+
providerError = value.error;
|
|
17664
17703
|
controller.enqueue(value);
|
|
17665
17704
|
break;
|
|
17666
17705
|
case "finish":
|
|
17667
17706
|
if (!warningsPromise.isResolved()) resolveWarnings([]);
|
|
17668
|
-
if (!hasAudioOutput && !value.outputText) throw
|
|
17707
|
+
if (!hasAudioOutput && !value.outputText) throw createNoTranslationGeneratedError();
|
|
17669
17708
|
sourceTextPromise.resolve(value.sourceText);
|
|
17670
17709
|
translationTextPromise.resolve(value.outputText);
|
|
17671
17710
|
durationInSecondsPromise.resolve(value.durationInSeconds);
|
|
@@ -17677,7 +17716,7 @@ function streamTranslate({ model, audio, inputAudioFormat, targetLanguage, sourc
|
|
|
17677
17716
|
}
|
|
17678
17717
|
},
|
|
17679
17718
|
flush() {
|
|
17680
|
-
if (translationTextPromise.isPending()) throw
|
|
17719
|
+
if (translationTextPromise.isPending()) throw createNoTranslationGeneratedError();
|
|
17681
17720
|
},
|
|
17682
17721
|
cancel(reason) {
|
|
17683
17722
|
pipeAbortController.abort(reason ?? /* @__PURE__ */ new Error("Translation stream was cancelled."));
|
|
@@ -17756,6 +17795,19 @@ function streamTranslate({ model, audio, inputAudioFormat, targetLanguage, sourc
|
|
|
17756
17795
|
};
|
|
17757
17796
|
}
|
|
17758
17797
|
//#endregion
|
|
17798
|
+
//#region src/translate/index.ts
|
|
17799
|
+
/**
|
|
17800
|
+
* @deprecated Use `streamSpeechTranslation` instead.
|
|
17801
|
+
*/
|
|
17802
|
+
const experimental_streamTranslate = (options) => {
|
|
17803
|
+
logWarnings({ warnings: [{
|
|
17804
|
+
type: "deprecated",
|
|
17805
|
+
setting: "experimental_streamTranslate",
|
|
17806
|
+
message: "Use streamSpeechTranslation instead."
|
|
17807
|
+
}] });
|
|
17808
|
+
return streamSpeechTranslation(options);
|
|
17809
|
+
};
|
|
17810
|
+
//#endregion
|
|
17759
17811
|
//#region src/ui/create-ui-api-call-error.ts
|
|
17760
17812
|
async function createUIApiCallError({ response, url, fallbackMessage }) {
|
|
17761
17813
|
const responseBody = await response.text();
|
|
@@ -19319,6 +19371,6 @@ async function uploadSkill({ api, files, displayTitle, providerOptions }) {
|
|
|
19319
19371
|
});
|
|
19320
19372
|
}
|
|
19321
19373
|
//#endregion
|
|
19322
|
-
export { AISDKError, AI_SDK_TELEMETRY_TRACING_CHANNEL, APICallError, AbstractChat, DefaultChatTransport, DefaultGeneratedFile, DirectChatTransport, DownloadError, EmptyResponseBodyError, AbstractRealtimeSession as Experimental_AbstractRealtimeSession, ToolLoopAgent as Experimental_Agent, ToolLoopAgent, Experimental_DecisionRefusalError, Experimental_DecisionUnsupportedQuestionTypeError, Experimental_EvaluationUnsupportedQuestionTypeError, Experimental_ExtractionRefusalError, Experimental_ExtractionUnsupportedFieldTypeError, HttpChatTransport, InvalidArgumentError, InvalidDataContentError, InvalidMessageRoleError, InvalidPromptError, InvalidResponseDataError, InvalidStreamPartError, InvalidToolApprovalError, InvalidToolApprovalSignatureError, InvalidToolInputError, JSONParseError, JsonToSseTransformStream, LoadAPIKeyError, LoadSettingError, MessageConversionError, MissingToolResultsError, NoContentGeneratedError, NoImageGeneratedError, NoObjectGeneratedError, NoOutputGeneratedError, NoSpeechGeneratedError, NoSuchModelError, NoSuchProviderError, NoSuchProviderReferenceError, NoSuchToolError, NoTranscriptGeneratedError, NoTranslationGeneratedError, NoVideoGeneratedError, output_exports as Output, RetryError, SerialJobExecutor, StreamProviderError, TextStreamChatTransport, TooManyEmbeddingValuesForCallError, ToolCallNotFoundForApprovalError, ToolCallRepairError, ToolChoiceViolationError, TypeValidationError, UIMessageStreamError, UI_MESSAGE_STREAM_HEADERS, UnsupportedFunctionalityError, UnsupportedModelVersionError, WebSocketChatTransport, addToolInputExamplesMiddleware, asSchema, assistantModelMessageSchema, callCompletionApi, consumeStream, convertDataContentToBase64String, convertFileListToFileUIParts, convertToModelMessages, cosineSimilarity, createAgentUIStream, createAgentUIStreamResponse, createDownload, createGateway, createIdGenerator, createProviderRegistry, createTextStreamResponse, createUIMessageStream, createUIMessageStreamResponse, customProvider, defaultEmbeddingSettingsMiddleware, defaultInstructionsMiddleware, defaultSettingsMiddleware, detectToolDrift, dynamicTool, embed, embedMany, cancelBatch as experimental_cancelBatch, experimental_createProviderRegistry, createSteering as experimental_createSteering, decide as experimental_decide, decodeRealtimeAudio as experimental_decodeRealtimeAudio, encodeRealtimeAudio as experimental_encodeRealtimeAudio, experimental_evaluate, extract as experimental_extract, filterActiveTools as experimental_filterActiveTools, filterActiveTools, experimental_generateSpeech, experimental_generateVideo, getBatchResults as experimental_getBatchResults, getBatchStatus as experimental_getBatchStatus, getRealtimeToolDefinitions as experimental_getRealtimeToolDefinitions, experimental_getVideoStatus, listBatches as experimental_listBatches, resampleAudio as experimental_resampleAudio, startBatch as experimental_startBatch, experimental_startVideo, streamLanguageModelCall as experimental_streamLanguageModelCall, streamSpeech as experimental_streamSpeech, streamTextLowMemory as experimental_streamTextLowMemory,
|
|
19374
|
+
export { AISDKError, AI_SDK_TELEMETRY_TRACING_CHANNEL, APICallError, AbstractChat, DefaultChatTransport, DefaultGeneratedFile, DirectChatTransport, DownloadError, EmptyResponseBodyError, AbstractRealtimeSession as Experimental_AbstractRealtimeSession, ToolLoopAgent as Experimental_Agent, ToolLoopAgent, Experimental_DecisionRefusalError, Experimental_DecisionUnsupportedQuestionTypeError, Experimental_EvaluationUnsupportedQuestionTypeError, Experimental_ExtractionRefusalError, Experimental_ExtractionUnsupportedFieldTypeError, HttpChatTransport, InvalidArgumentError, InvalidDataContentError, InvalidMessageRoleError, InvalidPromptError, InvalidResponseDataError, InvalidStreamPartError, InvalidToolApprovalError, InvalidToolApprovalSignatureError, InvalidToolInputError, JSONParseError, JsonToSseTransformStream, LoadAPIKeyError, LoadSettingError, MessageConversionError, MissingToolResultsError, NoContentGeneratedError, NoImageGeneratedError, NoObjectGeneratedError, NoOutputGeneratedError, NoSpeechGeneratedError, NoSuchModelError, NoSuchProviderError, NoSuchProviderReferenceError, NoSuchToolError, NoTranscriptGeneratedError, NoTranslationGeneratedError, NoVideoGeneratedError, output_exports as Output, RetryError, SerialJobExecutor, StreamProviderError, TextStreamChatTransport, TooManyEmbeddingValuesForCallError, ToolCallNotFoundForApprovalError, ToolCallRepairError, ToolChoiceViolationError, TypeValidationError, UIMessageStreamError, UI_MESSAGE_STREAM_HEADERS, UnsupportedFunctionalityError, UnsupportedModelVersionError, WebSocketChatTransport, addToolInputExamplesMiddleware, asSchema, assistantModelMessageSchema, callCompletionApi, consumeStream, convertDataContentToBase64String, convertFileListToFileUIParts, convertToModelMessages, cosineSimilarity, createAgentUIStream, createAgentUIStreamResponse, createDownload, createGateway, createIdGenerator, createProviderRegistry, createTextStreamResponse, createUIMessageStream, createUIMessageStreamResponse, customProvider, defaultEmbeddingSettingsMiddleware, defaultInstructionsMiddleware, defaultSettingsMiddleware, detectToolDrift, dynamicTool, embed, embedMany, cancelBatch as experimental_cancelBatch, experimental_createProviderRegistry, createSteering as experimental_createSteering, decide as experimental_decide, decodeRealtimeAudio as experimental_decodeRealtimeAudio, encodeRealtimeAudio as experimental_encodeRealtimeAudio, experimental_evaluate, extract as experimental_extract, filterActiveTools as experimental_filterActiveTools, filterActiveTools, experimental_generateSpeech, experimental_generateVideo, getBatchResults as experimental_getBatchResults, getBatchStatus as experimental_getBatchStatus, getRealtimeToolDefinitions as experimental_getRealtimeToolDefinitions, experimental_getVideoStatus, listBatches as experimental_listBatches, resampleAudio as experimental_resampleAudio, startBatch as experimental_startBatch, experimental_startVideo, streamLanguageModelCall as experimental_streamLanguageModelCall, streamSpeech as experimental_streamSpeech, streamTextLowMemory as experimental_streamTextLowMemory, experimental_streamTranscribe, experimental_streamTranslate, experimental_toolCaller, experimental_transcribe, extractJsonMiddleware, extractReasoningMiddleware, fingerprintTools, gateway, generateId, generateImage, generateObject, generateSpeech, generateText, getChunkTimeoutMs, getFirstChunkTimeoutMs, getStaticToolName, getStepTimeoutMs, getTextFromDataUrl, getToolName, getToolOrDynamicToolName, getToolTimeoutMs, getTotalTimeoutMs, hasToolCall, isCustomContentUIPart, isDataUIPart, isDeepEqualData, isDynamicToolUIPart, isFileUIPart, isLoopFinished, isReasoningFileUIPart, isReasoningUIPart, isStaticToolUIPart, isStepCount, isStepCount as stepCountIs, isTextUIPart, isToolOutputErrorUIPart, isToolUIPart, jsonSchema, lastAssistantMessageIsCompleteWithApprovalResponses, lastAssistantMessageIsCompleteWithToolCalls, modelMessageSchema, parseJsonEventStream, parsePartialJson, pipeAgentUIStreamToResponse, pipeTextStreamToResponse, pipeUIMessageStreamToResponse, pruneMessages, readUIMessageStream, registerTelemetry, rerank, safeValidateUIMessages, safeValidateWebSocketChatTransportRequest, simulateReadableStream, simulateStreamingMiddleware, smoothStream, streamObject, streamSpeechTranslation, streamText, streamTranscription, systemModelMessageSchema, toTextStream, toUIMessageChunk, toUIMessageStream, tool, toolModelMessageSchema, toolSearch, transcribe, uiMessageChunkSchema, uploadFile, uploadSkill, userModelMessageSchema, validateUIMessages, wrapEmbeddingModel, wrapImageModel, wrapLanguageModel, wrapProvider, zodSchema };
|
|
19323
19375
|
|
|
19324
19376
|
//# sourceMappingURL=index.js.map
|