@mastra/ai-sdk 1.12.0 → 1.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_types/{@internal_ai-sdk-v5@0.0.96 → @internal_ai-sdk-v5@0.0.99}/dist/index.d.ts +61 -2
- package/dist/_types/{@internal_ai-v6@0.0.96 → @internal_ai-v6@0.0.99}/dist/index.d.ts +9 -1
- package/dist/_types/{@internal_ai-v7@0.0.96 → @internal_ai-v7@0.0.99}/dist/index.d.ts +260 -37
- package/dist/chat-route.d.ts +3 -3
- package/dist/convert-streams.d.ts +3 -3
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +15 -15
- package/dist/docs/references/docs-memory-message-history.md +1 -1
- package/dist/docs/references/docs-server-custom-api-routes.md +1 -1
- package/dist/docs/references/integrations-agentic-ui-ai-sdk-ui.md +3 -3
- package/dist/docs/references/reference-ai-sdk-network-route.md +1 -1
- package/dist/docs/references/reference-ai-sdk-overview.md +2 -2
- package/dist/docs/references/reference-ai-sdk-with-mastra.md +1 -1
- package/dist/docs/references/reference-ai-sdk-workflow-route.md +1 -1
- package/dist/docs/references/reference-memory-recall.md +1 -1
- package/dist/docs/references/reference-streaming-agents-stream.md +5 -5
- package/dist/helpers.d.ts +2 -2
- package/dist/index.cjs +10 -9
- package/dist/index.js +10 -10
- package/dist/middleware.d.ts +1 -1
- package/dist/public-types.d.ts +3 -3
- package/dist/transformers.d.ts +23 -23
- package/dist/ui.cjs +0 -2
- package/dist/ui.js +0 -2
- package/package.json +13 -12
- package/dist/__tests__/__fixtures__/network.stream.d.ts.map +0 -1
- package/dist/__tests__/v7-ui-message-types.test-d.d.ts.map +0 -1
- package/dist/chat-route.d.ts.map +0 -1
- package/dist/convert-messages.d.ts.map +0 -1
- package/dist/convert-snapshot.d.ts.map +0 -1
- package/dist/convert-streams.d.ts.map +0 -1
- package/dist/helpers.d.ts.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/middleware.d.ts.map +0 -1
- package/dist/network-route.d.ts.map +0 -1
- package/dist/public-types.d.ts.map +0 -1
- package/dist/smooth-stream.d.ts.map +0 -1
- package/dist/sse-heartbeat.d.ts.map +0 -1
- package/dist/to-ai-sdk-format.d.ts.map +0 -1
- package/dist/transformers.d.ts.map +0 -1
- package/dist/ui.cjs.map +0 -1
- package/dist/ui.d.ts.map +0 -1
- package/dist/ui.js.map +0 -1
- package/dist/utils.d.ts.map +0 -1
- package/dist/workflow-route.d.ts.map +0 -1
- /package/dist/_types/{@internal_ai-sdk-v5@0.0.96 → @internal_ai-sdk-v5@0.0.99}/package.json +0 -0
- /package/dist/_types/{@internal_ai-v6@0.0.96 → @internal_ai-v6@0.0.99}/package.json +0 -0
- /package/dist/_types/{@internal_ai-v7@0.0.96 → @internal_ai-v7@0.0.99}/package.json +0 -0
|
@@ -333,7 +333,7 @@ export declare const AI_SDK_TELEMETRY_TRACING_CHANNEL = "ai:telemetry";
|
|
|
333
333
|
* @extends Error
|
|
334
334
|
*/
|
|
335
335
|
export declare class AISDKError extends Error {
|
|
336
|
-
private readonly [symbol$
|
|
336
|
+
private readonly [symbol$18];
|
|
337
337
|
/**
|
|
338
338
|
* The underlying cause of the error, if any.
|
|
339
339
|
*/
|
|
@@ -361,7 +361,7 @@ export declare class AISDKError extends Error {
|
|
|
361
361
|
}
|
|
362
362
|
|
|
363
363
|
export declare class APICallError extends AISDKError {
|
|
364
|
-
private readonly [symbol$
|
|
364
|
+
private readonly [symbol$16_2];
|
|
365
365
|
readonly url: string;
|
|
366
366
|
readonly requestBodyValues: unknown;
|
|
367
367
|
readonly statusCode?: number;
|
|
@@ -3008,7 +3008,7 @@ export declare type EmbedStartEvent<RUNTIME_CONTEXT extends Context = Context> =
|
|
|
3008
3008
|
};
|
|
3009
3009
|
|
|
3010
3010
|
export declare class EmptyResponseBodyError extends AISDKError {
|
|
3011
|
-
private readonly [symbol$
|
|
3011
|
+
private readonly [symbol$15_2];
|
|
3012
3012
|
constructor({ message }?: {
|
|
3013
3013
|
message?: string;
|
|
3014
3014
|
});
|
|
@@ -3510,7 +3510,8 @@ export declare type Experimental_DecisionQuestion = {
|
|
|
3510
3510
|
readonly criteria: readonly (DecisionModelV4Input | null)[];
|
|
3511
3511
|
} | {
|
|
3512
3512
|
readonly type: 'box';
|
|
3513
|
-
|
|
3513
|
+
/** May be omitted or null when supported by the provider. */
|
|
3514
|
+
readonly instructions?: DecisionModelV4Input | null;
|
|
3514
3515
|
} | {
|
|
3515
3516
|
readonly type: 'boolean';
|
|
3516
3517
|
/** May be omitted or null when supported by the provider and criteria define the judgment. */
|
|
@@ -3519,14 +3520,14 @@ export declare type Experimental_DecisionQuestion = {
|
|
|
3519
3520
|
readonly criteria?: {
|
|
3520
3521
|
readonly true?: DecisionModelV4Input | null;
|
|
3521
3522
|
readonly false?: DecisionModelV4Input | null;
|
|
3522
|
-
};
|
|
3523
|
+
} | null;
|
|
3523
3524
|
};
|
|
3524
3525
|
|
|
3525
3526
|
/**
|
|
3526
3527
|
* A decision model declined to answer one or more questions.
|
|
3527
3528
|
*/
|
|
3528
3529
|
export declare class Experimental_DecisionRefusalError extends AISDKError {
|
|
3529
|
-
private readonly [symbol$
|
|
3530
|
+
private readonly [symbol$14_2];
|
|
3530
3531
|
readonly questionIds: string[];
|
|
3531
3532
|
readonly provider: string;
|
|
3532
3533
|
readonly modelId: string;
|
|
@@ -3567,7 +3568,7 @@ export declare type Experimental_DecisionStatePart = TextPart | FilePart | {
|
|
|
3567
3568
|
* A decision model does not support the type of a requested question.
|
|
3568
3569
|
*/
|
|
3569
3570
|
export declare class Experimental_DecisionUnsupportedQuestionTypeError extends AISDKError {
|
|
3570
|
-
private readonly [symbol$
|
|
3571
|
+
private readonly [symbol$17_2];
|
|
3571
3572
|
readonly questionId: string;
|
|
3572
3573
|
readonly questionType: string;
|
|
3573
3574
|
readonly provider: string;
|
|
@@ -5490,7 +5491,7 @@ export declare function fingerprintTools(tools: ToolSet): Promise<Record<string,
|
|
|
5490
5491
|
*/
|
|
5491
5492
|
export declare type FinishReason = 'stop' | 'length' | 'content-filter' | 'tool-calls' | 'error' | 'interrupted' | 'other';
|
|
5492
5493
|
|
|
5493
|
-
export declare type FlexibleSchema<SCHEMA = any> = Schema<SCHEMA> | LazySchema<SCHEMA> |
|
|
5494
|
+
export declare type FlexibleSchema<SCHEMA = any> = Schema<SCHEMA> | LazySchema<SCHEMA> | StandardSchema<SCHEMA> | $ZodType<SCHEMA, any>;
|
|
5494
5495
|
|
|
5495
5496
|
/**
|
|
5496
5497
|
* Tool with user-defined input and output schemas that is executed by the AI SDK.
|
|
@@ -8556,7 +8557,7 @@ declare type InferElementOutput<OUTPUT extends OutputInterface> = OUTPUT extends
|
|
|
8556
8557
|
*/
|
|
8557
8558
|
export declare type InferGenerateOutput<OUTPUT extends OutputInterface> = OUTPUT extends OutputInterface<infer COMPLETE_OUTPUT, any, any> ? COMPLETE_OUTPUT : never;
|
|
8558
8559
|
|
|
8559
|
-
export declare type InferSchema<SCHEMA> = SCHEMA extends
|
|
8560
|
+
export declare type InferSchema<SCHEMA> = SCHEMA extends StandardSchema<infer T> ? T : SCHEMA extends ZodSchema<infer T> ? T : SCHEMA extends LazySchema<infer T> ? T : SCHEMA extends Schema<infer T> ? T : never;
|
|
8560
8561
|
|
|
8561
8562
|
/**
|
|
8562
8563
|
* Infers the partial output type from the output specification.
|
|
@@ -8723,7 +8724,7 @@ export declare class InvalidToolApprovalError extends AISDKError {
|
|
|
8723
8724
|
}
|
|
8724
8725
|
|
|
8725
8726
|
export declare class InvalidToolApprovalSignatureError extends AISDKError {
|
|
8726
|
-
private readonly [symbol$
|
|
8727
|
+
private readonly [symbol$18_2];
|
|
8727
8728
|
readonly approvalId: string;
|
|
8728
8729
|
readonly toolCallId: string;
|
|
8729
8730
|
constructor({ approvalId, toolCallId, reason }: {
|
|
@@ -11373,6 +11374,8 @@ declare type LanguageModelV4GenerateResult = {
|
|
|
11373
11374
|
* Optional request information for telemetry and debugging purposes.
|
|
11374
11375
|
*/
|
|
11375
11376
|
request?: {
|
|
11377
|
+
/** The actual HTTP endpoint used for this request, when known. */
|
|
11378
|
+
url?: string;
|
|
11376
11379
|
/**
|
|
11377
11380
|
* Request HTTP body that was sent to the provider API.
|
|
11378
11381
|
*/
|
|
@@ -11748,6 +11751,8 @@ declare type LanguageModelV4StreamPart = {
|
|
|
11748
11751
|
usage: LanguageModelV4Usage;
|
|
11749
11752
|
finishReason: LanguageModelV4FinishReason;
|
|
11750
11753
|
providerMetadata?: SharedV4ProviderMetadata;
|
|
11754
|
+
} | {
|
|
11755
|
+
type: 'ping';
|
|
11751
11756
|
} | {
|
|
11752
11757
|
type: 'raw';
|
|
11753
11758
|
rawValue: unknown;
|
|
@@ -11768,6 +11773,8 @@ declare type LanguageModelV4StreamResult = {
|
|
|
11768
11773
|
* Optional request information for telemetry and debugging purposes.
|
|
11769
11774
|
*/
|
|
11770
11775
|
request?: {
|
|
11776
|
+
/** The actual HTTP endpoint used for this request, when known. */
|
|
11777
|
+
url?: string;
|
|
11771
11778
|
/**
|
|
11772
11779
|
* Request HTTP body that was sent to the provider API.
|
|
11773
11780
|
*/
|
|
@@ -12245,7 +12252,7 @@ export declare class MessageConversionError extends AISDKError {
|
|
|
12245
12252
|
}
|
|
12246
12253
|
|
|
12247
12254
|
export declare class MissingToolResultsError extends AISDKError {
|
|
12248
|
-
private readonly [symbol$
|
|
12255
|
+
private readonly [symbol$16];
|
|
12249
12256
|
readonly toolCallIds: string[];
|
|
12250
12257
|
constructor({ toolCallIds }: {
|
|
12251
12258
|
toolCallIds: string[];
|
|
@@ -13799,20 +13806,14 @@ declare type RealtimeModelV4 = {
|
|
|
13799
13806
|
conversation: 'continuous' | 'turn-based';
|
|
13800
13807
|
transports: readonly ('websocket' | 'webrtc')[];
|
|
13801
13808
|
/** Omission preserves the legacy client-secret WebSocket connection. */
|
|
13802
|
-
connections?: readonly ('client-secret-websocket' | 'server-websocket' | 'webrtc')[];
|
|
13809
|
+
connections?: readonly ('client-secret-websocket' | 'server-websocket' | 'webrtc' | 'provider')[];
|
|
13803
13810
|
/** Omission preserves session-update startup. WebRTC setup may start the session. */
|
|
13804
13811
|
startup?: 'session-start' | 'session-update';
|
|
13805
13812
|
/** Omission preserves transport-close finalization. */
|
|
13806
13813
|
finalization?: 'session-close' | 'transport-close';
|
|
13807
13814
|
};
|
|
13808
|
-
/**
|
|
13809
|
-
|
|
13810
|
-
url: string;
|
|
13811
|
-
headers: Record<string, string>;
|
|
13812
|
-
} | PromiseLike<{
|
|
13813
|
-
url: string;
|
|
13814
|
-
headers: Record<string, string>;
|
|
13815
|
-
}>;
|
|
13815
|
+
/** Create a provider-owned browser transport without opening a connection. */
|
|
13816
|
+
createTransport?(options: RealtimeModelV4TransportOptions): RealtimeModelV4Transport;
|
|
13816
13817
|
/** Provider-specific setup for the WebRTC event channel. */
|
|
13817
13818
|
getWebRTCConfig?(): {
|
|
13818
13819
|
dataChannelLabel: string;
|
|
@@ -13859,16 +13860,37 @@ declare type RealtimeModelV4 = {
|
|
|
13859
13860
|
/** Create a raw-event parser per connection and discard it on disconnect. */
|
|
13860
13861
|
createServerEventParser?(): (raw: unknown) => RealtimeModelV4ServerEvent | RealtimeModelV4ServerEvent[];
|
|
13861
13862
|
/**
|
|
13862
|
-
* Browser-side: Serializes a normalized client event into the
|
|
13863
|
-
*
|
|
13863
|
+
* Browser-side: Serializes a normalized client event into the provider's
|
|
13864
|
+
* native WebSocket format. Server-side callers should pass the same `intent`
|
|
13865
|
+
* used for `getServerWebSocketConfig`.
|
|
13864
13866
|
*/
|
|
13865
|
-
serializeClientEvent(event: RealtimeModelV4ClientEvent
|
|
13867
|
+
serializeClientEvent(event: RealtimeModelV4ClientEvent, options?: {
|
|
13868
|
+
intent?: RealtimeModelV4SessionIntent;
|
|
13869
|
+
}): unknown | PromiseLike<unknown>;
|
|
13866
13870
|
/**
|
|
13867
|
-
* Browser-side: Builds the provider-specific session configuration
|
|
13868
|
-
*
|
|
13869
|
-
*
|
|
13871
|
+
* Browser-side: Builds the provider-specific session configuration payload.
|
|
13872
|
+
* Server-side callers should pass the same `intent` used for
|
|
13873
|
+
* `getServerWebSocketConfig`.
|
|
13874
|
+
*/
|
|
13875
|
+
buildSessionConfig(config: RealtimeModelV4SessionConfig, options?: {
|
|
13876
|
+
intent?: RealtimeModelV4SessionIntent;
|
|
13877
|
+
}): unknown;
|
|
13878
|
+
/**
|
|
13879
|
+
* Server-side: Returns the upstream WebSocket URL and auth headers for a
|
|
13880
|
+
* server-initiated connection — e.g. a proxy or gateway that holds the
|
|
13881
|
+
* long-lived provider credential and owns the socket itself.
|
|
13882
|
+
*
|
|
13883
|
+
* Unlike `getWebSocketConfig` (browser-side, authenticates with a short-lived
|
|
13884
|
+
* token carried in a subprotocol), this uses the provider credential the
|
|
13885
|
+
* model was constructed with (header auth) and selects supported provider
|
|
13886
|
+
* endpoint variants via `intent` (e.g. transcription).
|
|
13887
|
+
*
|
|
13888
|
+
* May return a promise for providers whose server connection requires a
|
|
13889
|
+
* round-trip (e.g. minting an ephemeral connection token).
|
|
13870
13890
|
*/
|
|
13871
|
-
|
|
13891
|
+
getServerWebSocketConfig?(options?: {
|
|
13892
|
+
intent?: RealtimeModelV4SessionIntent;
|
|
13893
|
+
}): RealtimeModelV4ServerConnection | PromiseLike<RealtimeModelV4ServerConnection>;
|
|
13872
13894
|
/**
|
|
13873
13895
|
* Browser-side: Returns a message to auto-send back over the WebSocket
|
|
13874
13896
|
* in response to a raw incoming message, or null if no response is needed.
|
|
@@ -14022,6 +14044,38 @@ declare type RealtimeModelV4FunctionCallOutput = {
|
|
|
14022
14044
|
output: string;
|
|
14023
14045
|
};
|
|
14024
14046
|
|
|
14047
|
+
declare type RealtimeModelV4MediaStream = typeof globalThis extends {
|
|
14048
|
+
MediaStream: {
|
|
14049
|
+
prototype: infer T;
|
|
14050
|
+
};
|
|
14051
|
+
} ? T : never;
|
|
14052
|
+
|
|
14053
|
+
/**
|
|
14054
|
+
* Descriptor for a server-initiated upstream WebSocket connection: the URL to
|
|
14055
|
+
* dial plus the headers (and optional subprotocols) to send on the handshake.
|
|
14056
|
+
*
|
|
14057
|
+
* Unlike `getWebSocketConfig` — which is browser-side and authenticates with a
|
|
14058
|
+
* short-lived token carried in a subprotocol — this carries the long-lived
|
|
14059
|
+
* provider credential in `headers` and is intended for a trusted server or
|
|
14060
|
+
* proxy that owns the socket itself.
|
|
14061
|
+
*/
|
|
14062
|
+
declare type RealtimeModelV4ServerConnection = {
|
|
14063
|
+
/**
|
|
14064
|
+
* The `wss://` (or `ws://`) URL to connect to, including any provider-specific
|
|
14065
|
+
* query parameters (e.g. model id, transcription intent).
|
|
14066
|
+
*/
|
|
14067
|
+
url: string;
|
|
14068
|
+
/**
|
|
14069
|
+
* Headers to send on the WebSocket handshake, including provider
|
|
14070
|
+
* authentication (e.g. `Authorization: Bearer <key>`).
|
|
14071
|
+
*/
|
|
14072
|
+
headers: Record<string, string>;
|
|
14073
|
+
/**
|
|
14074
|
+
* Optional WebSocket subprotocols to negotiate on the handshake.
|
|
14075
|
+
*/
|
|
14076
|
+
protocols?: string[];
|
|
14077
|
+
};
|
|
14078
|
+
|
|
14025
14079
|
/**
|
|
14026
14080
|
* Normalized events emitted by the realtime model (model → browser).
|
|
14027
14081
|
* Each provider maps its native event format to this discriminated union.
|
|
@@ -14103,6 +14157,7 @@ declare type RealtimeModelV4ServerEvent = {
|
|
|
14103
14157
|
type: 'input-transcription-completed';
|
|
14104
14158
|
itemId: string;
|
|
14105
14159
|
transcript: string;
|
|
14160
|
+
usage?: RealtimeModelV4Usage;
|
|
14106
14161
|
raw: unknown;
|
|
14107
14162
|
} | {
|
|
14108
14163
|
type: 'response-created';
|
|
@@ -14112,6 +14167,7 @@ declare type RealtimeModelV4ServerEvent = {
|
|
|
14112
14167
|
type: 'response-done';
|
|
14113
14168
|
responseId: string;
|
|
14114
14169
|
status: string;
|
|
14170
|
+
usage?: RealtimeModelV4Usage;
|
|
14115
14171
|
raw: unknown;
|
|
14116
14172
|
} | {
|
|
14117
14173
|
type: 'output-item-added';
|
|
@@ -14213,6 +14269,8 @@ declare type RealtimeModelV4ServerEvent = {
|
|
|
14213
14269
|
* The original event type string from the provider.
|
|
14214
14270
|
*/
|
|
14215
14271
|
rawType: string;
|
|
14272
|
+
/** Provider usage snapshot without an inferred response association. */
|
|
14273
|
+
usage?: RealtimeModelV4Usage;
|
|
14216
14274
|
raw: unknown;
|
|
14217
14275
|
};
|
|
14218
14276
|
|
|
@@ -14321,6 +14379,17 @@ declare type RealtimeModelV4SessionConfig = {
|
|
|
14321
14379
|
providerOptions?: Record<string, unknown>;
|
|
14322
14380
|
};
|
|
14323
14381
|
|
|
14382
|
+
/**
|
|
14383
|
+
* The realtime endpoint variant to open.
|
|
14384
|
+
*
|
|
14385
|
+
* Most providers expose a single conversational ("conversation") voice
|
|
14386
|
+
* endpoint; some additionally expose dedicated transcription
|
|
14387
|
+
* endpoints that live at a different URL. `intent` selects which one a
|
|
14388
|
+
* server-side connection should target. Providers should fail fast when an
|
|
14389
|
+
* intent is not supported by their endpoint and codec.
|
|
14390
|
+
*/
|
|
14391
|
+
declare type RealtimeModelV4SessionIntent = 'conversation' | 'transcription';
|
|
14392
|
+
|
|
14324
14393
|
/**
|
|
14325
14394
|
* A text message from the user.
|
|
14326
14395
|
*/
|
|
@@ -14354,6 +14423,95 @@ declare type RealtimeModelV4ToolDefinition = {
|
|
|
14354
14423
|
parameters: JSONSchema7;
|
|
14355
14424
|
};
|
|
14356
14425
|
|
|
14426
|
+
/**
|
|
14427
|
+
* Browser transport for providers whose media protocol requires its own client.
|
|
14428
|
+
* Construction must not acquire media or open a connection. Provider-specific
|
|
14429
|
+
* dependencies and session setup/cleanup belong to the implementation.
|
|
14430
|
+
*/
|
|
14431
|
+
declare type RealtimeModelV4Transport = {
|
|
14432
|
+
connect(options: {
|
|
14433
|
+
/** Application endpoint for creating and closing provider sessions. */
|
|
14434
|
+
api: string;
|
|
14435
|
+
sessionConfig?: RealtimeModelV4SessionConfig;
|
|
14436
|
+
/** Caller-owned tracks must never be stopped by the transport. */
|
|
14437
|
+
stream?: RealtimeModelV4MediaStream;
|
|
14438
|
+
capture?: boolean;
|
|
14439
|
+
abortSignal: AbortSignal;
|
|
14440
|
+
}): Promise<void>;
|
|
14441
|
+
sendEvent(event: RealtimeModelV4ClientEvent, shouldSend?: () => boolean): Promise<void>;
|
|
14442
|
+
startCapture(stream?: RealtimeModelV4MediaStream): Promise<void>;
|
|
14443
|
+
stopCapture(): Promise<void>;
|
|
14444
|
+
stopPlayback(): void;
|
|
14445
|
+
resumePlayback(): Promise<void>;
|
|
14446
|
+
/** Drain already accepted incoming events. */
|
|
14447
|
+
finish(): Promise<void>;
|
|
14448
|
+
/** Release local media and await remote session cleanup. Must be idempotent. */
|
|
14449
|
+
close(): Promise<void>;
|
|
14450
|
+
/** Release local resources immediately and initiate remote cleanup. */
|
|
14451
|
+
dispose(): void;
|
|
14452
|
+
};
|
|
14453
|
+
|
|
14454
|
+
/** Callbacks for a provider-owned browser transport. */
|
|
14455
|
+
declare type RealtimeModelV4TransportOptions = {
|
|
14456
|
+
onEvent: (event: RealtimeModelV4ServerEvent) => void | Promise<void>;
|
|
14457
|
+
onError: (error: Error) => void;
|
|
14458
|
+
onFatalError: (error: Error, drain?: Promise<void>) => void;
|
|
14459
|
+
onClose: (error?: Error) => void;
|
|
14460
|
+
onCapturing: (value: boolean) => void;
|
|
14461
|
+
onPlaying: (value: boolean) => void;
|
|
14462
|
+
};
|
|
14463
|
+
|
|
14464
|
+
/**
|
|
14465
|
+
* Normalized realtime usage on completion events or provider custom snapshots.
|
|
14466
|
+
* Snapshots without a response association must not be summed as increments.
|
|
14467
|
+
*
|
|
14468
|
+
* Counts are the provider's raw counts: the input buckets INCLUDE any cached
|
|
14469
|
+
* tokens, and the cached portions are reported separately in
|
|
14470
|
+
* `cachedInput*Tokens`. This mirrors how providers report realtime usage on the
|
|
14471
|
+
* wire and lets a consumer apply its own cached-vs-uncached billing split
|
|
14472
|
+
* without re-parsing the event's `raw` payload.
|
|
14473
|
+
*
|
|
14474
|
+
* Every field is optional: providers only populate what they actually report,
|
|
14475
|
+
* and the whole `usage` object is omitted when nothing is observable. Gross
|
|
14476
|
+
* totals can include modalities without a dedicated text/audio bucket.
|
|
14477
|
+
*/
|
|
14478
|
+
declare type RealtimeModelV4Usage = {
|
|
14479
|
+
/** Gross input tokens across all reported modalities; includes cached tokens. */
|
|
14480
|
+
inputTokens?: number;
|
|
14481
|
+
/** Gross output tokens across all reported modalities. */
|
|
14482
|
+
outputTokens?: number;
|
|
14483
|
+
/** Cached portion of gross input tokens, when the provider reports a total. */
|
|
14484
|
+
cachedInputTokens?: number;
|
|
14485
|
+
/**
|
|
14486
|
+
* Input text tokens (includes any cached text tokens).
|
|
14487
|
+
*/
|
|
14488
|
+
inputTextTokens?: number;
|
|
14489
|
+
/**
|
|
14490
|
+
* Input audio tokens (includes any cached audio tokens).
|
|
14491
|
+
*/
|
|
14492
|
+
inputAudioTokens?: number;
|
|
14493
|
+
/**
|
|
14494
|
+
* Output text tokens.
|
|
14495
|
+
*/
|
|
14496
|
+
outputTextTokens?: number;
|
|
14497
|
+
/**
|
|
14498
|
+
* Output audio tokens.
|
|
14499
|
+
*/
|
|
14500
|
+
outputAudioTokens?: number;
|
|
14501
|
+
/**
|
|
14502
|
+
* Cached portion of the input text tokens (subset of `inputTextTokens`).
|
|
14503
|
+
*/
|
|
14504
|
+
cachedInputTextTokens?: number;
|
|
14505
|
+
/**
|
|
14506
|
+
* Cached portion of the input audio tokens (subset of `inputAudioTokens`).
|
|
14507
|
+
*/
|
|
14508
|
+
cachedInputAudioTokens?: number;
|
|
14509
|
+
/**
|
|
14510
|
+
* Audio duration in seconds. Populated for duration-billed transcription.
|
|
14511
|
+
*/
|
|
14512
|
+
seconds?: number;
|
|
14513
|
+
};
|
|
14514
|
+
|
|
14357
14515
|
/**
|
|
14358
14516
|
* Reasoning file output of a text generation.
|
|
14359
14517
|
* It contains a file generated as part of reasoning.
|
|
@@ -18331,12 +18489,8 @@ declare const symbol$11: unique symbol;
|
|
|
18331
18489
|
|
|
18332
18490
|
declare const symbol$12: unique symbol;
|
|
18333
18491
|
|
|
18334
|
-
declare const symbol$12_2: unique symbol;
|
|
18335
|
-
|
|
18336
18492
|
declare const symbol$13: unique symbol;
|
|
18337
18493
|
|
|
18338
|
-
declare const symbol$13_2: unique symbol;
|
|
18339
|
-
|
|
18340
18494
|
declare const symbol$14: unique symbol;
|
|
18341
18495
|
|
|
18342
18496
|
declare const symbol$14_2: unique symbol;
|
|
@@ -18351,8 +18505,12 @@ declare const symbol$16_2: unique symbol;
|
|
|
18351
18505
|
|
|
18352
18506
|
declare const symbol$17: unique symbol;
|
|
18353
18507
|
|
|
18508
|
+
declare const symbol$17_2: unique symbol;
|
|
18509
|
+
|
|
18354
18510
|
declare const symbol$18: unique symbol;
|
|
18355
18511
|
|
|
18512
|
+
declare const symbol$18_2: unique symbol;
|
|
18513
|
+
|
|
18356
18514
|
declare const symbol$19: unique symbol;
|
|
18357
18515
|
|
|
18358
18516
|
declare const symbol$1_2: unique symbol;
|
|
@@ -20841,6 +20999,20 @@ declare type TranscriptionModelV4 = {
|
|
|
20841
20999
|
* Generates a transcript.
|
|
20842
21000
|
*/
|
|
20843
21001
|
doGenerate(options: TranscriptionModelV4CallOptions): PromiseLike<TranscriptionModelV4Result>;
|
|
21002
|
+
/**
|
|
21003
|
+
* Optional native URL transcription. Its presence signals that HTTP(S)
|
|
21004
|
+
* audio URLs can be sent to the provider without downloading them locally.
|
|
21005
|
+
* The provider is responsible for fetching the audio; request headers are
|
|
21006
|
+
* for the provider API and are not forwarded to the audio host.
|
|
21007
|
+
*
|
|
21008
|
+
* Return `undefined` if the provider cannot fetch this URL and the SDK
|
|
21009
|
+
* should fall back to downloading it locally and calling `doGenerate`.
|
|
21010
|
+
* Throw for other errors (such as authentication or invalid audio).
|
|
21011
|
+
* Existing providers can continue implementing only `doGenerate`.
|
|
21012
|
+
*/
|
|
21013
|
+
doGenerateFromUrl?(options: Omit<TranscriptionModelV4CallOptions, 'audio' | 'mediaType'> & {
|
|
21014
|
+
audio: URL;
|
|
21015
|
+
}): PromiseLike<TranscriptionModelV4Result | undefined>;
|
|
20844
21016
|
/**
|
|
20845
21017
|
* Streams a transcript for live audio.
|
|
20846
21018
|
*
|
|
@@ -20864,6 +21036,16 @@ declare type TranscriptionModelV4CallOptions = {
|
|
|
20864
21036
|
* @see https://www.iana.org/assignments/media-types/media-types.xhtml
|
|
20865
21037
|
*/
|
|
20866
21038
|
mediaType: string;
|
|
21039
|
+
/**
|
|
21040
|
+
* Word and segment timings to request.
|
|
21041
|
+
*
|
|
21042
|
+
* Supporting adapters map this onto the provider's native control when that
|
|
21043
|
+
* provider option is omitted. An explicit provider option wins. Supporting
|
|
21044
|
+
* adapters warn when they cannot provide a requested granularity.
|
|
21045
|
+
* An empty array requests no additional timing detail; it does not suppress
|
|
21046
|
+
* timings returned by default.
|
|
21047
|
+
*/
|
|
21048
|
+
timestampGranularities?: Array<TranscriptionModelV4TimestampGranularity>;
|
|
20867
21049
|
/**
|
|
20868
21050
|
* Additional provider-specific options that are passed through to the provider
|
|
20869
21051
|
* as body parameters.
|
|
@@ -20920,6 +21102,25 @@ declare type TranscriptionModelV4Result = {
|
|
|
20920
21102
|
*/
|
|
20921
21103
|
endSecond: number;
|
|
20922
21104
|
}>;
|
|
21105
|
+
/**
|
|
21106
|
+
* Word-level timings reported by the provider, whether requested or returned
|
|
21107
|
+
* by default. Existing `segments` behavior is preserved; some providers also
|
|
21108
|
+
* put word timings in `segments`. Omitted when word timings are unavailable.
|
|
21109
|
+
*/
|
|
21110
|
+
words?: Array<{
|
|
21111
|
+
/**
|
|
21112
|
+
* The text of this word.
|
|
21113
|
+
*/
|
|
21114
|
+
text: string;
|
|
21115
|
+
/**
|
|
21116
|
+
* The start time of this word in seconds.
|
|
21117
|
+
*/
|
|
21118
|
+
startSecond: number;
|
|
21119
|
+
/**
|
|
21120
|
+
* The end time of this word in seconds.
|
|
21121
|
+
*/
|
|
21122
|
+
endSecond: number;
|
|
21123
|
+
}>;
|
|
20923
21124
|
/**
|
|
20924
21125
|
* The detected language of the audio content, as an ISO-639-1 code (e.g., 'en' for English).
|
|
20925
21126
|
* May be undefined if the language couldn't be detected.
|
|
@@ -21130,6 +21331,12 @@ declare type TranscriptionModelV4StreamResult = {
|
|
|
21130
21331
|
};
|
|
21131
21332
|
};
|
|
21132
21333
|
|
|
21334
|
+
/**
|
|
21335
|
+
* Timing detail to request from a transcription model.
|
|
21336
|
+
* `word` is for word highlighting. `segment` is for caption-sized phrases.
|
|
21337
|
+
*/
|
|
21338
|
+
declare type TranscriptionModelV4TimestampGranularity = 'word' | 'segment';
|
|
21339
|
+
|
|
21133
21340
|
/**
|
|
21134
21341
|
* The result of a `transcribe` call.
|
|
21135
21342
|
* It contains the transcript and additional information.
|
|
@@ -22811,7 +23018,7 @@ declare type VideoModelV4OperationWebhook<TBody = JSONValue_2> = {
|
|
|
22811
23018
|
*/
|
|
22812
23019
|
declare type VideoModelV4Result = {
|
|
22813
23020
|
/**
|
|
22814
|
-
* Generated videos as URLs, base64 strings, or
|
|
23021
|
+
* Generated videos as URLs, base64 strings, binary data, or upload confirmations.
|
|
22815
23022
|
*
|
|
22816
23023
|
* Most providers return URLs to video files (MP4, WebM) due to large file sizes.
|
|
22817
23024
|
* Use the discriminated union to indicate the type of video data being returned.
|
|
@@ -22863,9 +23070,17 @@ declare type VideoModelV4Result = {
|
|
|
22863
23070
|
};
|
|
22864
23071
|
|
|
22865
23072
|
/**
|
|
22866
|
-
* Generated video data
|
|
23073
|
+
* Generated video data, or confirmation of delivery to caller-managed storage.
|
|
22867
23074
|
*/
|
|
22868
23075
|
declare type VideoModelV4VideoData = {
|
|
23076
|
+
/**
|
|
23077
|
+
* The provider completed delivery to caller-managed storage.
|
|
23078
|
+
* No downloadable URL or video bytes are available to the SDK.
|
|
23079
|
+
* Never include a signed upload URL in this result.
|
|
23080
|
+
*/
|
|
23081
|
+
type: 'uploaded';
|
|
23082
|
+
mediaType: string;
|
|
23083
|
+
} | {
|
|
22869
23084
|
/**
|
|
22870
23085
|
* Video available as a URL (most common for video providers).
|
|
22871
23086
|
*/
|
|
@@ -23182,9 +23397,17 @@ declare type WriteFileOptions<CONTENT> = {
|
|
|
23182
23397
|
abortSignal?: AbortSignal;
|
|
23183
23398
|
};
|
|
23184
23399
|
|
|
23185
|
-
declare type
|
|
23400
|
+
declare type Zod3Schema<SCHEMA = any> = {
|
|
23401
|
+
readonly _type: SCHEMA;
|
|
23402
|
+
readonly _output: SCHEMA;
|
|
23403
|
+
readonly _input: any;
|
|
23404
|
+
readonly _def: z3.ZodTypeDef;
|
|
23405
|
+
safeParseAsync: z3.Schema<SCHEMA>['safeParseAsync'];
|
|
23406
|
+
};
|
|
23407
|
+
|
|
23408
|
+
declare type ZodSchema<SCHEMA = any> = Zod3Schema<SCHEMA> | $ZodType<SCHEMA, any>;
|
|
23186
23409
|
|
|
23187
|
-
export declare function zodSchema<OBJECT>(zodSchema:
|
|
23410
|
+
export declare function zodSchema<OBJECT>(zodSchema: ZodSchema<OBJECT>, options?: {
|
|
23188
23411
|
/**
|
|
23189
23412
|
* Enables support for references in the schema.
|
|
23190
23413
|
* This is required for recursive schemas, e.g. with `z.lazy`.
|
|
@@ -23195,5 +23418,5 @@ export declare function zodSchema<OBJECT>(zodSchema: $ZodType<OBJECT, any> | z3.
|
|
|
23195
23418
|
}): Schema<OBJECT>;
|
|
23196
23419
|
|
|
23197
23420
|
export { }
|
|
23198
|
-
export { GatewayProviderSettings as GatewayProviderSettings, GatewayProvider as GatewayProvider, ParseResult as ParseResult, LazySchema as LazySchema,
|
|
23199
|
-
export { schemaSymbol, symbol$1, symbol$10, symbol$10_2, symbol$11, symbol$12, symbol$
|
|
23421
|
+
export { GatewayProviderSettings as GatewayProviderSettings, GatewayProvider as GatewayProvider, ParseResult as ParseResult, LazySchema as LazySchema, StandardSchema as StandardSchema, ZodSchema as ZodSchema, ValidationResult as ValidationResult, ProviderOptions as ProviderOptions, CustomPart as CustomPart, ReasoningPart as ReasoningPart, ReasoningFilePart as ReasoningFilePart, FileData as FileData, ProviderReference_2 as ProviderReference_2, ToolResultOutput as ToolResultOutput, SandboxReadFileOptions as SandboxReadFileOptions, SandboxReadBinaryFileOptions as SandboxReadBinaryFileOptions, SandboxReadTextFileOptions as SandboxReadTextFileOptions, SandboxWriteFileOptions as SandboxWriteFileOptions, SandboxWriteBinaryFileOptions as SandboxWriteBinaryFileOptions, SandboxWriteTextFileOptions as SandboxWriteTextFileOptions, SandboxStatOptions as SandboxStatOptions, SandboxListDirectoryOptions as SandboxListDirectoryOptions, SandboxDeleteFileOptions as SandboxDeleteFileOptions, SandboxSpawnOptionsWithStdin as SandboxSpawnOptionsWithStdin, WritableSandboxProcess as WritableSandboxProcess, SandboxSpawnOptionsWithoutStdin as SandboxSpawnOptionsWithoutStdin, SandboxSpawnOptions as SandboxSpawnOptions, SandboxRunOptions as SandboxRunOptions, ToolCallerDefinition as ToolCallerDefinition, FunctionTool as FunctionTool, ProviderDefinedTool as ProviderDefinedTool, ProviderExecutedTool as ProviderExecutedTool, ExecutableTool as ExecutableTool, DynamicTool as DynamicTool, DecisionModelV4Input as DecisionModelV4Input, SharedV4ProviderReference as SharedV4ProviderReference, TypeValidationContext as TypeValidationContext, LanguageModelV4Citation as LanguageModelV4Citation, EmbeddingModelV3 as EmbeddingModelV3, EmbeddingModelV2 as EmbeddingModelV2, EmbeddingModelV4Embedding as EmbeddingModelV4Embedding, EmbeddingModelV4Middleware as EmbeddingModelV4Middleware, ImageModelV3 as ImageModelV3, ImageModelV2 as ImageModelV2, ImageModelV2ProviderMetadata as ImageModelV2ProviderMetadata, ImageModelV4Middleware as ImageModelV4Middleware, GlobalProviderModelId as GlobalProviderModelId, LanguageModelV3 as LanguageModelV3, LanguageModelV2 as LanguageModelV2, SharedV4Warning as SharedV4Warning, LanguageModelV4Middleware as LanguageModelV4Middleware, RerankingModelV3 as RerankingModelV3, SpeechModelV3 as SpeechModelV3, SpeechModelV2 as SpeechModelV2, TranscriptionModelV3 as TranscriptionModelV3, TranscriptionModelV2 as TranscriptionModelV2, ImageModelV4Usage as ImageModelV4Usage, JSONValue_2 as JSONValue_2, Experimental_EvaluationModelV4 as Experimental_EvaluationModelV4, DecisionModelV4Result as DecisionModelV4Result, DeepPartialInternal as DeepPartialInternal, IncludedContext as IncludedContext, IncludedToolsContext as IncludedToolsContext, BaseToolCall as BaseToolCall, Source as Source, ValueOf as ValueOf, asUITool as asUITool, DataUIMessageChunk as DataUIMessageChunk, InferElementOutput as InferElementOutput, ConsumeStreamOptions as ConsumeStreamOptions, TextStreamTextStartPart as TextStreamTextStartPart, TextStreamTextEndPart as TextStreamTextEndPart, TextStreamReasoningStartPart as TextStreamReasoningStartPart, TextStreamReasoningEndPart as TextStreamReasoningEndPart, TextStreamCustomPart as TextStreamCustomPart, TextStreamToolInputStartPart as TextStreamToolInputStartPart, TextStreamToolInputEndPart as TextStreamToolInputEndPart, TextStreamToolInputDeltaPart as TextStreamToolInputDeltaPart, TextStreamSourcePart as TextStreamSourcePart, TextStreamToolOutputDeniedPart as TextStreamToolOutputDeniedPart, TextStreamStartStepPart as TextStreamStartStepPart, TextStreamFinishStepPart as TextStreamFinishStepPart, TextStreamStartPart as TextStreamStartPart, TextStreamFinishPart as TextStreamFinishPart, TextStreamAbortPart as TextStreamAbortPart, TextStreamErrorPart as TextStreamErrorPart, TextStreamRawPart as TextStreamRawPart, MaybePromiseLike as MaybePromiseLike, InferToolContext as InferToolContext, ToolCallerName as ToolCallerName, LanguageModelV4ToolCall as LanguageModelV4ToolCall, WidenedToolExecutionStartEvent as WidenedToolExecutionStartEvent, StaticToolExecutionStartEvent as StaticToolExecutionStartEvent, DynamicToolExecutionStartEvent as DynamicToolExecutionStartEvent, WidenedToolExecutionEndEvent as WidenedToolExecutionEndEvent, StaticToolExecutionEndEvent as StaticToolExecutionEndEvent, DynamicToolExecutionEndEvent as DynamicToolExecutionEndEvent, StreamTextOptions as StreamTextOptions, StreamTextSingleConsumerResult as StreamTextSingleConsumerResult, EnrichedStreamPart as EnrichedStreamPart, StandardizedPrompt as StandardizedPrompt, ResponseMessage as ResponseMessage, TranscriptionStartEventFor as TranscriptionStartEventFor, TranscriptionEndEventFor as TranscriptionEndEventFor, BivariantCallback as BivariantCallback, OperationStartEvent as OperationStartEvent, OperationEndEvent as OperationEndEvent, Arrayable as Arrayable, Context as Context, GenerateTextOptions as GenerateTextOptions, ToolsContextParameter as ToolsContextParameter, StreamTextOnAbortCallback as StreamTextOnAbortCallback, ToolLoopAgentCallExtensions as ToolLoopAgentCallExtensions, InferAgentTools as InferAgentTools, getOriginalFetch as getOriginalFetch, InferUIMessageTools as InferUIMessageTools, InferUIMessageToolCall as InferUIMessageToolCall, UIDataTypesToSchemas as UIDataTypesToSchemas, InferUIMessageData as InferUIMessageData, InferUIMessageMetadata as InferUIMessageMetadata, Resolvable as Resolvable, FetchFunction as FetchFunction, WebSocketConstructor as WebSocketConstructor, ValidateUIMessagesOptions as ValidateUIMessagesOptions, AgentUIMessageStreamOptions as AgentUIMessageStreamOptions, UIMessageStreamResponseInit as UIMessageStreamResponseInit, ActiveToolSubset as ActiveToolSubset, TextStreamTextDeltaPart as TextStreamTextDeltaPart, TextStreamReasoningDeltaPart as TextStreamReasoningDeltaPart, TextStreamFilePart as TextStreamFilePart, TextStreamReasoningFilePart as TextStreamReasoningFilePart, TextStreamToolApprovalRequestPart as TextStreamToolApprovalRequestPart, TextStreamToolApprovalResponsePart as TextStreamToolApprovalResponsePart, TextStreamToolCallPart as TextStreamToolCallPart, TextStreamToolResultPart as TextStreamToolResultPart, TextStreamToolErrorPart as TextStreamToolErrorPart, LanguageModelV4Prompt as LanguageModelV4Prompt, SharedV4Headers as SharedV4Headers, BatchV4 as BatchV4, BatchV4Error as BatchV4Error, BatchV4Status as BatchV4Status, GenerateImagePrompt as GenerateImagePrompt, BatchV4ModelIds as BatchV4ModelIds, InferBatchModelIds as InferBatchModelIds, BatchV4StartResult as BatchV4StartResult, BatchCallOptions as BatchCallOptions, ImageModelV4ProviderMetadata as ImageModelV4ProviderMetadata, Callback as Callback, EnforcedToolChoice as EnforcedToolChoice, LanguageModelV4Content as LanguageModelV4Content, RetryErrorReason as RetryErrorReason, DecisionModelV4CallOptions as DecisionModelV4CallOptions, Job as Job, StreamObjectOnErrorCallback as StreamObjectOnErrorCallback, SharedV4AudioFormat as SharedV4AudioFormat, SharedV4ProviderMetadata as SharedV4ProviderMetadata, SpeechModelV4StreamUsage as SpeechModelV4StreamUsage, VideoModelResponseMetadata as VideoModelResponseMetadata, VideoModelProviderMetadata as VideoModelProviderMetadata, VideoModelV4FrameType as VideoModelV4FrameType, GenerateVideoPollOptions as GenerateVideoPollOptions, GenerateVideoWebhookFactory as GenerateVideoWebhookFactory, VideoModelV4OperationStatusResult as VideoModelV4OperationStatusResult, EmbeddingModelV4CallOptions as EmbeddingModelV4CallOptions, LanguageModelV4CallOptions as LanguageModelV4CallOptions, JSONObject as JSONObject, RealtimeFactoryV4 as RealtimeFactoryV4, RealtimeFactoryV4GetTokenOptions as RealtimeFactoryV4GetTokenOptions, RealtimeFactoryV4GetTokenResult as RealtimeFactoryV4GetTokenResult, RealtimeModelV4 as RealtimeModelV4, RealtimeModelV4ClientEvent as RealtimeModelV4ClientEvent, RealtimeModelV4ServerEvent as RealtimeModelV4ServerEvent, RealtimeModelV4SessionConfig as RealtimeModelV4SessionConfig, RealtimeModelV4ToolDefinition as RealtimeModelV4ToolDefinition, InferToolSetContext as InferToolSetContext, ProviderDecisionModelIdentifier as ProviderDecisionModelIdentifier, ExtractLiteralUnion as ExtractLiteralUnion, ProviderVideoModelIdentifier as ProviderVideoModelIdentifier, ProviderV4 as ProviderV4, ProviderV3 as ProviderV3, VideoModel as VideoModel, FilesV4 as FilesV4, SkillsV4 as SkillsV4, ProviderV2 as ProviderV2, ExtractModelId as ExtractModelId, LanguageModelV4 as LanguageModelV4, EmbeddingModelV4 as EmbeddingModelV4, ImageModelV4 as ImageModelV4, TranscriptionModelV4 as TranscriptionModelV4, RerankingModelV4 as RerankingModelV4, SpeechModelV4 as SpeechModelV4, VideoModelV4 as VideoModelV4, DecisionModelV4 as DecisionModelV4, ToolSearchInput as ToolSearchInput, ToolSearchOutput as ToolSearchOutput, ToolSearchFunction as ToolSearchFunction, SpeechTranslationModelV4Usage as SpeechTranslationModelV4Usage, SpeechTranslationModelResponseMetadata as SpeechTranslationModelResponseMetadata, SpeechTranslationModel as SpeechTranslationModel, FilesV4UploadFileCallOptions as FilesV4UploadFileCallOptions, SkillsV4UploadSkillResult as SkillsV4UploadSkillResult, SkillsV4UploadSkillCallOptions as SkillsV4UploadSkillCallOptions, UploadSkillFile as UploadSkillFile };
|
|
23422
|
+
export { schemaSymbol, symbol$1, symbol$10, symbol$10_2, symbol$11, symbol$12, symbol$13, symbol$14, symbol$14_2, symbol$15, symbol$15_2, symbol$16, symbol$16_2, symbol$17, symbol$17_2, symbol$18, symbol$18_2, symbol$19, symbol$1_2, symbol$1_3, symbol$2, symbol$20, symbol$21, symbol$22, symbol$23, symbol$2_2, symbol$3, symbol$3_2, symbol$4, symbol$4_2, symbol$5, symbol$5_2, symbol$6, symbol$6_2, symbol$7, symbol$7_2, symbol$8, symbol$8_2, symbol$9, symbol$9_2, symbol, symbol_2 };
|
package/dist/chat-route.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { UIMessageStreamOptions as UIMessageStreamOptionsV5 } from './_types/@internal_ai-sdk-v5@0.0.
|
|
2
|
-
import type { UIMessageStreamOptions as UIMessageStreamOptionsV6 } from './_types/@internal_ai-v6@0.0.
|
|
3
|
-
import type { UIMessageStreamOptions as UIMessageStreamOptionsV7 } from './_types/@internal_ai-v7@0.0.
|
|
1
|
+
import type { UIMessageStreamOptions as UIMessageStreamOptionsV5 } from './_types/@internal_ai-sdk-v5@0.0.99/dist/index.js';
|
|
2
|
+
import type { UIMessageStreamOptions as UIMessageStreamOptionsV6 } from './_types/@internal_ai-v6@0.0.99/dist/index.js';
|
|
3
|
+
import type { UIMessageStreamOptions as UIMessageStreamOptionsV7 } from './_types/@internal_ai-v7@0.0.99/dist/index.js';
|
|
4
4
|
import type { AgentExecutionOptions } from '@mastra/core/agent';
|
|
5
5
|
import type { Mastra } from '@mastra/core/mastra';
|
|
6
6
|
import { registerApiRoute } from '@mastra/core/server';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { InferUIMessageChunk as InferUIMessageChunkV5, UIMessage as UIMessageV5, UIMessageStreamOptions as UIMessageStreamOptionsV5 } from './_types/@internal_ai-sdk-v5@0.0.
|
|
2
|
-
import type { UIMessage as UIMessageV6, UIMessageStreamOptions as UIMessageStreamOptionsV6 } from './_types/@internal_ai-v6@0.0.
|
|
3
|
-
import type { UIMessage as UIMessageV7, UIMessageStreamOptions as UIMessageStreamOptionsV7 } from './_types/@internal_ai-v7@0.0.
|
|
1
|
+
import type { InferUIMessageChunk as InferUIMessageChunkV5, UIMessage as UIMessageV5, UIMessageStreamOptions as UIMessageStreamOptionsV5 } from './_types/@internal_ai-sdk-v5@0.0.99/dist/index.js';
|
|
2
|
+
import type { UIMessage as UIMessageV6, UIMessageStreamOptions as UIMessageStreamOptionsV6 } from './_types/@internal_ai-v6@0.0.99/dist/index.js';
|
|
3
|
+
import type { UIMessage as UIMessageV7, UIMessageStreamOptions as UIMessageStreamOptionsV7 } from './_types/@internal_ai-v7@0.0.99/dist/index.js';
|
|
4
4
|
import type { MastraModelOutput, MastraAgentNetworkStream, WorkflowRunOutput } from '@mastra/core/stream';
|
|
5
5
|
import type { MastraWorkflowStream, Step, WorkflowResult } from '@mastra/core/workflows';
|
|
6
6
|
import type { ZodObject, ZodType } from 'zod/v4';
|
package/dist/docs/SKILL.md
CHANGED