eve 0.52.4 → 0.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/dist/src/cli/commands/init-agent-workspace.d.ts +2 -0
- package/dist/src/cli/commands/init-agent-workspace.js +1 -1
- package/dist/src/cli/commands/init-install.d.ts +8 -0
- package/dist/src/cli/commands/init-install.js +1 -0
- package/dist/src/cli/commands/init.d.ts +3 -4
- package/dist/src/cli/commands/init.js +1 -1
- package/dist/src/cli/dev/tui/message-queue.js +1 -1
- package/dist/src/cli/dev/tui/terminal-renderer.js +12 -12
- package/dist/src/cli/run.js +2 -2
- package/dist/src/cli/telemetry/index.d.ts +3 -0
- package/dist/src/cli/telemetry/index.js +1 -1
- package/dist/src/compiled/.vendor-stamp.json +17 -16
- package/dist/src/compiled/@ai-sdk/anthropic/index.d.ts +23 -2
- package/dist/src/compiled/@ai-sdk/anthropic/index.js +2 -4
- package/dist/src/compiled/@ai-sdk/google/index.d.ts +145 -33
- package/dist/src/compiled/@ai-sdk/google/index.js +10 -7
- package/dist/src/compiled/@ai-sdk/mcp/index.d.ts +176 -7
- package/dist/src/compiled/@ai-sdk/mcp/index.js +1 -1
- package/dist/src/compiled/@ai-sdk/openai/index.d.ts +71 -40
- package/dist/src/compiled/@ai-sdk/openai/index.js +8 -8
- package/dist/src/compiled/@ai-sdk/otel/index.js +1 -1
- package/dist/src/compiled/@ai-sdk/provider/index.d.ts +225 -3
- package/dist/src/compiled/@ai-sdk/provider-utils/index.d.ts +220 -151
- package/dist/src/compiled/@workflow/core/create-hook.d.ts +3 -0
- package/dist/src/compiled/@workflow/core/index.js +2 -2
- package/dist/src/compiled/@workflow/core/private.js +1 -1
- package/dist/src/compiled/@workflow/core/runtime/resume-hook.d.ts +59 -7
- package/dist/src/compiled/@workflow/core/runtime/run.d.ts +42 -0
- package/dist/src/compiled/@workflow/core/runtime/start.d.ts +31 -1
- package/dist/src/compiled/@workflow/core/runtime.d.ts +2 -2
- package/dist/src/compiled/@workflow/core/runtime.js +2 -2
- package/dist/src/compiled/@workflow/core/serialization.d.ts +22 -0
- package/dist/src/compiled/@workflow/core/version.d.ts +1 -1
- package/dist/src/compiled/@workflow/core/workflow.js +1 -1
- package/dist/src/compiled/@workflow/errors/index.d.ts +37 -3
- package/dist/src/compiled/@workflow/errors/index.js +1 -1
- package/dist/src/compiled/@workflow/world/attributes-validation.d.ts +68 -0
- package/dist/src/compiled/@workflow/world/index.d.ts +1 -1
- package/dist/src/compiled/@workflow/world/interfaces.d.ts +21 -0
- package/dist/src/compiled/@workflow/world-local/index.js +5 -5
- package/dist/src/compiled/@workflow/world-vercel/index.js +3 -3
- package/dist/src/compiled/_chunks/workflow/attribute-changes-C6H-fRVP.js +20 -0
- package/dist/src/compiled/_chunks/workflow/dist-DDeH-1ER.js +40 -0
- package/dist/src/compiled/_chunks/workflow/dist-DhncQSl7.js +74 -0
- package/dist/src/compiled/_chunks/workflow/{dist-BIO9Inoc.js → dist-xTushGCp.js} +1 -1
- package/dist/src/compiled/_chunks/workflow/frames-DsEqSDes.js +3 -0
- package/dist/src/compiled/_chunks/workflow/{private-aXEeo0fU.js → private-CFJkQA7R.js} +1 -1
- package/dist/src/compiled/_chunks/workflow/resume-hook-BRDLAb67.js +1 -0
- package/dist/src/compiled/_chunks/workflow/run-BM2OFphk.js +1 -0
- package/dist/src/compiled/_chunks/workflow/sleep-6cG0F99-.js +1 -0
- package/dist/src/compiled/_chunks/workflow/{ws-transport-M7uk8HV8.js → ws-transport-DuK82LLz.js} +1 -1
- package/dist/src/compiler/extension-compatibility.d.ts +7 -6
- package/dist/src/compiler/extension-compatibility.js +1 -1
- package/dist/src/compiler/manifest.js +1 -1
- package/dist/src/compiler/normalize-agent-config.js +1 -1
- package/dist/src/compiler/normalize-manifest-helpers.js +1 -1
- package/dist/src/context/dynamic-model-lifecycle.js +1 -1
- package/dist/src/context/keys.d.ts +11 -2
- package/dist/src/context/keys.js +1 -1
- package/dist/src/evals/mock-model.js +1 -1
- package/dist/src/evals/runner/run-evals.d.ts +1 -1
- package/dist/src/evals/runner/run-evals.js +1 -1
- package/dist/src/execution/activity-cohort.d.ts +20 -0
- package/dist/src/execution/activity-cohort.js +1 -0
- package/dist/src/execution/authorization-callback-match.d.ts +1 -0
- package/dist/src/execution/authorization-callback-match.js +1 -1
- package/dist/src/execution/cancelled-model-call-batch.d.ts +15 -0
- package/dist/src/execution/cancelled-model-call-batch.js +1 -0
- package/dist/src/execution/coordination-dispatch-shared.js +1 -1
- package/dist/src/execution/model-call-batching.d.ts +11 -0
- package/dist/src/execution/model-call-batching.js +1 -0
- package/dist/src/execution/parked-delivery-wait.js +1 -1
- package/dist/src/execution/session-activity-projection.d.ts +2 -0
- package/dist/src/execution/session-activity-projection.js +1 -1
- package/dist/src/execution/skills/instructions.js +1 -1
- package/dist/src/execution/tools/sleep-workflow.js +1 -1
- package/dist/src/execution/tools/subagent/invoke-agent.d.ts +5 -5
- package/dist/src/execution/tools/subagent/invoke-agent.js +1 -1
- package/dist/src/execution/tools/subagent/start.js +1 -1
- package/dist/src/execution/tools/workflow/body.js +1 -1
- package/dist/src/execution/turn-workflow.js +1 -1
- package/dist/src/execution/wire/session-inbox-resume.js +1 -1
- package/dist/src/execution/workflow-steps.d.ts +1 -1
- package/dist/src/execution/workflow-steps.js +1 -1
- package/dist/src/harness/approval-delivery-coordinator.js +1 -1
- package/dist/src/harness/authorization.d.ts +1 -0
- package/dist/src/harness/authorization.js +1 -1
- package/dist/src/harness/compaction.js +1 -1
- package/dist/src/harness/current-messages.d.ts +8 -2
- package/dist/src/harness/current-messages.js +1 -1
- package/dist/src/harness/hitl/approval-input-requests.js +1 -1
- package/dist/src/harness/input-requests.js +1 -1
- package/dist/src/harness/pending-input-batches.d.ts +4 -0
- package/dist/src/harness/pending-input-batches.js +1 -1
- package/dist/src/harness/tool-loop.js +2 -2
- package/dist/src/harness/turn-client-context.d.ts +1 -1
- package/dist/src/internal/application/package.js +1 -1
- package/dist/src/internal/authored-definition/core.js +1 -1
- package/dist/src/internal/authored-package-boundary.js +1 -1
- package/dist/src/internal/mock-model-identity.d.ts +2 -0
- package/dist/src/internal/mock-model-identity.js +1 -0
- package/dist/src/internal/nitro/routes/agent-info/build-agent-info-response.js +1 -1
- package/dist/src/internal/workflow-bundle/authored-workflow-directives.js +1 -1
- package/dist/src/public/tools/index.d.ts +1 -0
- package/dist/src/public/tools/index.js +1 -1
- package/dist/src/runtime/resolve-agent.js +1 -1
- package/dist/src/self-modification/agent.d.ts +2 -2
- package/dist/src/self-modification/agent.js +1 -1
- package/dist/src/self-modification/config.d.ts +15 -0
- package/dist/src/self-modification/config.js +1 -1
- package/dist/src/self-modification/extension/extension.d.ts +3 -0
- package/dist/src/self-modification/extension/extension.js +1 -1
- package/dist/src/self-modification/setup.d.ts +3 -0
- package/dist/src/self-modification/setup.js +25 -4
- package/dist/src/setup/integrations/self-modification/setup.js +1 -1
- package/dist/src/setup/scaffold/create/add-to-project.js +1 -1
- package/dist/src/setup/scaffold/create/project.js +2 -2
- package/dist/src/setup/scaffold/update/web-options.js +1 -1
- package/dist/src/shared/agent-definition.d.ts +11 -2
- package/dist/src/tasks/delivery-context.d.ts +2 -2
- package/dist/src/tasks/delivery-context.js +2 -18
- package/dist/src/tasks/delivery-policy.js +1 -1
- package/dist/src/tools/durable-callbacks.d.ts +18 -1
- package/dist/src/tools/durable-callbacks.js +1 -1
- package/dist/src/tools/workflow-definition.d.ts +38 -4
- package/docs/agent-config.md +44 -8
- package/docs/channels/overview.mdx +2 -0
- package/docs/channels/slack.mdx +2 -0
- package/docs/concepts/execution-model-and-durability.mdx +20 -2
- package/docs/evals/running.mdx +3 -1
- package/docs/guides/dev-tui.md +11 -11
- package/docs/guides/dynamic-capabilities.md +36 -1
- package/docs/guides/instrumentation.md +3 -2
- package/docs/instructions.mdx +1 -1
- package/docs/reference/cli.md +1 -1
- package/docs/reference/telemetry.md +1 -1
- package/docs/reference/typescript-api.md +36 -35
- package/docs/subagents/index.mdx +1 -1
- package/docs/tools/overview.mdx +4 -2
- package/docs/tools/workflows.mdx +15 -10
- package/package.json +17 -17
- package/dist/src/compiled/_chunks/workflow/attribute-changes-DpruylJZ.js +0 -20
- package/dist/src/compiled/_chunks/workflow/dist-ChzQSWQA.js +0 -65
- package/dist/src/compiled/_chunks/workflow/dist-veFIAdWV.js +0 -40
- package/dist/src/compiled/_chunks/workflow/frames-DKxlMf3X.js +0 -3
- package/dist/src/compiled/_chunks/workflow/resume-hook-DWDi_wCN.js +0 -1
- package/dist/src/compiled/_chunks/workflow/run-vsAdI41O.js +0 -1
- package/dist/src/compiled/_chunks/workflow/sleep-BKxoNDRv.js +0 -1
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import * as _ai_sdk_provider_utils from '#compiled/@ai-sdk/provider-utils/index.js';
|
|
2
|
-
import { InferSchema, FetchFunction, WebSocketConstructor, WORKFLOW_SERIALIZE, WORKFLOW_DESERIALIZE } from '#compiled/@ai-sdk/provider-utils/index.js';
|
|
2
|
+
import { InferSchema, FetchFunction, WebSocketConstructor, WORKFLOW_SERIALIZE, WORKFLOW_DESERIALIZE, Resolvable } from '#compiled/@ai-sdk/provider-utils/index.js';
|
|
3
|
+
import { z } from '#compiled/zod/index.js';
|
|
3
4
|
import * as _ai_sdk_provider from '#compiled/@ai-sdk/provider/index.js';
|
|
4
|
-
import { ProviderV4,
|
|
5
|
+
import { ProviderV4, Experimental_BatchLanguageModelV4, ImageModelV4, EmbeddingModelV4, Experimental_VideoModelV4, Experimental_SpeechTranslationModelV4, SpeechModelV4, TranscriptionModelV4, FilesV4, LanguageModelV4, Experimental_RealtimeFactoryV4, Experimental_RealtimeModelV4, Experimental_RealtimeModelV4ClientSecretOptions, Experimental_RealtimeModelV4ClientSecretResult, Experimental_RealtimeModelV4ServerEvent, Experimental_RealtimeModelV4ClientEvent, Experimental_RealtimeModelV4SessionConfig, JSONObject, Experimental_TranscriptionModelV4StreamOptions, Experimental_SpeechTranslationModelV4StreamOptions } from '#compiled/@ai-sdk/provider/index.js';
|
|
5
6
|
|
|
6
7
|
declare const googleErrorDataSchema: _ai_sdk_provider_utils.LazySchema<{
|
|
7
8
|
error: {
|
|
8
9
|
code: number | null;
|
|
9
10
|
message: string;
|
|
10
11
|
status: string;
|
|
12
|
+
details?: unknown[] | null | undefined;
|
|
11
13
|
};
|
|
12
14
|
}>;
|
|
13
15
|
type GoogleErrorData = InferSchema<typeof googleErrorDataSchema>;
|
|
14
16
|
|
|
15
|
-
type GoogleModelId = 'gemini-2.0-flash' | 'gemini-2.0-flash-001' | 'gemini-2.0-flash-lite' | 'gemini-2.0-flash-lite-001' | 'gemini-2.5-pro' | 'gemini-2.5-flash' | 'gemini-2.5-flash-image' | 'gemini-2.5-flash-lite' | 'gemini-2.5-flash-preview-tts' | 'gemini-2.5-pro-preview-tts' | 'gemini-2.5-flash-native-audio-latest' | 'gemini-2.5-flash-native-audio-preview-09-2025' | 'gemini-2.5-flash-native-audio-preview-12-2025' | 'gemini-2.5-computer-use-preview-10-2025' | 'gemini-3-pro-preview' | 'gemini-3-pro-image-preview' | 'gemini-3-flash-preview' | 'gemini-3.1-pro-preview' | 'gemini-3.1-pro-preview-customtools' | 'gemini-3.1-flash-image-preview' | 'gemini-3.1-flash-lite-preview' | 'gemini-3.1-flash-tts-preview' | 'gemini-3.5-flash' | 'gemini-3.5-flash-lite' | 'gemini-3.6-flash' | 'gemini-pro-latest' | 'gemini-flash-latest' | 'gemini-flash-lite-latest' | 'deep-research-pro-preview-12-2025' | 'deep-research-max-preview-04-2026' | 'deep-research-preview-04-2026' | 'nano-banana-pro-preview' | 'aqa' | 'gemini-robotics-er-1.5-preview' | 'gemma-3-1b-it' | 'gemma-3-4b-it' | 'gemma-3n-e4b-it' | 'gemma-3n-e2b-it' | 'gemma-3-12b-it' | 'gemma-3-27b-it' | (string & {});
|
|
17
|
+
type GoogleModelId = 'gemini-2.0-flash' | 'gemini-2.0-flash-001' | 'gemini-2.0-flash-lite' | 'gemini-2.0-flash-lite-001' | 'gemini-2.5-pro' | 'gemini-2.5-flash' | 'gemini-2.5-flash-image' | 'gemini-2.5-flash-lite' | 'gemini-2.5-flash-preview-tts' | 'gemini-2.5-pro-preview-tts' | 'gemini-2.5-flash-native-audio-latest' | 'gemini-2.5-flash-native-audio-preview-09-2025' | 'gemini-2.5-flash-native-audio-preview-12-2025' | 'gemini-2.5-computer-use-preview-10-2025' | 'gemini-3-pro-preview' | 'gemini-3-pro-image-preview' | 'gemini-3-flash-preview' | 'gemini-3.1-pro-preview' | 'gemini-3.1-pro-preview-customtools' | 'gemini-3.1-flash-image-preview' | 'gemini-3.1-flash-lite-preview' | 'gemini-3.1-flash-tts-preview' | 'gemini-3.5-flash' | 'gemini-3.5-flash-lite' | 'gemini-3.6-flash' | 'gemini-3.7-flash' | 'gemini-3.8-flash' | 'gemini-pro-latest' | 'gemini-flash-latest' | 'gemini-flash-lite-latest' | 'deep-research-pro-preview-12-2025' | 'deep-research-max-preview-04-2026' | 'deep-research-preview-04-2026' | 'nano-banana-pro-preview' | 'aqa' | 'gemini-robotics-er-1.5-preview' | 'gemma-3-1b-it' | 'gemma-3-4b-it' | 'gemma-3n-e4b-it' | 'gemma-3n-e2b-it' | 'gemma-3-12b-it' | 'gemma-3-27b-it' | (string & {});
|
|
16
18
|
declare const googleLanguageModelOptions: _ai_sdk_provider_utils.LazySchema<{
|
|
17
19
|
responseModalities?: ("TEXT" | "IMAGE")[] | undefined;
|
|
18
20
|
thinkingConfig?: {
|
|
@@ -54,7 +56,8 @@ declare const googleLanguageModelOptions: _ai_sdk_provider_utils.LazySchema<{
|
|
|
54
56
|
type GoogleLanguageModelOptions = InferSchema<typeof googleLanguageModelOptions>;
|
|
55
57
|
|
|
56
58
|
declare const responseSchema: _ai_sdk_provider_utils.LazySchema<{
|
|
57
|
-
|
|
59
|
+
responseId?: string | null | undefined;
|
|
60
|
+
candidates?: {
|
|
58
61
|
content?: Record<string, never> | {
|
|
59
62
|
parts?: ({
|
|
60
63
|
functionCall: {
|
|
@@ -170,21 +173,34 @@ declare const responseSchema: _ai_sdk_provider_utils.LazySchema<{
|
|
|
170
173
|
urlRetrievalStatus: string;
|
|
171
174
|
}[] | null | undefined;
|
|
172
175
|
} | null | undefined;
|
|
173
|
-
}[];
|
|
174
|
-
responseId?: string | null | undefined;
|
|
176
|
+
}[] | null | undefined;
|
|
175
177
|
usageMetadata?: {
|
|
178
|
+
[x: string]: unknown;
|
|
176
179
|
cachedContentTokenCount?: number | null | undefined;
|
|
177
180
|
thoughtsTokenCount?: number | null | undefined;
|
|
178
181
|
promptTokenCount?: number | null | undefined;
|
|
179
182
|
candidatesTokenCount?: number | null | undefined;
|
|
183
|
+
toolUsePromptTokenCount?: number | null | undefined;
|
|
180
184
|
totalTokenCount?: number | null | undefined;
|
|
181
185
|
trafficType?: string | null | undefined;
|
|
182
186
|
serviceTier?: string | null | undefined;
|
|
183
187
|
promptTokensDetails?: {
|
|
188
|
+
[x: string]: unknown;
|
|
189
|
+
modality: string;
|
|
190
|
+
tokenCount: number;
|
|
191
|
+
}[] | null | undefined;
|
|
192
|
+
cacheTokensDetails?: {
|
|
193
|
+
[x: string]: unknown;
|
|
184
194
|
modality: string;
|
|
185
195
|
tokenCount: number;
|
|
186
196
|
}[] | null | undefined;
|
|
187
197
|
candidatesTokensDetails?: {
|
|
198
|
+
[x: string]: unknown;
|
|
199
|
+
modality: string;
|
|
200
|
+
tokenCount: number;
|
|
201
|
+
}[] | null | undefined;
|
|
202
|
+
toolUsePromptTokensDetails?: {
|
|
203
|
+
[x: string]: unknown;
|
|
188
204
|
modality: string;
|
|
189
205
|
tokenCount: number;
|
|
190
206
|
}[] | null | undefined;
|
|
@@ -201,9 +217,10 @@ declare const responseSchema: _ai_sdk_provider_utils.LazySchema<{
|
|
|
201
217
|
}[] | null | undefined;
|
|
202
218
|
} | null | undefined;
|
|
203
219
|
}>;
|
|
204
|
-
type
|
|
205
|
-
type
|
|
206
|
-
type
|
|
220
|
+
type CandidateSchema = NonNullable<InferSchema<typeof responseSchema>['candidates']>[number];
|
|
221
|
+
type GroundingMetadataSchema = NonNullable<CandidateSchema['groundingMetadata']>;
|
|
222
|
+
type UrlContextMetadataSchema = NonNullable<CandidateSchema['urlContextMetadata']>;
|
|
223
|
+
type SafetyRatingSchema = NonNullable<CandidateSchema['safetyRatings']>[number];
|
|
207
224
|
type PromptFeedbackSchema = NonNullable<InferSchema<typeof responseSchema>['promptFeedback']>;
|
|
208
225
|
type UsageMetadataSchema = NonNullable<InferSchema<typeof responseSchema>['usageMetadata']>;
|
|
209
226
|
|
|
@@ -222,22 +239,21 @@ interface GoogleProviderMetadata {
|
|
|
222
239
|
serviceTier: string | null;
|
|
223
240
|
}
|
|
224
241
|
|
|
225
|
-
declare const
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
}
|
|
240
|
-
type GoogleImageModelOptions = InferSchema<typeof googleImageModelOptionsSchema>;
|
|
242
|
+
declare const googleSearchToolArgsBaseSchema: z.ZodObject<{
|
|
243
|
+
searchTypes: z.ZodOptional<z.ZodObject<{
|
|
244
|
+
webSearch: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
245
|
+
imageSearch: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
246
|
+
}, z.core.$strip>>;
|
|
247
|
+
timeRangeFilter: z.ZodOptional<z.ZodObject<{
|
|
248
|
+
startTime: z.ZodString;
|
|
249
|
+
endTime: z.ZodString;
|
|
250
|
+
}, z.core.$strip>>;
|
|
251
|
+
}, z.core.$loose>;
|
|
252
|
+
type GoogleSearchToolArgs = z.infer<typeof googleSearchToolArgsBaseSchema>;
|
|
253
|
+
|
|
254
|
+
type GoogleImageModelOptions = Omit<GoogleLanguageModelOptions, 'responseModalities'> & {
|
|
255
|
+
googleSearch?: GoogleSearchToolArgs;
|
|
256
|
+
};
|
|
241
257
|
|
|
242
258
|
type GoogleEmbeddingModelId = 'gemini-embedding-001' | 'gemini-embedding-2' | 'gemini-embedding-2-preview' | (string & {});
|
|
243
259
|
declare const googleEmbeddingModelOptions: _ai_sdk_provider_utils.LazySchema<{
|
|
@@ -304,7 +320,26 @@ type GoogleFilesUploadOptions = {
|
|
|
304
320
|
* the two surfaces (`:generateContent` vs `/interactions`) are independent and
|
|
305
321
|
* may diverge over time.
|
|
306
322
|
*/
|
|
307
|
-
type GoogleInteractionsModelId = 'gemini-2.5-computer-use-preview-10-2025' | 'gemini-2.5-flash' | 'gemini-2.5-flash-image' | 'gemini-2.5-flash-lite' | 'gemini-2.5-flash-lite-preview-09-2025' | 'gemini-2.5-flash-native-audio-preview-12-2025' | 'gemini-2.5-flash-preview-09-2025' | 'gemini-2.5-flash-preview-tts' | 'gemini-2.5-pro' | 'gemini-2.5-pro-preview-tts' | 'gemini-3-flash-preview' | 'gemini-3-pro-image-preview' | 'gemini-3-pro-preview' | 'gemini-3.1-pro-preview' | 'gemini-3.1-flash-image-preview' | 'gemini-3.1-flash-lite-preview' | 'gemini-3.1-flash-tts-preview' | 'gemini-3.5-flash' | 'gemini-3.5-flash-lite' | 'gemini-3.6-flash' | 'lyria-3-clip-preview' | 'lyria-3-pro-preview' | (string & {});
|
|
323
|
+
type GoogleInteractionsModelId = 'gemini-2.5-computer-use-preview-10-2025' | 'gemini-2.5-flash' | 'gemini-2.5-flash-image' | 'gemini-2.5-flash-lite' | 'gemini-2.5-flash-lite-preview-09-2025' | 'gemini-2.5-flash-native-audio-preview-12-2025' | 'gemini-2.5-flash-preview-09-2025' | 'gemini-2.5-flash-preview-tts' | 'gemini-2.5-pro' | 'gemini-2.5-pro-preview-tts' | 'gemini-3-flash-preview' | 'gemini-3-pro-image-preview' | 'gemini-3-pro-preview' | 'gemini-3.1-pro-preview' | 'gemini-3.1-flash-image-preview' | 'gemini-3.1-flash-lite-preview' | 'gemini-3.1-flash-tts-preview' | 'gemini-3.5-flash' | 'gemini-3.5-flash-lite' | 'gemini-3.6-flash' | 'gemini-3.7-flash' | 'gemini-3.8-flash' | 'lyria-3-clip-preview' | 'lyria-3-pro-preview' | (string & {});
|
|
324
|
+
/**
|
|
325
|
+
* Provider options for an individual video file part sent to the Gemini
|
|
326
|
+
* Interactions API.
|
|
327
|
+
*/
|
|
328
|
+
type GoogleInteractionsVideoOptions = {
|
|
329
|
+
/**
|
|
330
|
+
* Controls how Gemini processes this video.
|
|
331
|
+
*
|
|
332
|
+
* Agentic processing dynamically explores the video timeline. Static
|
|
333
|
+
* processing samples frames at a fixed rate and optionally supports clipping
|
|
334
|
+
* and custom frame rates.
|
|
335
|
+
*/
|
|
336
|
+
processing?: 'agentic' | 'static' | {
|
|
337
|
+
type: 'static';
|
|
338
|
+
startOffset?: number;
|
|
339
|
+
endOffset?: number;
|
|
340
|
+
fps?: number;
|
|
341
|
+
};
|
|
342
|
+
};
|
|
308
343
|
/**
|
|
309
344
|
* Provider-options schema for `google.interactions(...)` calls. Read from the
|
|
310
345
|
* shared `providerOptions.google.*` namespace (per PRD); per-call options that
|
|
@@ -342,6 +377,14 @@ declare const googleInteractionsLanguageModelOptions: _ai_sdk_provider_utils.Laz
|
|
|
342
377
|
[x: string]: unknown;
|
|
343
378
|
type: "audio";
|
|
344
379
|
mimeType?: string | null | undefined;
|
|
380
|
+
} | {
|
|
381
|
+
[x: string]: unknown;
|
|
382
|
+
type: "video";
|
|
383
|
+
aspectRatio?: "9:16" | "16:9" | null | undefined;
|
|
384
|
+
resolution?: "360p" | "720p" | "1080p" | "4k" | null | undefined;
|
|
385
|
+
duration?: string | null | undefined;
|
|
386
|
+
delivery?: "uri" | "inline" | null | undefined;
|
|
387
|
+
gcsUri?: string | null | undefined;
|
|
345
388
|
})[] | null | undefined;
|
|
346
389
|
imageConfig?: {
|
|
347
390
|
aspectRatio?: "1:1" | "2:3" | "3:2" | "3:4" | "4:3" | "4:5" | "5:4" | "9:16" | "16:9" | "21:9" | "1:8" | "8:1" | "1:4" | "4:1" | null | undefined;
|
|
@@ -407,6 +450,16 @@ type GoogleInteractionsProviderMetadata = {
|
|
|
407
450
|
* reasoning / tool-call parts and round-tripped on input parts.
|
|
408
451
|
*/
|
|
409
452
|
signature?: string;
|
|
453
|
+
/**
|
|
454
|
+
* ID of an agentic video `processing_call` step. Present on
|
|
455
|
+
* `google.processing_call` custom parts.
|
|
456
|
+
*/
|
|
457
|
+
processingId?: string;
|
|
458
|
+
/**
|
|
459
|
+
* ID of the corresponding agentic video processing call. Present on
|
|
460
|
+
* `google.processing_result` custom parts.
|
|
461
|
+
*/
|
|
462
|
+
processingCallId?: string;
|
|
410
463
|
};
|
|
411
464
|
|
|
412
465
|
/**
|
|
@@ -503,14 +556,32 @@ declare const googleTools: {
|
|
|
503
556
|
}, {}>;
|
|
504
557
|
};
|
|
505
558
|
|
|
506
|
-
type GoogleImageModelId = '
|
|
559
|
+
type GoogleImageModelId = 'gemini-2.5-flash-image' | 'gemini-3-pro-image-preview' | 'gemini-3.1-flash-image-preview' | (string & {});
|
|
507
560
|
interface GoogleImageSettings {
|
|
508
561
|
/**
|
|
509
|
-
* Override the maximum number of images per call (default
|
|
562
|
+
* Override the maximum number of images per call (default 10)
|
|
510
563
|
*/
|
|
511
564
|
maxImagesPerCall?: number;
|
|
512
565
|
}
|
|
513
566
|
|
|
567
|
+
type GoogleTranscriptionModelId = 'gemini-3.5-transcribe' | 'gemini-3.5-transcribe-live' | (string & {});
|
|
568
|
+
/**
|
|
569
|
+
* Speech recognition options shared by unary (`gemini-3.5-transcribe`) and
|
|
570
|
+
* live (`gemini-3.5-transcribe-live`) transcription. Maps onto Google's
|
|
571
|
+
* `AudioTranscriptionConfig`.
|
|
572
|
+
*/
|
|
573
|
+
declare const googleTranscriptionModelOptions: z.ZodObject<{
|
|
574
|
+
languageCodes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
575
|
+
customVocabulary: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
576
|
+
wordTimestamp: z.ZodOptional<z.ZodBoolean>;
|
|
577
|
+
diarization: z.ZodOptional<z.ZodBoolean>;
|
|
578
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
579
|
+
SMART: "SMART";
|
|
580
|
+
VERBATIM: "VERBATIM";
|
|
581
|
+
}>>;
|
|
582
|
+
}, z.core.$strip>;
|
|
583
|
+
type GoogleTranscriptionModelOptions = z.infer<typeof googleTranscriptionModelOptions>;
|
|
584
|
+
|
|
514
585
|
type GoogleSpeechTranslationModelId = 'gemini-3.5-live-translate-preview' | (string & {});
|
|
515
586
|
declare const googleSpeechTranslationModelOptions: _ai_sdk_provider_utils.LazySchema<{
|
|
516
587
|
echoTargetLanguage?: boolean | undefined;
|
|
@@ -518,9 +589,9 @@ declare const googleSpeechTranslationModelOptions: _ai_sdk_provider_utils.LazySc
|
|
|
518
589
|
type GoogleSpeechTranslationModelOptions = InferSchema<typeof googleSpeechTranslationModelOptions>;
|
|
519
590
|
|
|
520
591
|
interface GoogleProvider extends ProviderV4 {
|
|
521
|
-
(modelId: GoogleModelId):
|
|
522
|
-
languageModel(modelId: GoogleModelId):
|
|
523
|
-
chat(modelId: GoogleModelId):
|
|
592
|
+
(modelId: GoogleModelId): Experimental_BatchLanguageModelV4;
|
|
593
|
+
languageModel(modelId: GoogleModelId): Experimental_BatchLanguageModelV4;
|
|
594
|
+
chat(modelId: GoogleModelId): Experimental_BatchLanguageModelV4;
|
|
524
595
|
/**
|
|
525
596
|
* Creates a model for image generation.
|
|
526
597
|
*/
|
|
@@ -528,7 +599,7 @@ interface GoogleProvider extends ProviderV4 {
|
|
|
528
599
|
/**
|
|
529
600
|
* @deprecated Use `chat()` instead.
|
|
530
601
|
*/
|
|
531
|
-
generativeAI(modelId: GoogleModelId):
|
|
602
|
+
generativeAI(modelId: GoogleModelId): Experimental_BatchLanguageModelV4;
|
|
532
603
|
/**
|
|
533
604
|
* Creates a model for text embeddings.
|
|
534
605
|
*/
|
|
@@ -569,6 +640,17 @@ interface GoogleProvider extends ProviderV4 {
|
|
|
569
640
|
* Creates a model for speech generation (text-to-speech).
|
|
570
641
|
*/
|
|
571
642
|
speechModel(modelId: GoogleSpeechModelId): SpeechModelV4;
|
|
643
|
+
/**
|
|
644
|
+
* Creates a model for transcription (speech-to-text). Unary models
|
|
645
|
+
* (e.g. `gemini-3.5-transcribe`) transcribe audio files; live models
|
|
646
|
+
* (e.g. `gemini-3.5-transcribe-live`) stream transcription over the
|
|
647
|
+
* Gemini Live API WebSocket via `experimental_streamTranscribe`.
|
|
648
|
+
*/
|
|
649
|
+
transcription(modelId: GoogleTranscriptionModelId): TranscriptionModelV4;
|
|
650
|
+
/**
|
|
651
|
+
* Creates a model for transcription (speech-to-text).
|
|
652
|
+
*/
|
|
653
|
+
transcriptionModel(modelId: GoogleTranscriptionModelId): TranscriptionModelV4;
|
|
572
654
|
files(): FilesV4;
|
|
573
655
|
/**
|
|
574
656
|
* Creates a language model targeting the Gemini Interactions API
|
|
@@ -678,6 +760,36 @@ type GoogleRealtimeModelOptions = {
|
|
|
678
760
|
};
|
|
679
761
|
};
|
|
680
762
|
|
|
763
|
+
interface GoogleTranscriptionModelConfig {
|
|
764
|
+
provider: string;
|
|
765
|
+
baseURL: string;
|
|
766
|
+
headers?: Resolvable<Record<string, string | undefined>>;
|
|
767
|
+
fetch?: FetchFunction;
|
|
768
|
+
webSocket?: WebSocketConstructor;
|
|
769
|
+
_internal?: {
|
|
770
|
+
currentDate?: () => Date;
|
|
771
|
+
finishGraceMs?: number;
|
|
772
|
+
};
|
|
773
|
+
}
|
|
774
|
+
declare class GoogleTranscriptionModel implements TranscriptionModelV4 {
|
|
775
|
+
readonly modelId: GoogleTranscriptionModelId;
|
|
776
|
+
private readonly config;
|
|
777
|
+
readonly specificationVersion = "v4";
|
|
778
|
+
static [WORKFLOW_SERIALIZE](model: GoogleTranscriptionModel): {
|
|
779
|
+
modelId: string;
|
|
780
|
+
config: JSONObject;
|
|
781
|
+
};
|
|
782
|
+
static [WORKFLOW_DESERIALIZE](options: {
|
|
783
|
+
modelId: GoogleTranscriptionModelId;
|
|
784
|
+
config: GoogleTranscriptionModelConfig;
|
|
785
|
+
}): GoogleTranscriptionModel;
|
|
786
|
+
get provider(): string;
|
|
787
|
+
constructor(modelId: GoogleTranscriptionModelId, config: GoogleTranscriptionModelConfig);
|
|
788
|
+
private parseOptions;
|
|
789
|
+
doGenerate(options: Parameters<TranscriptionModelV4['doGenerate']>[0]): Promise<Awaited<ReturnType<TranscriptionModelV4['doGenerate']>>>;
|
|
790
|
+
doStream(options: Experimental_TranscriptionModelV4StreamOptions): Promise<Awaited<ReturnType<NonNullable<TranscriptionModelV4['doStream']>>>>;
|
|
791
|
+
}
|
|
792
|
+
|
|
681
793
|
type GoogleSpeechTranslationModelConfig = {
|
|
682
794
|
provider: string;
|
|
683
795
|
baseURL: string;
|
|
@@ -707,4 +819,4 @@ declare class GoogleSpeechTranslationModel implements Experimental_SpeechTransla
|
|
|
707
819
|
|
|
708
820
|
declare const VERSION: string;
|
|
709
821
|
|
|
710
|
-
export { GoogleRealtimeModel as Experimental_GoogleRealtimeModel, type GoogleRealtimeModelConfig as Experimental_GoogleRealtimeModelConfig, type GoogleRealtimeModelId as Experimental_GoogleRealtimeModelId, type GoogleRealtimeModelOptions as Experimental_GoogleRealtimeModelOptions, GoogleSpeechTranslationModel as Experimental_GoogleSpeechTranslationModel, type GoogleSpeechTranslationModelConfig as Experimental_GoogleSpeechTranslationModelConfig, type GoogleSpeechTranslationModelId as Experimental_GoogleSpeechTranslationModelId, type GoogleSpeechTranslationModelOptions as Experimental_GoogleSpeechTranslationModelOptions, GoogleSpeechTranslationModel as Experimental_GoogleTranslationModel, type GoogleSpeechTranslationModelConfig as Experimental_GoogleTranslationModelConfig, type GoogleSpeechTranslationModelId as Experimental_GoogleTranslationModelId, type GoogleSpeechTranslationModelOptions as Experimental_GoogleTranslationModelOptions, type GoogleEmbeddingModelOptions, type GoogleErrorData, type GoogleFilesUploadOptions, type GoogleEmbeddingModelOptions as GoogleGenerativeAIEmbeddingProviderOptions, type GoogleImageModelOptions as GoogleGenerativeAIImageProviderOptions, type GoogleProvider as GoogleGenerativeAIProvider, type GoogleProviderMetadata as GoogleGenerativeAIProviderMetadata, type GoogleLanguageModelOptions as GoogleGenerativeAIProviderOptions, type GoogleProviderSettings as GoogleGenerativeAIProviderSettings, type GoogleVideoModelId as GoogleGenerativeAIVideoModelId, type GoogleVideoModelOptions as GoogleGenerativeAIVideoProviderOptions, type GoogleImageModelOptions, type GoogleInteractionsAgentName, type GoogleInteractionsModelId, type GoogleInteractionsProviderMetadata, type GoogleLanguageModelInteractionsOptions, type GoogleLanguageModelOptions, type GoogleProvider, type GoogleProviderMetadata, type GoogleProviderSettings, type GoogleSpeechModelId, type GoogleSpeechModelOptions, type GoogleVideoModelId, type GoogleVideoModelOptions, VERSION, createGoogle, createGoogle as createGoogleGenerativeAI, google };
|
|
822
|
+
export { GoogleRealtimeModel as Experimental_GoogleRealtimeModel, type GoogleRealtimeModelConfig as Experimental_GoogleRealtimeModelConfig, type GoogleRealtimeModelId as Experimental_GoogleRealtimeModelId, type GoogleRealtimeModelOptions as Experimental_GoogleRealtimeModelOptions, GoogleSpeechTranslationModel as Experimental_GoogleSpeechTranslationModel, type GoogleSpeechTranslationModelConfig as Experimental_GoogleSpeechTranslationModelConfig, type GoogleSpeechTranslationModelId as Experimental_GoogleSpeechTranslationModelId, type GoogleSpeechTranslationModelOptions as Experimental_GoogleSpeechTranslationModelOptions, GoogleSpeechTranslationModel as Experimental_GoogleTranslationModel, type GoogleSpeechTranslationModelConfig as Experimental_GoogleTranslationModelConfig, type GoogleSpeechTranslationModelId as Experimental_GoogleTranslationModelId, type GoogleSpeechTranslationModelOptions as Experimental_GoogleTranslationModelOptions, type GoogleEmbeddingModelOptions, type GoogleErrorData, type GoogleFilesUploadOptions, type GoogleEmbeddingModelOptions as GoogleGenerativeAIEmbeddingProviderOptions, type GoogleImageModelOptions as GoogleGenerativeAIImageProviderOptions, type GoogleProvider as GoogleGenerativeAIProvider, type GoogleProviderMetadata as GoogleGenerativeAIProviderMetadata, type GoogleLanguageModelOptions as GoogleGenerativeAIProviderOptions, type GoogleProviderSettings as GoogleGenerativeAIProviderSettings, type GoogleVideoModelId as GoogleGenerativeAIVideoModelId, type GoogleVideoModelOptions as GoogleGenerativeAIVideoProviderOptions, type GoogleImageModelOptions, type GoogleInteractionsAgentName, type GoogleInteractionsModelId, type GoogleInteractionsProviderMetadata, type GoogleInteractionsVideoOptions, type GoogleLanguageModelInteractionsOptions, type GoogleLanguageModelOptions, type GoogleProvider, type GoogleProviderMetadata, type GoogleProviderSettings, type GoogleSpeechModelId, type GoogleSpeechModelOptions, GoogleTranscriptionModel, type GoogleTranscriptionModelId, type GoogleTranscriptionModelOptions, type GoogleVideoModelId, type GoogleVideoModelOptions, VERSION, createGoogle, createGoogle as createGoogleGenerativeAI, google };
|