eve 0.71.3 → 0.72.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 +30 -0
- package/README.md +22 -6
- package/dist/src/acp/adapter.js +1 -1
- package/dist/src/ai/decide.d.ts +7 -0
- package/dist/src/ai/decide.js +1 -0
- package/dist/src/chunks/{use-eve-agent-CFCaYnrI.js → use-eve-agent-C1GYGCtb.js} +698 -388
- package/dist/src/chunks/{use-eve-agent-DcDhXNv1.js → use-eve-agent-hZJ7CB8t.js} +698 -388
- package/dist/src/cli/commands/integration-setup.js +1 -1
- package/dist/src/cli/commands/registry.js +1 -1
- package/dist/src/cli/commands/trace-detail.d.ts +1 -1
- package/dist/src/cli/commands/trace-detail.js +1 -1
- package/dist/src/cli/dev/tui/runner.js +1 -1
- package/dist/src/cli/dev/tui/setup-flow.d.ts +1 -0
- package/dist/src/cli/dev/tui/setup-panel.d.ts +1 -0
- package/dist/src/cli/dev/tui/setup-panel.js +2 -1
- package/dist/src/cli/dev/tui/traces/trace-conversation.d.ts +2 -2
- package/dist/src/cli/dev/tui/traces/trace-conversation.js +2 -2
- package/dist/src/cli/dev/tui/transcript-parts.d.ts +2 -1
- package/dist/src/cli/dev/tui/transcript-parts.js +1 -1
- package/dist/src/cli/dev/tui/transcript.js +1 -1
- package/dist/src/cli/dev/tui/tui-prompter.js +1 -1
- package/dist/src/client/conversation-projection.d.ts +4 -0
- package/dist/src/client/conversation-projection.js +1 -0
- package/dist/src/client/conversation-reducer.js +1 -1
- package/dist/src/client/conversation-state.d.ts +5 -26
- package/dist/src/client/conversation-state.js +1 -1
- package/dist/src/client/index.d.ts +1 -0
- package/dist/src/client/index.js +1 -1
- package/dist/src/client/message-action-parts.d.ts +1 -11
- package/dist/src/client/message-action-parts.js +1 -1
- package/dist/src/client/message-reducer.d.ts +3 -1
- package/dist/src/client/message-reducer.js +1 -1
- package/dist/src/client/session-utils.js +1 -1
- package/dist/src/client/session.js +1 -1
- package/dist/src/client/tool-call-state.d.ts +23 -0
- package/dist/src/client/tool-call-state.js +1 -0
- package/dist/src/client/tool-part-state.d.ts +7 -0
- package/dist/src/client/tool-part-state.js +1 -0
- package/dist/src/compiled/.vendor-stamp.json +10 -10
- package/dist/src/compiled/@ai-sdk/anthropic/index.d.ts +1453 -1358
- package/dist/src/compiled/@ai-sdk/anthropic/index.js +1 -2
- package/dist/src/compiled/@ai-sdk/code-mode/index.d.ts +172 -163
- package/dist/src/compiled/@ai-sdk/code-mode/index.js +15 -20
- package/dist/src/compiled/@ai-sdk/google/index.d.ts +772 -733
- package/dist/src/compiled/@ai-sdk/google/index.js +6 -8
- package/dist/src/compiled/@ai-sdk/mcp/index.d.ts +887 -790
- package/dist/src/compiled/@ai-sdk/mcp/index.js +1 -1
- package/dist/src/compiled/@ai-sdk/openai/index.d.ts +1722 -1691
- package/dist/src/compiled/@ai-sdk/openai/index.js +3 -14
- package/dist/src/compiled/@ai-sdk/otel/index.d.ts +216 -159
- package/dist/src/compiled/@ai-sdk/otel/index.js +3 -3
- package/dist/src/compiled/@ai-sdk/provider/index.d.ts +7542 -7271
- package/dist/src/compiled/@ai-sdk/provider/index.js +1 -3
- package/dist/src/compiled/@ai-sdk/provider-utils/index.d.ts +1799 -1600
- package/dist/src/compiled/@eve/catalog/index.js +1 -1
- package/dist/src/compiled/_chunks/workflow/dist-DXLdlucM.js +15 -0
- package/dist/src/compiled/_chunks/workflow/experimental-decision-BrfWf6-n.js +3 -0
- package/dist/src/compiler/extension-compatibility.d.ts +36 -20
- package/dist/src/compiler/extension-compatibility.js +1 -1
- package/dist/src/compiler/manifest.js +1 -1
- package/dist/src/context/build-dynamic-tools.js +1 -1
- package/dist/src/context/dynamic-tool-lifecycle.js +1 -1
- package/dist/src/context/dynamic-tool-metadata.d.ts +1 -0
- package/dist/src/context/providers/session.js +1 -1
- package/dist/src/evals/define-eval.d.ts +1 -1
- package/dist/src/evals/judge.d.ts +1 -1
- package/dist/src/evals/judge.js +2 -2
- package/dist/src/evals/types.d.ts +8 -8
- package/dist/src/execution/cancel-descendant-turns-step.d.ts +1 -0
- package/dist/src/execution/cancel-descendant-turns-step.js +1 -1
- package/dist/src/execution/cancelled-model-call-batch.js +1 -1
- package/dist/src/execution/coordination-dispatch-shared.js +1 -1
- package/dist/src/execution/coordination-dispatch-step.js +1 -1
- package/dist/src/execution/durable-session-read.d.ts +5 -0
- package/dist/src/execution/durable-session-read.js +1 -0
- package/dist/src/execution/durable-session-store.d.ts +4 -10
- package/dist/src/execution/durable-session-store.js +1 -1
- package/dist/src/execution/dynamic-connections.d.ts +3 -3
- package/dist/src/execution/dynamic-connections.js +1 -1
- package/dist/src/execution/dynamic-workflow/tool.js +1 -1
- package/dist/src/execution/legacy-session/interrupt-step.js +1 -1
- package/dist/src/execution/legacy-session/snapshot.d.ts +3 -0
- package/dist/src/execution/legacy-session/snapshot.js +1 -1
- package/dist/src/execution/model-call-batching.js +1 -1
- package/dist/src/execution/node-step.d.ts +2 -0
- package/dist/src/execution/node-step.js +1 -1
- package/dist/src/execution/proxied-deliver-step.js +1 -1
- package/dist/src/execution/publish-session-events.d.ts +7 -2
- package/dist/src/execution/publish-session-events.js +1 -1
- package/dist/src/execution/session/active-turn.js +1 -1
- package/dist/src/execution/session/answer-caller.js +1 -1
- package/dist/src/execution/session/checkpoint-migrations.js +1 -1
- package/dist/src/execution/session/finalization.js +1 -1
- package/dist/src/execution/session/handoff-steps.d.ts +3 -1
- package/dist/src/execution/session/handoff-steps.js +1 -1
- package/dist/src/execution/session/handoff.d.ts +1 -1
- package/dist/src/execution/session/handoff.js +1 -1
- package/dist/src/execution/session/pending-turn-state.d.ts +8 -3
- package/dist/src/execution/session/pending-turn-state.js +1 -1
- package/dist/src/execution/session/task-tool-tracing-step.d.ts +5 -0
- package/dist/src/execution/session/task-tool-tracing-step.js +1 -0
- package/dist/src/execution/session/turn-step-result.js +1 -1
- package/dist/src/execution/session/turn-step.js +1 -1
- package/dist/src/execution/session/turn-waiting-step.js +1 -1
- package/dist/src/execution/session/turn.d.ts +1 -0
- package/dist/src/execution/session/turn.js +1 -1
- package/dist/src/execution/settle-cancelled-turn-step.d.ts +4 -6
- package/dist/src/execution/settle-cancelled-turn-step.js +1 -1
- package/dist/src/execution/tasks/start.d.ts +3 -3
- package/dist/src/execution/tasks/start.js +1 -1
- package/dist/src/execution/tasks/steps.d.ts +1 -1
- package/dist/src/execution/tasks/steps.js +1 -1
- package/dist/src/execution/terminal-session-completion-step.d.ts +5 -1
- package/dist/src/execution/terminal-session-completion-step.js +1 -1
- package/dist/src/execution/terminal-session-failure-step.js +1 -1
- package/dist/src/execution/tools/agent-router-workflow.js +1 -1
- package/dist/src/execution/tools/connection-tools.js +1 -1
- package/dist/src/execution/tools/workflow/harness-definition.js +1 -1
- package/dist/src/execution/tools/workflow/step.js +1 -1
- package/dist/src/execution/tools/workflow/withdraw-step.d.ts +7 -9
- package/dist/src/execution/tools/workflow/withdraw-step.js +1 -1
- package/dist/src/execution/workflow-trace-context.d.ts +2 -2
- package/dist/src/harness/authorization.d.ts +4 -2
- package/dist/src/harness/authorization.js +1 -1
- package/dist/src/harness/{compaction.js → compaction/engine.js} +1 -1
- package/dist/src/harness/compaction/step.d.ts +46 -0
- package/dist/src/harness/compaction/step.js +1 -0
- package/dist/src/harness/coordination.d.ts +32 -68
- package/dist/src/harness/coordination.js +1 -1
- package/dist/src/harness/current-messages.d.ts +1 -3
- package/dist/src/harness/current-messages.js +1 -1
- package/dist/src/harness/emission.d.ts +4 -52
- package/dist/src/harness/emission.js +1 -1
- package/dist/src/harness/execute-tool.d.ts +1 -0
- package/dist/src/harness/final-output.d.ts +5 -0
- package/dist/src/harness/final-output.js +1 -1
- package/dist/src/harness/hitl/approvals.d.ts +115 -0
- package/dist/src/harness/hitl/approvals.js +1 -0
- package/dist/src/harness/hitl/approved-call-callers.d.ts +14 -0
- package/dist/src/harness/hitl/approved-call-callers.js +1 -0
- package/dist/src/harness/hitl/approved-calls.d.ts +37 -0
- package/dist/src/harness/hitl/approved-calls.js +1 -0
- package/dist/src/harness/hitl/budget.d.ts +21 -0
- package/dist/src/harness/hitl/budget.js +1 -0
- package/dist/src/harness/{approval-candidates.d.ts → hitl/candidates.d.ts} +9 -18
- package/dist/src/harness/hitl/candidates.js +1 -0
- package/dist/src/harness/hitl/coordinator.js +1 -0
- package/dist/src/harness/hitl/delivery.d.ts +37 -0
- package/dist/src/harness/hitl/delivery.js +1 -0
- package/dist/src/harness/hitl/index.d.ts +49 -0
- package/dist/src/harness/hitl/index.js +1 -0
- package/dist/src/harness/hitl/intake.d.ts +67 -0
- package/dist/src/harness/hitl/intake.js +1 -0
- package/dist/src/harness/{stale-input-responses.d.ts → hitl/stale-responses.d.ts} +5 -3
- package/dist/src/harness/hitl/stale-responses.js +3 -0
- package/dist/src/harness/inline-tool-authorization.d.ts +4 -0
- package/dist/src/harness/inline-tool-authorization.js +1 -1
- package/dist/src/harness/input-extraction.d.ts +1 -10
- package/dist/src/harness/input-extraction.js +1 -1
- package/dist/src/harness/input-request-resolution.d.ts +1 -5
- package/dist/src/harness/input-request-resolution.js +1 -1
- package/dist/src/harness/model-call/call.d.ts +78 -0
- package/dist/src/harness/model-call/call.js +1 -0
- package/dist/src/harness/{model-call-error.d.ts → model-call/errors.d.ts} +1 -1
- package/dist/src/harness/model-call/failure.d.ts +52 -0
- package/dist/src/harness/model-call/failure.js +1 -0
- package/dist/src/harness/model-call/model.d.ts +18 -0
- package/dist/src/harness/model-call/model.js +1 -0
- package/dist/src/harness/model-call/recovery.d.ts +52 -0
- package/dist/src/harness/model-call/recovery.js +1 -0
- package/dist/src/harness/model-call/request.d.ts +30 -0
- package/dist/src/harness/model-call/request.js +3 -0
- package/dist/src/harness/model-call/response.d.ts +39 -0
- package/dist/src/harness/model-call/response.js +1 -0
- package/dist/src/harness/model-call/retry.d.ts +11 -0
- package/dist/src/harness/model-call/retry.js +1 -0
- package/dist/src/harness/model-call/run.d.ts +38 -0
- package/dist/src/harness/model-call/run.js +1 -0
- package/dist/src/harness/model-call/tools.d.ts +48 -0
- package/dist/src/harness/model-call/tools.js +1 -0
- package/dist/src/harness/model-call/usage.d.ts +23 -0
- package/dist/src/harness/model-call/usage.js +1 -0
- package/dist/src/harness/nested-actions.d.ts +2 -2
- package/dist/src/harness/provider-tools.d.ts +2 -2
- package/dist/src/harness/provider-tools.js +1 -1
- package/dist/src/harness/proxy-input-requests.d.ts +4 -12
- package/dist/src/harness/proxy-input-requests.js +1 -1
- package/dist/src/harness/session-machine/commit.d.ts +28 -0
- package/dist/src/harness/session-machine/commit.js +1 -0
- package/dist/src/harness/session-machine/current.d.ts +29 -0
- package/dist/src/harness/session-machine/current.js +1 -0
- package/dist/src/harness/session-machine/events.d.ts +6 -0
- package/dist/src/harness/session-machine/events.js +1 -0
- package/dist/src/harness/session-machine/resolver-events.d.ts +12 -0
- package/dist/src/harness/session-machine/resolver-events.js +1 -0
- package/dist/src/harness/session-machine/state.d.ts +47 -0
- package/dist/src/harness/session-machine/state.js +1 -0
- package/dist/src/harness/session-machine/transitions.d.ts +188 -0
- package/dist/src/harness/session-machine/transitions.js +1 -0
- package/dist/src/harness/session-machine/view.d.ts +58 -0
- package/dist/src/harness/session-machine/view.js +1 -0
- package/dist/src/harness/step/after-model.d.ts +7 -0
- package/dist/src/harness/step/after-model.js +1 -0
- package/dist/src/harness/step/context.d.ts +59 -0
- package/dist/src/harness/step/context.js +1 -0
- package/dist/src/harness/step/intake.d.ts +34 -0
- package/dist/src/harness/step/intake.js +1 -0
- package/dist/src/harness/step/prompt.d.ts +37 -0
- package/dist/src/harness/step/prompt.js +1 -0
- package/dist/src/harness/step-hooks.d.ts +8 -13
- package/dist/src/harness/step-hooks.js +1 -1
- package/dist/src/harness/tool-loop.d.ts +7 -22
- package/dist/src/harness/tool-loop.js +1 -3
- package/dist/src/harness/tools.d.ts +13 -0
- package/dist/src/harness/tools.js +1 -1
- package/dist/src/harness/turn-tag-state.d.ts +1 -1
- package/dist/src/harness/types.d.ts +6 -0
- package/dist/src/instrumentation/ai-sdk-hook-bridge.d.ts +1 -1
- package/dist/src/instrumentation/ai-sdk-hook-bridge.js +1 -1
- package/dist/src/instrumentation/content.js +1 -1
- package/dist/src/instrumentation/dispatch.js +1 -1
- package/dist/src/instrumentation/lifecycle.d.ts +28 -56
- package/dist/src/instrumentation/native-events.d.ts +2 -1
- package/dist/src/instrumentation/native-events.js +1 -1
- package/dist/src/instrumentation/provider.d.ts +1 -1
- package/dist/src/instrumentation/runtime-context.d.ts +2 -3
- package/dist/src/instrumentation/runtime-context.js +1 -1
- package/dist/src/instrumentation/runtime.d.ts +11 -1
- package/dist/src/instrumentation/runtime.js +1 -1
- package/dist/src/instrumentation/state.d.ts +6 -1
- package/dist/src/instrumentation/state.js +1 -1
- package/dist/src/internal/application/package.js +1 -1
- package/dist/src/internal/attachments/limited-read.d.ts +16 -0
- package/dist/src/internal/attachments/limited-read.js +1 -0
- package/dist/src/internal/authored-definition/schema-backed.d.ts +2 -1
- package/dist/src/internal/authored-definition/schema-backed.js +1 -1
- package/dist/src/internal/mcp/published-tools.d.ts +13 -0
- package/dist/src/internal/mcp/published-tools.js +1 -0
- package/dist/src/internal/mcp/request-trace-context.d.ts +12 -0
- package/dist/src/internal/mcp/request-trace-context.js +1 -0
- package/dist/src/internal/mcp/streamable-http-server.d.ts +7 -3
- package/dist/src/internal/mcp/streamable-http-server.js +1 -1
- package/dist/src/internal/model-auth/transport.d.ts +3 -3
- package/dist/src/internal/model-auth/transport.js +1 -1
- package/dist/src/models/auto.d.ts +5 -5
- package/dist/src/models/auto.js +2 -2
- package/dist/src/protocol/message.d.ts +7 -0
- package/dist/src/protocol/message.js +1 -1
- package/dist/src/protocol/session-projection.d.ts +159 -0
- package/dist/src/protocol/session-projection.js +1 -0
- package/dist/src/public/ai/index.d.ts +1 -1
- package/dist/src/public/ai/index.js +1 -1
- package/dist/src/public/channels/chat-sdk/attachment-refs.d.ts +15 -0
- package/dist/src/public/channels/chat-sdk/attachment-refs.js +1 -0
- package/dist/src/public/channels/chat-sdk/chatSdkChannel.js +2 -2
- package/dist/src/public/channels/chat-sdk/messageToUserContent.d.ts +11 -5
- package/dist/src/public/channels/chat-sdk/messageToUserContent.js +1 -1
- package/dist/src/public/channels/discord/attachments.d.ts +15 -0
- package/dist/src/public/channels/discord/attachments.js +1 -0
- package/dist/src/public/channels/discord/discordChannel.js +1 -1
- package/dist/src/public/channels/discord/inbound.d.ts +13 -0
- package/dist/src/public/channels/discord/inbound.js +1 -1
- package/dist/src/public/channels/linear/inbound-uploads.d.ts +21 -0
- package/dist/src/public/channels/linear/inbound-uploads.js +1 -0
- package/dist/src/public/channels/linear/linearChannel.js +1 -1
- package/dist/src/public/channels/linq/inboundContent.d.ts +7 -1
- package/dist/src/public/channels/linq/inboundContent.js +1 -1
- package/dist/src/public/channels/linq/linqChannel.js +1 -1
- package/dist/src/public/channels/mcp.d.ts +17 -2
- package/dist/src/public/channels/mcp.js +1 -1
- package/dist/src/public/channels/photon/attachments.d.ts +21 -0
- package/dist/src/public/channels/photon/attachments.js +1 -0
- package/dist/src/public/channels/photon/photonIMessageChannel.js +1 -1
- package/dist/src/public/channels/slack/attachments.d.ts +3 -1
- package/dist/src/public/channels/slack/attachments.js +1 -1
- package/dist/src/public/channels/slack/slackChannel.js +1 -1
- package/dist/src/public/channels/teams/attachments.d.ts +4 -4
- package/dist/src/public/channels/teams/attachments.js +1 -1
- package/dist/src/public/channels/telegram/attachments.js +1 -1
- package/dist/src/public/channels/twilio/api.d.ts +7 -0
- package/dist/src/public/channels/twilio/api.js +1 -1
- package/dist/src/public/channels/twilio/inbound.d.ts +7 -0
- package/dist/src/public/channels/twilio/inbound.js +2 -2
- package/dist/src/public/channels/twilio/twilioChannel.js +1 -1
- package/dist/src/public/definitions/connections/mcp.d.ts +1 -1
- package/dist/src/public/definitions/connections/openapi.d.ts +1 -1
- package/dist/src/react/index.d.ts +1 -0
- package/dist/src/react/index.js +1 -1
- package/dist/src/runtime/agent/mock-model-adapter.js +2 -2
- package/dist/src/runtime/resolve-tool.js +1 -1
- package/dist/src/setup/boxes/resolve-provisioning.d.ts +2 -0
- package/dist/src/setup/boxes/resolve-provisioning.js +1 -1
- package/dist/src/setup/cli/prompt-ui.d.ts +3 -0
- package/dist/src/setup/cli/prompt-ui.js +3 -1
- package/dist/src/setup/cli/select-component.d.ts +1 -0
- package/dist/src/setup/cli/select-component.js +1 -1
- package/dist/src/setup/flows/ensure-vercel-project.d.ts +2 -0
- package/dist/src/setup/flows/ensure-vercel-project.js +1 -1
- package/dist/src/setup/integrations/discord/api.js +1 -1
- package/dist/src/setup/integrations/web/auth-options.d.ts +4 -0
- package/dist/src/setup/integrations/web/auth-options.js +1 -0
- package/dist/src/setup/integrations/web/auth-scaffold.d.ts +7 -0
- package/dist/src/setup/integrations/web/auth-scaffold.js +1 -0
- package/dist/src/setup/integrations/web/provision-auth.d.ts +3 -0
- package/dist/src/setup/integrations/web/provision-auth.js +1 -0
- package/dist/src/setup/integrations/web/setup.d.ts +11 -6
- package/dist/src/setup/integrations/web/setup.js +3 -3
- package/dist/src/setup/prompter.d.ts +2 -0
- package/dist/src/setup/prompter.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/create/web-template.d.ts +1 -1
- package/dist/src/setup/scaffold/create/web-template.js +1 -0
- package/dist/src/setup/scaffold/update/web-options.js +1 -1
- package/dist/src/setup/vercel-project-api.d.ts +9 -0
- package/dist/src/setup/vercel-project-api.js +1 -1
- package/dist/src/setup/vercel-project.d.ts +4 -2
- package/dist/src/setup/vercel-project.js +0 -0
- package/dist/src/shared/web-search.d.ts +1 -1
- package/dist/src/subagents/adapter.js +1 -1
- package/dist/src/subagents/event-proxy-step.js +1 -1
- package/dist/src/subagents/hitl-proxy.d.ts +4 -28
- package/dist/src/subagents/hitl-proxy.js +1 -1
- package/dist/src/svelte/index.d.ts +2 -0
- package/dist/src/svelte/index.js +39 -2
- package/dist/src/svelte/use-eve-agent.js +1 -1
- package/dist/src/tools/approval/policies.d.ts +5 -5
- package/dist/src/tools/approval/policies.js +1 -1
- package/dist/src/tools/framework/agent.js +1 -1
- package/dist/src/tools/provided/agent-router.js +1 -1
- package/dist/src/tools/provided/ask-question-workflow.js +1 -1
- package/dist/src/tools/provided/ask-question.js +2 -2
- package/dist/src/tools/provided/bash.js +1 -1
- package/dist/src/tools/provided/framework-tool.d.ts +3 -0
- package/dist/src/tools/provided/framework-tool.js +1 -0
- package/dist/src/tools/provided/glob.js +2 -2
- package/dist/src/tools/provided/grep.js +2 -2
- package/dist/src/tools/provided/load-skill.js +1 -1
- package/dist/src/tools/provided/no-reply.js +1 -1
- package/dist/src/tools/provided/read-file.js +2 -2
- package/dist/src/tools/provided/sleep-workflow.js +1 -1
- package/dist/src/tools/provided/sleep.js +1 -1
- package/dist/src/tools/provided/task-cancel.js +1 -1
- package/dist/src/tools/provided/task-wait.js +1 -1
- package/dist/src/tools/provided/web-fetch.js +2 -2
- package/dist/src/tools/provided/web-search.js +1 -1
- package/dist/src/tools/provided/workflow.js +1 -1
- package/dist/src/tools/provided/write-file.js +2 -2
- package/dist/src/tracing/agent-approval-instrumentation.d.ts +2 -2
- package/dist/src/tracing/agent-approval-instrumentation.js +1 -1
- package/dist/src/tracing/agent-otel-provider.js +2 -2
- package/dist/src/tracing/agent-otel-usage.d.ts +1 -1
- package/dist/src/tracing/agent-otel-usage.js +1 -1
- package/dist/src/tracing/agent-span-contract.d.ts +0 -1
- package/dist/src/tracing/agent-span-contract.js +1 -1
- package/dist/src/tracing/agent-tool-instrumentation.d.ts +16 -6
- package/dist/src/tracing/agent-tool-instrumentation.js +1 -1
- package/dist/src/tracing/agent-trace-context-codec.js +1 -1
- package/dist/src/tracing/agent-trace-state.d.ts +7 -3
- package/dist/src/tracing/invoke-tool-span.js +1 -1
- package/dist/src/tracing/local-trace-analysis.js +1 -1
- package/dist/src/vue/index.d.ts +2 -0
- package/dist/src/vue/index.js +39 -2
- package/dist/src/vue/use-eve-agent.js +1 -1
- package/docs/agent-config.md +2 -2
- package/docs/channels/chat-sdk.mdx +3 -1
- package/docs/channels/custom.mdx +2 -0
- package/docs/channels/discord.mdx +5 -4
- package/docs/channels/eve.mdx +65 -0
- package/docs/channels/linear.mdx +1 -1
- package/docs/channels/linq.mdx +2 -0
- package/docs/channels/mcp.mdx +39 -1
- package/docs/channels/photon.mdx +5 -0
- package/docs/channels/teams.mdx +4 -7
- package/docs/channels/twilio.mdx +1 -1
- package/docs/concepts/built-in-tools.md +12 -0
- package/docs/concepts/sessions-runs-and-streaming.md +3 -3
- package/docs/connections/overview.mdx +1 -1
- package/docs/dynamic-configuration/meta.json +1 -1
- package/docs/evals/judge.mdx +16 -16
- package/docs/evals/overview.mdx +1 -1
- package/docs/guides/{evaluate.md → decide.md} +35 -35
- package/docs/guides/dynamic-capabilities.md +1 -1
- package/docs/guides/frontend/overview.mdx +3 -1
- package/docs/guides/hooks.md +1 -1
- package/docs/guides/instrumentation/instrumentation.mdx +23 -22
- package/docs/guides/instrumentation/otel.mdx +13 -2
- package/docs/reference/cli.md +3 -3
- package/docs/reference/typescript-api.md +4 -2
- package/docs/tools/human-in-the-loop.md +6 -4
- package/docs/tools/workflows.mdx +4 -4
- package/package.json +11 -11
- package/dist/src/ai/evaluate.d.ts +0 -7
- package/dist/src/ai/evaluate.js +0 -1
- package/dist/src/client/message-task-parts.d.ts +0 -8
- package/dist/src/client/message-task-parts.js +0 -1
- package/dist/src/compiled/_chunks/workflow/dist-C3ZE62yI.js +0 -25
- package/dist/src/compiled/_chunks/workflow/experimental-evaluation-Dm32egEG.js +0 -5
- package/dist/src/harness/active-turn-id.d.ts +0 -11
- package/dist/src/harness/active-turn-id.js +0 -1
- package/dist/src/harness/approval-candidates.js +0 -1
- package/dist/src/harness/approval-delivery-coordinator.js +0 -1
- package/dist/src/harness/approved-call-callers.d.ts +0 -11
- package/dist/src/harness/approved-call-callers.js +0 -1
- package/dist/src/harness/cancelled-turn-emission.d.ts +0 -12
- package/dist/src/harness/cancelled-turn-emission.js +0 -1
- package/dist/src/harness/emission-state.d.ts +0 -36
- package/dist/src/harness/emission-state.js +0 -1
- package/dist/src/harness/held-requests.d.ts +0 -18
- package/dist/src/harness/held-requests.js +0 -1
- package/dist/src/harness/hitl/approval-input-requests.d.ts +0 -27
- package/dist/src/harness/hitl/approval-input-requests.js +0 -1
- package/dist/src/harness/hitl/pending-input-resolution.d.ts +0 -54
- package/dist/src/harness/hitl/pending-input-resolution.js +0 -1
- package/dist/src/harness/hitl/session-limit-input-requests.d.ts +0 -12
- package/dist/src/harness/hitl/session-limit-input-requests.js +0 -1
- package/dist/src/harness/input-requests.d.ts +0 -37
- package/dist/src/harness/input-requests.js +0 -1
- package/dist/src/harness/pending-input-batches.d.ts +0 -81
- package/dist/src/harness/pending-input-batches.js +0 -1
- package/dist/src/harness/session-limit-enforcement.d.ts +0 -45
- package/dist/src/harness/session-limit-enforcement.js +0 -1
- package/dist/src/harness/stale-input-responses.js +0 -3
- package/dist/src/harness/workflow-dispatch.d.ts +0 -30
- package/dist/src/harness/workflow-dispatch.js +0 -1
- package/dist/src/public/channels/linear/inbound-images.d.ts +0 -19
- package/dist/src/public/channels/linear/inbound-images.js +0 -1
- package/dist/src/tracing/agent-action-instrumentation.d.ts +0 -26
- package/dist/src/tracing/agent-action-instrumentation.js +0 -1
- /package/dist/src/harness/{compaction.d.ts → compaction/engine.d.ts} +0 -0
- /package/dist/src/harness/{compaction-prompt.d.ts → compaction/prompt.d.ts} +0 -0
- /package/dist/src/harness/{compaction-prompt.js → compaction/prompt.js} +0 -0
- /package/dist/src/harness/{session-limit-continuation.d.ts → hitl/budget-request.d.ts} +0 -0
- /package/dist/src/harness/{session-limit-continuation.js → hitl/budget-request.js} +0 -0
- /package/dist/src/harness/{approval-delivery-coordinator.d.ts → hitl/coordinator.d.ts} +0 -0
- /package/dist/src/harness/{model-call-error.js → model-call/errors.js} +0 -0
|
@@ -1,221 +1,221 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { z } from
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
details?: unknown[] | null | undefined;
|
|
13
|
-
};
|
|
1
|
+
import { FetchFunction, InferSchema, Resolvable, WORKFLOW_DESERIALIZE, WORKFLOW_SERIALIZE, WebSocketConstructor, createToolNameMapping } from "#compiled/@ai-sdk/provider-utils/index.js";
|
|
2
|
+
import { EmbeddingModelV4, Experimental_BatchV4, Experimental_DecisionModelV4, Experimental_RealtimeFactoryV4, Experimental_RealtimeModelV4, Experimental_RealtimeModelV4ClientEvent, Experimental_RealtimeModelV4ClientSecretOptions, Experimental_RealtimeModelV4ClientSecretResult, Experimental_RealtimeModelV4ServerEvent, Experimental_RealtimeModelV4SessionConfig, Experimental_SpeechTranslationModelV4, Experimental_SpeechTranslationModelV4StreamOptions, Experimental_TranscriptionModelV4StreamOptions, Experimental_VideoModelV4, FilesV4, ImageModelV4, JSONObject, LanguageModelV4, ProviderV4, SpeechModelV4, TranscriptionModelV4 } from "#compiled/@ai-sdk/provider/index.js";
|
|
3
|
+
import { z } from "#compiled/zod/index.js";
|
|
4
|
+
//#region src/google-error.d.ts
|
|
5
|
+
declare const googleErrorDataSchema: import("@ai-sdk/provider-utils").LazySchema<{
|
|
6
|
+
error: {
|
|
7
|
+
code: number | null;
|
|
8
|
+
message: string;
|
|
9
|
+
status: string;
|
|
10
|
+
details?: unknown[] | null | undefined;
|
|
11
|
+
};
|
|
14
12
|
}>;
|
|
15
13
|
type GoogleErrorData = InferSchema<typeof googleErrorDataSchema>;
|
|
16
|
-
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/google-language-model-options.d.ts
|
|
17
16
|
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 & {});
|
|
18
|
-
declare const googleLanguageModelOptions:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
} | undefined;
|
|
17
|
+
declare const googleLanguageModelOptions: import("@ai-sdk/provider-utils").LazySchema<{
|
|
18
|
+
responseModalities?: ("TEXT" | "IMAGE")[] | undefined;
|
|
19
|
+
thinkingConfig?: {
|
|
20
|
+
thinkingBudget?: number | undefined;
|
|
21
|
+
includeThoughts?: boolean | undefined;
|
|
22
|
+
thinkingLevel?: "minimal" | "low" | "medium" | "high" | undefined;
|
|
23
|
+
} | undefined;
|
|
24
|
+
cachedContent?: string | undefined;
|
|
25
|
+
structuredOutputs?: boolean | undefined;
|
|
26
|
+
safetySettings?: {
|
|
27
|
+
category: "HARM_CATEGORY_UNSPECIFIED" | "HARM_CATEGORY_HATE_SPEECH" | "HARM_CATEGORY_DANGEROUS_CONTENT" | "HARM_CATEGORY_HARASSMENT" | "HARM_CATEGORY_SEXUALLY_EXPLICIT" | "HARM_CATEGORY_CIVIC_INTEGRITY";
|
|
28
|
+
threshold: "HARM_BLOCK_THRESHOLD_UNSPECIFIED" | "BLOCK_LOW_AND_ABOVE" | "BLOCK_MEDIUM_AND_ABOVE" | "BLOCK_ONLY_HIGH" | "BLOCK_NONE" | "OFF";
|
|
29
|
+
}[] | undefined;
|
|
30
|
+
threshold?: "HARM_BLOCK_THRESHOLD_UNSPECIFIED" | "BLOCK_LOW_AND_ABOVE" | "BLOCK_MEDIUM_AND_ABOVE" | "BLOCK_ONLY_HIGH" | "BLOCK_NONE" | "OFF" | undefined;
|
|
31
|
+
audioTimestamp?: boolean | undefined;
|
|
32
|
+
labels?: Record<string, string> | undefined;
|
|
33
|
+
mediaResolution?: "MEDIA_RESOLUTION_UNSPECIFIED" | "MEDIA_RESOLUTION_LOW" | "MEDIA_RESOLUTION_MEDIUM" | "MEDIA_RESOLUTION_HIGH" | undefined;
|
|
34
|
+
imageConfig?: {
|
|
35
|
+
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" | undefined;
|
|
36
|
+
imageSize?: "1K" | "2K" | "4K" | "512" | undefined;
|
|
37
|
+
personGeneration?: "PERSON_GENERATION_UNSPECIFIED" | "ALLOW_ALL" | "ALLOW_ADULT" | "ALLOW_NONE" | undefined;
|
|
38
|
+
prominentPeople?: "PROMINENT_PEOPLE_UNSPECIFIED" | "ALLOW_PROMINENT_PEOPLE" | "BLOCK_PROMINENT_PEOPLE" | undefined;
|
|
39
|
+
imageOutputOptions?: {
|
|
40
|
+
mimeType?: "image/jpeg" | "image/png" | undefined;
|
|
41
|
+
compressionQuality?: number | undefined;
|
|
44
42
|
} | undefined;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
43
|
+
} | undefined;
|
|
44
|
+
retrievalConfig?: {
|
|
45
|
+
latLng?: {
|
|
46
|
+
latitude: number;
|
|
47
|
+
longitude: number;
|
|
50
48
|
} | undefined;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
49
|
+
} | undefined;
|
|
50
|
+
streamFunctionCallArguments?: boolean | undefined;
|
|
51
|
+
serviceTier?: "standard" | "flex" | "priority" | undefined;
|
|
52
|
+
sharedRequestType?: "standard" | "flex" | "priority" | undefined;
|
|
53
|
+
requestType?: "shared" | undefined;
|
|
55
54
|
}>;
|
|
56
55
|
type GoogleLanguageModelOptions = InferSchema<typeof googleLanguageModelOptions>;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
codeExecutionResult?: {
|
|
105
|
-
outcome: string;
|
|
106
|
-
output?: string | null | undefined;
|
|
107
|
-
} | null | undefined;
|
|
108
|
-
text?: string | null | undefined;
|
|
109
|
-
thought?: boolean | null | undefined;
|
|
110
|
-
thoughtSignature?: string | null | undefined;
|
|
111
|
-
})[] | null | undefined;
|
|
112
|
-
} | null | undefined;
|
|
113
|
-
finishReason?: string | null | undefined;
|
|
114
|
-
finishMessage?: string | null | undefined;
|
|
115
|
-
safetyRatings?: {
|
|
116
|
-
category?: string | null | undefined;
|
|
117
|
-
probability?: string | null | undefined;
|
|
118
|
-
probabilityScore?: number | null | undefined;
|
|
119
|
-
severity?: string | null | undefined;
|
|
120
|
-
severityScore?: number | null | undefined;
|
|
121
|
-
blocked?: boolean | null | undefined;
|
|
122
|
-
}[] | null | undefined;
|
|
123
|
-
groundingMetadata?: {
|
|
124
|
-
webSearchQueries?: string[] | null | undefined;
|
|
125
|
-
imageSearchQueries?: string[] | null | undefined;
|
|
126
|
-
retrievalQueries?: string[] | null | undefined;
|
|
127
|
-
searchEntryPoint?: {
|
|
128
|
-
renderedContent: string;
|
|
129
|
-
} | null | undefined;
|
|
130
|
-
groundingChunks?: {
|
|
131
|
-
web?: {
|
|
132
|
-
uri: string;
|
|
133
|
-
title?: string | null | undefined;
|
|
134
|
-
} | null | undefined;
|
|
135
|
-
image?: {
|
|
136
|
-
sourceUri: string;
|
|
137
|
-
imageUri: string;
|
|
138
|
-
title?: string | null | undefined;
|
|
139
|
-
domain?: string | null | undefined;
|
|
140
|
-
} | null | undefined;
|
|
141
|
-
retrievedContext?: {
|
|
142
|
-
uri?: string | null | undefined;
|
|
143
|
-
title?: string | null | undefined;
|
|
144
|
-
text?: string | null | undefined;
|
|
145
|
-
fileSearchStore?: string | null | undefined;
|
|
146
|
-
} | null | undefined;
|
|
147
|
-
maps?: {
|
|
148
|
-
uri?: string | null | undefined;
|
|
149
|
-
title?: string | null | undefined;
|
|
150
|
-
text?: string | null | undefined;
|
|
151
|
-
placeId?: string | null | undefined;
|
|
152
|
-
} | null | undefined;
|
|
153
|
-
}[] | null | undefined;
|
|
154
|
-
groundingSupports?: {
|
|
155
|
-
segment?: {
|
|
156
|
-
startIndex?: number | null | undefined;
|
|
157
|
-
endIndex?: number | null | undefined;
|
|
158
|
-
text?: string | null | undefined;
|
|
159
|
-
} | null | undefined;
|
|
160
|
-
segment_text?: string | null | undefined;
|
|
161
|
-
groundingChunkIndices?: number[] | null | undefined;
|
|
162
|
-
supportChunkIndices?: number[] | null | undefined;
|
|
163
|
-
confidenceScores?: number[] | null | undefined;
|
|
164
|
-
confidenceScore?: number[] | null | undefined;
|
|
165
|
-
}[] | null | undefined;
|
|
166
|
-
retrievalMetadata?: Record<string, never> | {
|
|
167
|
-
webDynamicRetrievalScore: number;
|
|
168
|
-
} | null | undefined;
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region src/google-language-model.d.ts
|
|
58
|
+
declare const responseSchema: import("@ai-sdk/provider-utils").LazySchema<{
|
|
59
|
+
responseId?: string | null | undefined;
|
|
60
|
+
candidates?: {
|
|
61
|
+
content?: Record<string, never> | {
|
|
62
|
+
parts?: ({
|
|
63
|
+
functionCall: {
|
|
64
|
+
id?: string | null | undefined;
|
|
65
|
+
name?: string | null | undefined;
|
|
66
|
+
args?: unknown;
|
|
67
|
+
partialArgs?: {
|
|
68
|
+
jsonPath: string;
|
|
69
|
+
stringValue?: string | null | undefined;
|
|
70
|
+
numberValue?: number | null | undefined;
|
|
71
|
+
boolValue?: boolean | null | undefined;
|
|
72
|
+
nullValue?: unknown;
|
|
73
|
+
willContinue?: boolean | null | undefined;
|
|
74
|
+
}[] | null | undefined;
|
|
75
|
+
willContinue?: boolean | null | undefined;
|
|
76
|
+
};
|
|
77
|
+
thoughtSignature?: string | null | undefined;
|
|
78
|
+
} | {
|
|
79
|
+
inlineData: {
|
|
80
|
+
mimeType: string;
|
|
81
|
+
data: string;
|
|
82
|
+
};
|
|
83
|
+
thought?: boolean | null | undefined;
|
|
84
|
+
thoughtSignature?: string | null | undefined;
|
|
85
|
+
} | {
|
|
86
|
+
toolCall: {
|
|
87
|
+
toolType: string;
|
|
88
|
+
id: string;
|
|
89
|
+
args?: unknown;
|
|
90
|
+
};
|
|
91
|
+
thoughtSignature?: string | null | undefined;
|
|
92
|
+
} | {
|
|
93
|
+
toolResponse: {
|
|
94
|
+
toolType: string;
|
|
95
|
+
id: string;
|
|
96
|
+
response?: unknown;
|
|
97
|
+
};
|
|
98
|
+
thoughtSignature?: string | null | undefined;
|
|
99
|
+
} | {
|
|
100
|
+
executableCode?: {
|
|
101
|
+
language: string;
|
|
102
|
+
code: string;
|
|
169
103
|
} | null | undefined;
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
urlRetrievalStatus: string;
|
|
174
|
-
}[] | null | undefined;
|
|
104
|
+
codeExecutionResult?: {
|
|
105
|
+
outcome: string;
|
|
106
|
+
output?: string | null | undefined;
|
|
175
107
|
} | null | undefined;
|
|
108
|
+
text?: string | null | undefined;
|
|
109
|
+
thought?: boolean | null | undefined;
|
|
110
|
+
thoughtSignature?: string | null | undefined;
|
|
111
|
+
})[] | null | undefined;
|
|
112
|
+
} | null | undefined;
|
|
113
|
+
finishReason?: string | null | undefined;
|
|
114
|
+
finishMessage?: string | null | undefined;
|
|
115
|
+
safetyRatings?: {
|
|
116
|
+
category?: string | null | undefined;
|
|
117
|
+
probability?: string | null | undefined;
|
|
118
|
+
probabilityScore?: number | null | undefined;
|
|
119
|
+
severity?: string | null | undefined;
|
|
120
|
+
severityScore?: number | null | undefined;
|
|
121
|
+
blocked?: boolean | null | undefined;
|
|
176
122
|
}[] | null | undefined;
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
}
|
|
123
|
+
groundingMetadata?: {
|
|
124
|
+
webSearchQueries?: string[] | null | undefined;
|
|
125
|
+
imageSearchQueries?: string[] | null | undefined;
|
|
126
|
+
retrievalQueries?: string[] | null | undefined;
|
|
127
|
+
searchEntryPoint?: {
|
|
128
|
+
renderedContent: string;
|
|
129
|
+
} | null | undefined;
|
|
130
|
+
groundingChunks?: {
|
|
131
|
+
web?: {
|
|
132
|
+
uri: string;
|
|
133
|
+
title?: string | null | undefined;
|
|
134
|
+
} | null | undefined;
|
|
135
|
+
image?: {
|
|
136
|
+
sourceUri: string;
|
|
137
|
+
imageUri: string;
|
|
138
|
+
title?: string | null | undefined;
|
|
139
|
+
domain?: string | null | undefined;
|
|
140
|
+
} | null | undefined;
|
|
141
|
+
retrievedContext?: {
|
|
142
|
+
uri?: string | null | undefined;
|
|
143
|
+
title?: string | null | undefined;
|
|
144
|
+
text?: string | null | undefined;
|
|
145
|
+
fileSearchStore?: string | null | undefined;
|
|
146
|
+
} | null | undefined;
|
|
147
|
+
maps?: {
|
|
148
|
+
uri?: string | null | undefined;
|
|
149
|
+
title?: string | null | undefined;
|
|
150
|
+
text?: string | null | undefined;
|
|
151
|
+
placeId?: string | null | undefined;
|
|
152
|
+
} | null | undefined;
|
|
153
|
+
}[] | null | undefined;
|
|
154
|
+
groundingSupports?: {
|
|
155
|
+
segment?: {
|
|
156
|
+
startIndex?: number | null | undefined;
|
|
157
|
+
endIndex?: number | null | undefined;
|
|
158
|
+
text?: string | null | undefined;
|
|
159
|
+
} | null | undefined;
|
|
160
|
+
segment_text?: string | null | undefined;
|
|
161
|
+
groundingChunkIndices?: number[] | null | undefined;
|
|
162
|
+
supportChunkIndices?: number[] | null | undefined;
|
|
163
|
+
confidenceScores?: number[] | null | undefined;
|
|
164
|
+
confidenceScore?: number[] | null | undefined;
|
|
165
|
+
}[] | null | undefined;
|
|
166
|
+
retrievalMetadata?: Record<string, never> | {
|
|
167
|
+
webDynamicRetrievalScore: number;
|
|
168
|
+
} | null | undefined;
|
|
207
169
|
} | null | undefined;
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
probabilityScore?: number | null | undefined;
|
|
214
|
-
severity?: string | null | undefined;
|
|
215
|
-
severityScore?: number | null | undefined;
|
|
216
|
-
blocked?: boolean | null | undefined;
|
|
217
|
-
}[] | null | undefined;
|
|
170
|
+
urlContextMetadata?: {
|
|
171
|
+
urlMetadata?: {
|
|
172
|
+
retrievedUrl: string;
|
|
173
|
+
urlRetrievalStatus: string;
|
|
174
|
+
}[] | null | undefined;
|
|
218
175
|
} | null | undefined;
|
|
176
|
+
}[] | null | undefined;
|
|
177
|
+
usageMetadata?: {
|
|
178
|
+
[x: string]: unknown;
|
|
179
|
+
cachedContentTokenCount?: number | null | undefined;
|
|
180
|
+
thoughtsTokenCount?: number | null | undefined;
|
|
181
|
+
promptTokenCount?: number | null | undefined;
|
|
182
|
+
candidatesTokenCount?: number | null | undefined;
|
|
183
|
+
toolUsePromptTokenCount?: number | null | undefined;
|
|
184
|
+
totalTokenCount?: number | null | undefined;
|
|
185
|
+
trafficType?: string | null | undefined;
|
|
186
|
+
serviceTier?: string | null | undefined;
|
|
187
|
+
promptTokensDetails?: {
|
|
188
|
+
[x: string]: unknown;
|
|
189
|
+
modality: string;
|
|
190
|
+
tokenCount: number;
|
|
191
|
+
}[] | null | undefined;
|
|
192
|
+
cacheTokensDetails?: {
|
|
193
|
+
[x: string]: unknown;
|
|
194
|
+
modality: string;
|
|
195
|
+
tokenCount: number;
|
|
196
|
+
}[] | null | undefined;
|
|
197
|
+
candidatesTokensDetails?: {
|
|
198
|
+
[x: string]: unknown;
|
|
199
|
+
modality: string;
|
|
200
|
+
tokenCount: number;
|
|
201
|
+
}[] | null | undefined;
|
|
202
|
+
toolUsePromptTokensDetails?: {
|
|
203
|
+
[x: string]: unknown;
|
|
204
|
+
modality: string;
|
|
205
|
+
tokenCount: number;
|
|
206
|
+
}[] | null | undefined;
|
|
207
|
+
} | null | undefined;
|
|
208
|
+
promptFeedback?: {
|
|
209
|
+
blockReason?: string | null | undefined;
|
|
210
|
+
safetyRatings?: {
|
|
211
|
+
category?: string | null | undefined;
|
|
212
|
+
probability?: string | null | undefined;
|
|
213
|
+
probabilityScore?: number | null | undefined;
|
|
214
|
+
severity?: string | null | undefined;
|
|
215
|
+
severityScore?: number | null | undefined;
|
|
216
|
+
blocked?: boolean | null | undefined;
|
|
217
|
+
}[] | null | undefined;
|
|
218
|
+
} | null | undefined;
|
|
219
219
|
}>;
|
|
220
220
|
type CandidateSchema = NonNullable<InferSchema<typeof responseSchema>['candidates']>[number];
|
|
221
221
|
type GroundingMetadataSchema = NonNullable<CandidateSchema['groundingMetadata']>;
|
|
@@ -223,94 +223,116 @@ type UrlContextMetadataSchema = NonNullable<CandidateSchema['urlContextMetadata'
|
|
|
223
223
|
type SafetyRatingSchema = NonNullable<CandidateSchema['safetyRatings']>[number];
|
|
224
224
|
type PromptFeedbackSchema = NonNullable<InferSchema<typeof responseSchema>['promptFeedback']>;
|
|
225
225
|
type UsageMetadataSchema = NonNullable<InferSchema<typeof responseSchema>['usageMetadata']>;
|
|
226
|
-
|
|
226
|
+
//#endregion
|
|
227
|
+
//#region src/google-prompt.d.ts
|
|
227
228
|
type GoogleGroundingMetadata = GroundingMetadataSchema;
|
|
228
229
|
type GoogleUrlContextMetadata = UrlContextMetadataSchema;
|
|
229
230
|
type GoogleSafetyRating = SafetyRatingSchema;
|
|
230
231
|
type GooglePromptFeedback = PromptFeedbackSchema;
|
|
231
232
|
type GoogleUsageMetadata = UsageMetadataSchema;
|
|
232
233
|
interface GoogleProviderMetadata {
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
234
|
+
promptFeedback: GooglePromptFeedback | null;
|
|
235
|
+
groundingMetadata: GoogleGroundingMetadata | null;
|
|
236
|
+
urlContextMetadata: GoogleUrlContextMetadata | null;
|
|
237
|
+
safetyRatings: GoogleSafetyRating[] | null;
|
|
238
|
+
usageMetadata: GoogleUsageMetadata | null;
|
|
239
|
+
finishReason?: string | null;
|
|
240
|
+
finishMessage: string | null;
|
|
241
|
+
serviceTier: string | null;
|
|
240
242
|
}
|
|
241
|
-
|
|
243
|
+
//#endregion
|
|
244
|
+
//#region src/tool/google-search.d.ts
|
|
242
245
|
declare const googleSearchToolArgsBaseSchema: z.ZodObject<{
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
246
|
+
searchTypes: z.ZodOptional<z.ZodObject<{
|
|
247
|
+
webSearch: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
248
|
+
imageSearch: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
249
|
+
}, z.core.$strip>>;
|
|
250
|
+
timeRangeFilter: z.ZodOptional<z.ZodObject<{
|
|
251
|
+
startTime: z.ZodString;
|
|
252
|
+
endTime: z.ZodString;
|
|
253
|
+
}, z.core.$strip>>;
|
|
251
254
|
}, z.core.$loose>;
|
|
252
255
|
type GoogleSearchToolArgs = z.infer<typeof googleSearchToolArgsBaseSchema>;
|
|
253
|
-
|
|
256
|
+
//#endregion
|
|
257
|
+
//#region src/google-image-model-options.d.ts
|
|
254
258
|
type GoogleImageModelOptions = Omit<GoogleLanguageModelOptions, 'responseModalities'> & {
|
|
255
|
-
|
|
259
|
+
googleSearch?: GoogleSearchToolArgs;
|
|
256
260
|
};
|
|
257
|
-
|
|
261
|
+
//#endregion
|
|
262
|
+
//#region src/google-embedding-model-options.d.ts
|
|
258
263
|
type GoogleEmbeddingModelId = 'gemini-embedding-001' | 'gemini-embedding-2' | 'gemini-embedding-2-preview' | (string & {});
|
|
259
|
-
declare const googleEmbeddingModelOptions:
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
264
|
+
declare const googleEmbeddingModelOptions: import("@ai-sdk/provider-utils").LazySchema<{
|
|
265
|
+
outputDimensionality?: number | undefined;
|
|
266
|
+
taskType?: "SEMANTIC_SIMILARITY" | "CLASSIFICATION" | "CLUSTERING" | "RETRIEVAL_DOCUMENT" | "RETRIEVAL_QUERY" | "QUESTION_ANSWERING" | "FACT_VERIFICATION" | "CODE_RETRIEVAL_QUERY" | undefined;
|
|
267
|
+
content?: (({
|
|
268
|
+
text: string;
|
|
269
|
+
} | {
|
|
270
|
+
inlineData: {
|
|
271
|
+
mimeType: string;
|
|
272
|
+
data: string;
|
|
273
|
+
};
|
|
274
|
+
} | {
|
|
275
|
+
fileData: {
|
|
276
|
+
fileUri: string;
|
|
277
|
+
mimeType: string;
|
|
278
|
+
};
|
|
279
|
+
})[] | null)[] | undefined;
|
|
275
280
|
}>;
|
|
276
281
|
type GoogleEmbeddingModelOptions = InferSchema<typeof googleEmbeddingModelOptions>;
|
|
277
|
-
|
|
282
|
+
//#endregion
|
|
283
|
+
//#region src/google-video-model-options.d.ts
|
|
278
284
|
type GoogleVideoModelOptions = {
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
285
|
+
pollIntervalMs?: number | null;
|
|
286
|
+
pollTimeoutMs?: number | null;
|
|
287
|
+
personGeneration?: 'dont_allow' | 'allow_adult' | 'allow_all' | null;
|
|
288
|
+
negativePrompt?: string | null;
|
|
289
|
+
referenceImages?: Array<{
|
|
290
|
+
bytesBase64Encoded?: string;
|
|
291
|
+
gcsUri?: string;
|
|
292
|
+
}> | null;
|
|
293
|
+
[key: string]: unknown;
|
|
288
294
|
};
|
|
289
|
-
|
|
295
|
+
//#endregion
|
|
296
|
+
//#region src/google-video-settings.d.ts
|
|
290
297
|
type GoogleVideoModelId = 'veo-3.1-fast-generate-preview' | 'veo-3.1-generate-preview' | 'veo-3.1-generate' | 'veo-3.1-lite-generate-preview' | 'veo-3.0-generate-001' | 'veo-3.0-fast-generate-001' | 'veo-2.0-generate-001' | (string & {});
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
298
|
+
//#endregion
|
|
299
|
+
//#region src/google-speech-model-options.d.ts
|
|
300
|
+
type GoogleSpeechModelId = 'gemini-2.5-flash-preview-tts' | 'gemini-2.5-pro-preview-tts' | 'gemini-3.1-flash-tts-preview' | 'gemini-3.8-flash-tts' | 'gemini-3.8-flash-lite-tts' | (string & {});
|
|
301
|
+
declare const googleSpeechProviderOptionsSchema: import("@ai-sdk/provider-utils").LazySchema<{
|
|
302
|
+
speechMetadata?: {
|
|
303
|
+
speaker?: string | undefined;
|
|
304
|
+
style?: string | undefined;
|
|
305
|
+
} | undefined;
|
|
306
|
+
turns?: {
|
|
307
|
+
text: string;
|
|
308
|
+
speechMetadata?: {
|
|
309
|
+
speaker?: string | undefined;
|
|
310
|
+
style?: string | undefined;
|
|
303
311
|
} | undefined;
|
|
312
|
+
}[] | undefined;
|
|
313
|
+
multiSpeakerVoiceConfig?: {
|
|
314
|
+
speakerVoiceConfigs: {
|
|
315
|
+
speaker: string;
|
|
316
|
+
voiceConfig: {
|
|
317
|
+
prebuiltVoiceConfig: {
|
|
318
|
+
voiceName: string;
|
|
319
|
+
};
|
|
320
|
+
voice?: undefined;
|
|
321
|
+
};
|
|
322
|
+
}[];
|
|
323
|
+
} | undefined;
|
|
304
324
|
}>;
|
|
305
325
|
type GoogleSpeechModelOptions = InferSchema<typeof googleSpeechProviderOptionsSchema>;
|
|
306
|
-
|
|
326
|
+
//#endregion
|
|
327
|
+
//#region src/google-files.d.ts
|
|
307
328
|
type GoogleFilesUploadOptions = {
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
329
|
+
displayName?: string | null;
|
|
330
|
+
pollIntervalMs?: number | null;
|
|
331
|
+
pollTimeoutMs?: number | null;
|
|
332
|
+
[key: string]: unknown;
|
|
312
333
|
};
|
|
313
|
-
|
|
334
|
+
//#endregion
|
|
335
|
+
//#region src/interactions/google-interactions-language-model-options.d.ts
|
|
314
336
|
/**
|
|
315
337
|
* Type-only union of Gemini model IDs that the Interactions API accepts via
|
|
316
338
|
* `model:`. Mirrors `Model` from `googleapis/js-genai`
|
|
@@ -326,19 +348,19 @@ type GoogleInteractionsModelId = 'gemini-2.5-computer-use-preview-10-2025' | 'ge
|
|
|
326
348
|
* Interactions API.
|
|
327
349
|
*/
|
|
328
350
|
type GoogleInteractionsVideoOptions = {
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
351
|
+
/**
|
|
352
|
+
* Controls how Gemini processes this video.
|
|
353
|
+
*
|
|
354
|
+
* Agentic processing dynamically explores the video timeline. Static
|
|
355
|
+
* processing samples frames at a fixed rate and optionally supports clipping
|
|
356
|
+
* and custom frame rates.
|
|
357
|
+
*/
|
|
358
|
+
processing?: 'agentic' | 'static' | {
|
|
359
|
+
type: 'static';
|
|
360
|
+
startOffset?: number;
|
|
361
|
+
endOffset?: number;
|
|
362
|
+
fps?: number;
|
|
363
|
+
};
|
|
342
364
|
};
|
|
343
365
|
/**
|
|
344
366
|
* Provider-options schema for `google.interactions(...)` calls. Read from the
|
|
@@ -347,121 +369,123 @@ type GoogleInteractionsVideoOptions = {
|
|
|
347
369
|
*
|
|
348
370
|
* All fields are `.nullish()` per the existing google provider convention.
|
|
349
371
|
*/
|
|
350
|
-
declare const googleInteractionsLanguageModelOptions:
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
thinkingSummaries?: "auto" | "none" | null | undefined;
|
|
360
|
-
visualization?: "auto" | "off" | null | undefined;
|
|
361
|
-
collaborativePlanning?: boolean | null | undefined;
|
|
362
|
-
} | null | undefined;
|
|
363
|
-
thinkingLevel?: "minimal" | "low" | "medium" | "high" | null | undefined;
|
|
372
|
+
declare const googleInteractionsLanguageModelOptions: import("@ai-sdk/provider-utils").LazySchema<{
|
|
373
|
+
previousInteractionId?: string | null | undefined;
|
|
374
|
+
store?: boolean | null | undefined;
|
|
375
|
+
agent?: string | null | undefined;
|
|
376
|
+
agentConfig?: {
|
|
377
|
+
[x: string]: unknown;
|
|
378
|
+
type: "dynamic";
|
|
379
|
+
} | {
|
|
380
|
+
type: "deep-research";
|
|
364
381
|
thinkingSummaries?: "auto" | "none" | null | undefined;
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
382
|
+
visualization?: "auto" | "off" | null | undefined;
|
|
383
|
+
collaborativePlanning?: boolean | null | undefined;
|
|
384
|
+
} | null | undefined;
|
|
385
|
+
thinkingLevel?: "minimal" | "low" | "medium" | "high" | null | undefined;
|
|
386
|
+
thinkingSummaries?: "auto" | "none" | null | undefined;
|
|
387
|
+
responseFormat?: ({
|
|
388
|
+
[x: string]: unknown;
|
|
389
|
+
type: "text";
|
|
390
|
+
mimeType?: string | null | undefined;
|
|
391
|
+
schema?: unknown;
|
|
392
|
+
} | {
|
|
393
|
+
[x: string]: unknown;
|
|
394
|
+
type: "image";
|
|
395
|
+
mimeType?: string | null | undefined;
|
|
396
|
+
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;
|
|
397
|
+
imageSize?: "1K" | "2K" | "4K" | "512" | null | undefined;
|
|
398
|
+
} | {
|
|
399
|
+
[x: string]: unknown;
|
|
400
|
+
type: "audio";
|
|
401
|
+
mimeType?: string | null | undefined;
|
|
402
|
+
} | {
|
|
403
|
+
[x: string]: unknown;
|
|
404
|
+
type: "video";
|
|
405
|
+
aspectRatio?: "9:16" | "16:9" | null | undefined;
|
|
406
|
+
resolution?: "360p" | "720p" | "1080p" | "4k" | null | undefined;
|
|
407
|
+
duration?: string | null | undefined;
|
|
408
|
+
delivery?: "inline" | "uri" | null | undefined;
|
|
409
|
+
gcsUri?: string | null | undefined;
|
|
410
|
+
})[] | null | undefined;
|
|
411
|
+
imageConfig?: {
|
|
412
|
+
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;
|
|
413
|
+
imageSize?: "1K" | "2K" | "4K" | "512" | null | undefined;
|
|
414
|
+
} | null | undefined;
|
|
415
|
+
mediaResolution?: "low" | "medium" | "high" | "ultra_high" | null | undefined;
|
|
416
|
+
responseModalities?: ("text" | "image" | "audio" | "video" | "document")[] | null | undefined;
|
|
417
|
+
serviceTier?: "standard" | "flex" | "priority" | null | undefined;
|
|
418
|
+
systemInstruction?: string | null | undefined;
|
|
419
|
+
signature?: string | null | undefined;
|
|
420
|
+
interactionId?: string | null | undefined;
|
|
421
|
+
pollingTimeoutMs?: number | null | undefined;
|
|
422
|
+
background?: boolean | null | undefined;
|
|
423
|
+
environment?: string | {
|
|
424
|
+
type: "remote";
|
|
425
|
+
sources?: ({
|
|
426
|
+
type: "gcs";
|
|
427
|
+
source: string;
|
|
428
|
+
target?: string | null | undefined;
|
|
376
429
|
} | {
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
430
|
+
type: "repository";
|
|
431
|
+
source: string;
|
|
432
|
+
target?: string | null | undefined;
|
|
380
433
|
} | {
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
resolution?: "360p" | "720p" | "1080p" | "4k" | null | undefined;
|
|
385
|
-
duration?: string | null | undefined;
|
|
386
|
-
delivery?: "uri" | "inline" | null | undefined;
|
|
387
|
-
gcsUri?: string | null | undefined;
|
|
434
|
+
type: "inline";
|
|
435
|
+
content: string;
|
|
436
|
+
target: string;
|
|
388
437
|
})[] | null | undefined;
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
responseModalities?: ("text" | "image" | "document" | "audio" | "video")[] | null | undefined;
|
|
395
|
-
serviceTier?: "standard" | "flex" | "priority" | null | undefined;
|
|
396
|
-
systemInstruction?: string | null | undefined;
|
|
397
|
-
signature?: string | null | undefined;
|
|
398
|
-
interactionId?: string | null | undefined;
|
|
399
|
-
pollingTimeoutMs?: number | null | undefined;
|
|
400
|
-
background?: boolean | null | undefined;
|
|
401
|
-
environment?: string | {
|
|
402
|
-
type: "remote";
|
|
403
|
-
sources?: ({
|
|
404
|
-
type: "gcs";
|
|
405
|
-
source: string;
|
|
406
|
-
target?: string | null | undefined;
|
|
407
|
-
} | {
|
|
408
|
-
type: "repository";
|
|
409
|
-
source: string;
|
|
410
|
-
target?: string | null | undefined;
|
|
411
|
-
} | {
|
|
412
|
-
type: "inline";
|
|
413
|
-
content: string;
|
|
414
|
-
target: string;
|
|
415
|
-
})[] | null | undefined;
|
|
416
|
-
network?: "disabled" | {
|
|
417
|
-
allowlist: {
|
|
418
|
-
domain: string;
|
|
419
|
-
transform?: Record<string, string>[] | null | undefined;
|
|
420
|
-
}[];
|
|
421
|
-
} | null | undefined;
|
|
438
|
+
network?: "disabled" | {
|
|
439
|
+
allowlist: {
|
|
440
|
+
domain: string;
|
|
441
|
+
transform?: Record<string, string>[] | null | undefined;
|
|
442
|
+
}[];
|
|
422
443
|
} | null | undefined;
|
|
444
|
+
} | null | undefined;
|
|
423
445
|
}>;
|
|
424
446
|
type GoogleLanguageModelInteractionsOptions = InferSchema<typeof googleInteractionsLanguageModelOptions>;
|
|
425
|
-
|
|
447
|
+
//#endregion
|
|
448
|
+
//#region src/interactions/google-interactions-provider-metadata.d.ts
|
|
426
449
|
/**
|
|
427
450
|
* Provider-metadata shape that the Gemini Interactions language model writes
|
|
428
451
|
* onto `result.providerMetadata.google` (and reads back from input messages on
|
|
429
452
|
* the next turn for stateful chaining and signature round-trip).
|
|
430
453
|
*/
|
|
431
454
|
type GoogleInteractionsProviderMetadata = {
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
455
|
+
/**
|
|
456
|
+
* Gemini-server-side interaction id (`Interaction.id`). Pass back in
|
|
457
|
+
* `providerOptions.google.previousInteractionId` to chain stateful turns.
|
|
458
|
+
*/
|
|
459
|
+
interactionId?: string;
|
|
460
|
+
/**
|
|
461
|
+
* Service tier used for this interaction (passthrough for observability).
|
|
462
|
+
*/
|
|
463
|
+
serviceTier?: string;
|
|
464
|
+
/**
|
|
465
|
+
* Output token counts keyed by modality (e.g. `{ video: 57920 }`), sourced
|
|
466
|
+
* from the Interactions API `output_tokens_by_modality`. Present only when
|
|
467
|
+
* the response reports a breakdown. Preview surface for per-modality billing;
|
|
468
|
+
* may be promoted to a first-class usage field later.
|
|
469
|
+
*/
|
|
470
|
+
outputTokensByModality?: Record<string, number>;
|
|
471
|
+
/**
|
|
472
|
+
* Per-block signature hash for backend validation. Set by the SDK on output
|
|
473
|
+
* reasoning / tool-call parts and round-tripped on input parts.
|
|
474
|
+
*/
|
|
475
|
+
signature?: string;
|
|
476
|
+
/**
|
|
477
|
+
* ID of an agentic video `processing_call` step. Present on
|
|
478
|
+
* `google.processing_call` custom parts.
|
|
479
|
+
*/
|
|
480
|
+
processingId?: string;
|
|
481
|
+
/**
|
|
482
|
+
* ID of the corresponding agentic video processing call. Present on
|
|
483
|
+
* `google.processing_result` custom parts.
|
|
484
|
+
*/
|
|
485
|
+
processingCallId?: string;
|
|
463
486
|
};
|
|
464
|
-
|
|
487
|
+
//#endregion
|
|
488
|
+
//#region src/interactions/google-interactions-agent.d.ts
|
|
465
489
|
/**
|
|
466
490
|
* Type-only module: declares the union of supported Gemini Interactions agent
|
|
467
491
|
* names. Used by the `google.interactions({ agent })` factory branch.
|
|
@@ -472,98 +496,101 @@ type GoogleInteractionsProviderMetadata = {
|
|
|
472
496
|
* `GoogleInteractionsModelInput`.
|
|
473
497
|
*/
|
|
474
498
|
type GoogleInteractionsAgentName = 'deep-research-pro-preview-12-2025' | 'deep-research-preview-04-2026' | 'deep-research-max-preview-04-2026' | 'antigravity-preview-05-2026';
|
|
475
|
-
|
|
499
|
+
//#endregion
|
|
500
|
+
//#region src/google-tools.d.ts
|
|
476
501
|
declare const googleTools: {
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
502
|
+
/**
|
|
503
|
+
* Creates a Google search tool that gives Google direct access to real-time web content.
|
|
504
|
+
* Must have name "google_search".
|
|
505
|
+
*/
|
|
506
|
+
googleSearch: import("@ai-sdk/provider-utils").ProviderExecutedToolFactory<{}, {}, {
|
|
507
|
+
[x: string]: unknown;
|
|
508
|
+
searchTypes?: {
|
|
509
|
+
webSearch?: Record<string, never> | undefined;
|
|
510
|
+
imageSearch?: Record<string, never> | undefined;
|
|
511
|
+
} | undefined;
|
|
512
|
+
timeRangeFilter?: {
|
|
513
|
+
startTime: string;
|
|
514
|
+
endTime: string;
|
|
515
|
+
} | undefined;
|
|
516
|
+
}, {}>;
|
|
517
|
+
/**
|
|
518
|
+
* Creates an Enterprise Web Search tool for grounding responses using a compliance-focused web index.
|
|
519
|
+
* Designed for highly-regulated industries (finance, healthcare, public sector).
|
|
520
|
+
* Does not log customer data and supports VPC service controls.
|
|
521
|
+
* Must have name "enterprise_web_search".
|
|
522
|
+
*
|
|
523
|
+
* @note Only available on Vertex AI. Requires Gemini 2.0 or newer.
|
|
524
|
+
*
|
|
525
|
+
* @see https://cloud.google.com/vertex-ai/generative-ai/docs/grounding/web-grounding-enterprise
|
|
526
|
+
*/
|
|
527
|
+
enterpriseWebSearch: import("@ai-sdk/provider-utils").ProviderExecutedToolFactory<{}, {}, {}, {}>;
|
|
528
|
+
/**
|
|
529
|
+
* Creates a Google Maps grounding tool that gives the model access to Google Maps data.
|
|
530
|
+
* Must have name "google_maps".
|
|
531
|
+
*
|
|
532
|
+
* @see https://ai.google.dev/gemini-api/docs/maps-grounding
|
|
533
|
+
* @see https://cloud.google.com/vertex-ai/generative-ai/docs/grounding/grounding-with-google-maps
|
|
534
|
+
*/
|
|
535
|
+
googleMaps: import("@ai-sdk/provider-utils").ProviderExecutedToolFactory<{}, {}, {}, {}>;
|
|
536
|
+
/**
|
|
537
|
+
* Creates a URL context tool that gives Google direct access to real-time web content.
|
|
538
|
+
* Must have name "url_context".
|
|
539
|
+
*/
|
|
540
|
+
urlContext: import("@ai-sdk/provider-utils").ProviderExecutedToolFactory<{}, {}, {}, {}>;
|
|
541
|
+
/**
|
|
542
|
+
* Enables Retrieval Augmented Generation (RAG) via the Gemini File Search tool.
|
|
543
|
+
* Must have name "file_search".
|
|
544
|
+
*
|
|
545
|
+
* @param fileSearchStoreNames - Fully-qualified File Search store resource names.
|
|
546
|
+
* @param metadataFilter - Optional filter expression to restrict the files that can be retrieved.
|
|
547
|
+
* @param topK - Optional result limit for the number of chunks returned from File Search.
|
|
548
|
+
*
|
|
549
|
+
* @see https://ai.google.dev/gemini-api/docs/file-search
|
|
550
|
+
*/
|
|
551
|
+
fileSearch: import("@ai-sdk/provider-utils").ProviderExecutedToolFactory<{}, {}, {
|
|
552
|
+
[x: string]: unknown;
|
|
553
|
+
fileSearchStoreNames: string[];
|
|
554
|
+
topK?: number | undefined;
|
|
555
|
+
metadataFilter?: string | undefined;
|
|
556
|
+
}, {}>;
|
|
557
|
+
/**
|
|
558
|
+
* A tool that enables the model to generate and run Python code.
|
|
559
|
+
* Must have name "code_execution".
|
|
560
|
+
*
|
|
561
|
+
* @note Ensure the selected model supports Code Execution.
|
|
562
|
+
* Multi-tool usage with the code execution tool is typically compatible with Gemini >=2 models.
|
|
563
|
+
*
|
|
564
|
+
* @see https://ai.google.dev/gemini-api/docs/code-execution (Google AI)
|
|
565
|
+
* @see https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/code-execution-api (Vertex AI)
|
|
566
|
+
*/
|
|
567
|
+
codeExecution: import("@ai-sdk/provider-utils").ProviderExecutedToolFactory<{
|
|
568
|
+
language: string;
|
|
569
|
+
code: string;
|
|
570
|
+
}, {
|
|
571
|
+
outcome: string;
|
|
572
|
+
output: string;
|
|
573
|
+
}, {}, {}>;
|
|
574
|
+
/**
|
|
575
|
+
* Creates a Vertex RAG Store tool that enables the model to perform RAG searches against a Vertex RAG Store.
|
|
576
|
+
* Must have name "vertex_rag_store".
|
|
577
|
+
*/
|
|
578
|
+
vertexRagStore: import("@ai-sdk/provider-utils").ProviderExecutedToolFactory<{}, {}, {
|
|
579
|
+
ragCorpus: string;
|
|
580
|
+
topK?: number;
|
|
581
|
+
}, {}>;
|
|
557
582
|
};
|
|
558
|
-
|
|
583
|
+
//#endregion
|
|
584
|
+
//#region src/google-image-settings.d.ts
|
|
559
585
|
type GoogleImageModelId = 'gemini-2.5-flash-image' | 'gemini-3-pro-image-preview' | 'gemini-3.1-flash-image-preview' | (string & {});
|
|
560
586
|
interface GoogleImageSettings {
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
587
|
+
/**
|
|
588
|
+
* Override the maximum number of images per call (default 1)
|
|
589
|
+
*/
|
|
590
|
+
maxImagesPerCall?: number;
|
|
565
591
|
}
|
|
566
|
-
|
|
592
|
+
//#endregion
|
|
593
|
+
//#region src/transcription/google-transcription-model-options.d.ts
|
|
567
594
|
type GoogleTranscriptionModelId = 'gemini-3.5-transcribe' | 'gemini-3.5-transcribe-live' | (string & {});
|
|
568
595
|
/**
|
|
569
596
|
* Speech recognition options shared by unary (`gemini-3.5-transcribe`) and
|
|
@@ -571,293 +598,305 @@ type GoogleTranscriptionModelId = 'gemini-3.5-transcribe' | 'gemini-3.5-transcri
|
|
|
571
598
|
* `AudioTranscriptionConfig`.
|
|
572
599
|
*/
|
|
573
600
|
declare const googleTranscriptionModelOptions: z.ZodObject<{
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
601
|
+
languageCodes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
602
|
+
customVocabulary: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
603
|
+
wordTimestamp: z.ZodOptional<z.ZodBoolean>;
|
|
604
|
+
diarization: z.ZodOptional<z.ZodBoolean>;
|
|
605
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
606
|
+
SMART: "SMART";
|
|
607
|
+
VERBATIM: "VERBATIM";
|
|
608
|
+
}>>;
|
|
582
609
|
}, z.core.$strip>;
|
|
583
610
|
type GoogleTranscriptionModelOptions = z.infer<typeof googleTranscriptionModelOptions>;
|
|
584
|
-
|
|
611
|
+
//#endregion
|
|
612
|
+
//#region src/speech-translation/google-speech-translation-model-options.d.ts
|
|
585
613
|
type GoogleSpeechTranslationModelId = 'gemini-3.5-live-translate-preview' | (string & {});
|
|
586
|
-
declare const googleSpeechTranslationModelOptions:
|
|
587
|
-
|
|
614
|
+
declare const googleSpeechTranslationModelOptions: import("@ai-sdk/provider-utils").LazySchema<{
|
|
615
|
+
echoTargetLanguage?: boolean | undefined;
|
|
588
616
|
}>;
|
|
589
617
|
type GoogleSpeechTranslationModelOptions = InferSchema<typeof googleSpeechTranslationModelOptions>;
|
|
590
|
-
|
|
618
|
+
//#endregion
|
|
619
|
+
//#region src/google-provider.d.ts
|
|
591
620
|
interface GoogleProvider extends ProviderV4 {
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
621
|
+
(modelId: GoogleModelId): LanguageModelV4;
|
|
622
|
+
languageModel(modelId: GoogleModelId): LanguageModelV4;
|
|
623
|
+
chat(modelId: GoogleModelId): LanguageModelV4;
|
|
624
|
+
/** Creates an experimental Choice/Score/Boolean decision model using Gemini. */
|
|
625
|
+
decisionModel(modelId: GoogleModelId): Experimental_DecisionModelV4;
|
|
626
|
+
/** @deprecated Use `decisionModel` instead. */
|
|
627
|
+
evaluationModel(modelId: GoogleModelId): Experimental_DecisionModelV4 & {
|
|
628
|
+
doEvaluate: Experimental_DecisionModelV4['doDecide'];
|
|
629
|
+
};
|
|
630
|
+
experimental_batch(): Experimental_BatchV4<{
|
|
631
|
+
text: GoogleModelId;
|
|
632
|
+
image: GoogleImageModelId;
|
|
633
|
+
}>;
|
|
634
|
+
/**
|
|
635
|
+
* Creates a model for image generation.
|
|
636
|
+
*/
|
|
637
|
+
image(modelId: GoogleImageModelId, settings?: GoogleImageSettings): ImageModelV4;
|
|
638
|
+
/**
|
|
639
|
+
* @deprecated Use `chat()` instead.
|
|
640
|
+
*/
|
|
641
|
+
generativeAI(modelId: GoogleModelId): LanguageModelV4;
|
|
642
|
+
/**
|
|
643
|
+
* Creates a model for text embeddings.
|
|
644
|
+
*/
|
|
645
|
+
embedding(modelId: GoogleEmbeddingModelId): EmbeddingModelV4;
|
|
646
|
+
/**
|
|
647
|
+
* Creates a model for text embeddings.
|
|
648
|
+
*/
|
|
649
|
+
embeddingModel(modelId: GoogleEmbeddingModelId): EmbeddingModelV4;
|
|
650
|
+
/**
|
|
651
|
+
* @deprecated Use `embedding` instead.
|
|
652
|
+
*/
|
|
653
|
+
textEmbedding(modelId: GoogleEmbeddingModelId): EmbeddingModelV4;
|
|
654
|
+
/**
|
|
655
|
+
* @deprecated Use `embeddingModel` instead.
|
|
656
|
+
*/
|
|
657
|
+
textEmbeddingModel(modelId: GoogleEmbeddingModelId): EmbeddingModelV4;
|
|
658
|
+
/**
|
|
659
|
+
* Creates a model for video generation.
|
|
660
|
+
*/
|
|
661
|
+
video(modelId: GoogleVideoModelId): Experimental_VideoModelV4;
|
|
662
|
+
/**
|
|
663
|
+
* Creates a model for video generation.
|
|
664
|
+
*/
|
|
665
|
+
videoModel(modelId: GoogleVideoModelId): Experimental_VideoModelV4;
|
|
666
|
+
/**
|
|
667
|
+
* Creates an experimental model for streaming speech translation.
|
|
668
|
+
*/
|
|
669
|
+
translation(modelId: GoogleSpeechTranslationModelId): Experimental_SpeechTranslationModelV4;
|
|
670
|
+
/**
|
|
671
|
+
* Creates an experimental model for streaming speech translation.
|
|
672
|
+
*/
|
|
673
|
+
speechTranslationModel(modelId: GoogleSpeechTranslationModelId): Experimental_SpeechTranslationModelV4;
|
|
674
|
+
/**
|
|
675
|
+
* Creates a model for speech generation (text-to-speech).
|
|
676
|
+
*/
|
|
677
|
+
speech(modelId: GoogleSpeechModelId): SpeechModelV4;
|
|
678
|
+
/**
|
|
679
|
+
* Creates a model for speech generation (text-to-speech).
|
|
680
|
+
*/
|
|
681
|
+
speechModel(modelId: GoogleSpeechModelId): SpeechModelV4;
|
|
682
|
+
/**
|
|
683
|
+
* Creates a model for transcription (speech-to-text). Unary models
|
|
684
|
+
* (e.g. `gemini-3.5-transcribe`) transcribe audio files; live models
|
|
685
|
+
* (e.g. `gemini-3.5-transcribe-live`) stream transcription over the
|
|
686
|
+
* Gemini Live API WebSocket via `experimental_streamTranscribe`.
|
|
687
|
+
*/
|
|
688
|
+
transcription(modelId: GoogleTranscriptionModelId): TranscriptionModelV4;
|
|
689
|
+
/**
|
|
690
|
+
* Creates a model for transcription (speech-to-text).
|
|
691
|
+
*/
|
|
692
|
+
transcriptionModel(modelId: GoogleTranscriptionModelId): TranscriptionModelV4;
|
|
693
|
+
files(): FilesV4;
|
|
694
|
+
/**
|
|
695
|
+
* Creates a language model targeting the Gemini Interactions API
|
|
696
|
+
* (`POST /v1beta/interactions`). Pass:
|
|
697
|
+
* - a model ID (string),
|
|
698
|
+
* - `{ agent: <name> }` to use a known Gemini agent preset, or
|
|
699
|
+
* - `{ managedAgent: <name> }` to use a user-defined agent created via
|
|
700
|
+
* the `/v1beta/agents` endpoint.
|
|
701
|
+
*/
|
|
702
|
+
interactions(modelIdOrAgent: GoogleInteractionsModelId | {
|
|
703
|
+
agent: GoogleInteractionsAgentName;
|
|
704
|
+
} | {
|
|
705
|
+
managedAgent: string;
|
|
706
|
+
}): LanguageModelV4;
|
|
707
|
+
experimental_realtime: Experimental_RealtimeFactoryV4;
|
|
708
|
+
tools: typeof googleTools;
|
|
676
709
|
}
|
|
677
710
|
interface GoogleProviderSettings {
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
+
/**
|
|
712
|
+
* Use a different URL prefix for API calls, e.g. to use proxy servers.
|
|
713
|
+
* The default prefix is `https://generativelanguage.googleapis.com/v1beta`.
|
|
714
|
+
*/
|
|
715
|
+
baseURL?: string;
|
|
716
|
+
/**
|
|
717
|
+
* API key that is being send using the `x-goog-api-key` header.
|
|
718
|
+
* It defaults to the `GOOGLE_GENERATIVE_AI_API_KEY` environment variable.
|
|
719
|
+
*/
|
|
720
|
+
apiKey?: string;
|
|
721
|
+
/**
|
|
722
|
+
* Custom headers to include in the requests.
|
|
723
|
+
*/
|
|
724
|
+
headers?: Record<string, string | undefined>;
|
|
725
|
+
/**
|
|
726
|
+
* Custom fetch implementation. You can use it as a middleware to intercept requests,
|
|
727
|
+
* or to provide a custom fetch implementation for e.g. testing.
|
|
728
|
+
*/
|
|
729
|
+
fetch?: FetchFunction;
|
|
730
|
+
/**
|
|
731
|
+
* Optional function to generate a unique ID for each request.
|
|
732
|
+
*/
|
|
733
|
+
generateId?: () => string;
|
|
734
|
+
/**
|
|
735
|
+
* Custom WebSocket implementation. This is useful for testing or for
|
|
736
|
+
* runtimes that need a WebSocket constructor with header support.
|
|
737
|
+
*/
|
|
738
|
+
webSocket?: WebSocketConstructor;
|
|
739
|
+
/**
|
|
740
|
+
* Custom provider name
|
|
741
|
+
* Defaults to 'google.generative-ai'.
|
|
742
|
+
*/
|
|
743
|
+
name?: string;
|
|
711
744
|
}
|
|
712
745
|
/**
|
|
713
746
|
* Create a Google provider instance.
|
|
714
747
|
*/
|
|
715
|
-
declare function createGoogle(options?: GoogleProviderSettings): GoogleProvider;
|
|
748
|
+
export declare function createGoogle(options?: GoogleProviderSettings): GoogleProvider;
|
|
716
749
|
/**
|
|
717
750
|
* Default Google Generative AI provider instance.
|
|
718
751
|
*/
|
|
719
|
-
declare const google: GoogleProvider;
|
|
720
|
-
|
|
752
|
+
export declare const google: GoogleProvider;
|
|
753
|
+
//#endregion
|
|
754
|
+
//#region src/realtime/google-realtime-model.d.ts
|
|
721
755
|
type GoogleRealtimeModelConfig = {
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
756
|
+
provider: string;
|
|
757
|
+
baseURL: string;
|
|
758
|
+
headers: () => Record<string, string | undefined>;
|
|
759
|
+
fetch?: FetchFunction;
|
|
726
760
|
};
|
|
727
761
|
declare class GoogleRealtimeModel implements Experimental_RealtimeModelV4 {
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
762
|
+
readonly specificationVersion: "v4";
|
|
763
|
+
readonly provider: string;
|
|
764
|
+
readonly modelId: string;
|
|
765
|
+
private readonly config;
|
|
766
|
+
private readonly mapper;
|
|
767
|
+
constructor(modelId: string, config: GoogleRealtimeModelConfig);
|
|
768
|
+
doCreateClientSecret(options: Experimental_RealtimeModelV4ClientSecretOptions): Promise<Experimental_RealtimeModelV4ClientSecretResult>;
|
|
769
|
+
getWebSocketConfig(options: {
|
|
770
|
+
token: string;
|
|
771
|
+
url: string;
|
|
772
|
+
}): {
|
|
773
|
+
url: string;
|
|
774
|
+
protocols?: string[];
|
|
775
|
+
};
|
|
776
|
+
parseServerEvent(raw: unknown): Experimental_RealtimeModelV4ServerEvent | Experimental_RealtimeModelV4ServerEvent[];
|
|
777
|
+
serializeClientEvent(event: Experimental_RealtimeModelV4ClientEvent): ReturnType<Experimental_RealtimeModelV4['serializeClientEvent']>;
|
|
778
|
+
buildSessionConfig(config: Experimental_RealtimeModelV4SessionConfig): Record<string, unknown>;
|
|
745
779
|
}
|
|
746
|
-
|
|
780
|
+
//#endregion
|
|
781
|
+
//#region src/realtime/google-realtime-model-options.d.ts
|
|
747
782
|
type GoogleRealtimeModelId = string;
|
|
748
783
|
type GoogleRealtimeModelOptions = {
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
784
|
+
/**
|
|
785
|
+
* Gemini Live Translation configuration.
|
|
786
|
+
*
|
|
787
|
+
* Required for `gemini-3.5-live-translate-preview` when translating speech
|
|
788
|
+
* to a target language.
|
|
789
|
+
*/
|
|
790
|
+
translationConfig?: {
|
|
791
|
+
/**
|
|
792
|
+
* BCP-47 language code of the language to translate into.
|
|
793
|
+
* Defaults to `en` in the Gemini API.
|
|
794
|
+
*/
|
|
795
|
+
targetLanguageCode?: string;
|
|
796
|
+
/**
|
|
797
|
+
* Whether input audio already in the target language should be echoed
|
|
798
|
+
* instead of producing silence.
|
|
799
|
+
*/
|
|
800
|
+
echoTargetLanguage?: boolean;
|
|
801
|
+
};
|
|
802
|
+
/**
|
|
803
|
+
* Gemini Live thinking configuration.
|
|
804
|
+
*
|
|
805
|
+
* Supported by Live models with background reasoning (e.g.
|
|
806
|
+
* `gemini-3.8-live-extended-thinking`), which can process multi-step
|
|
807
|
+
* reasoning and function calls while streaming audio responses. Not
|
|
808
|
+
* supported by latency-optimized models (e.g. `gemini-3.8-live`).
|
|
809
|
+
*/
|
|
810
|
+
thinkingConfig?: {
|
|
811
|
+
/**
|
|
812
|
+
* Thinking effort level. Background-reasoning Live models require exactly
|
|
813
|
+
* one of `thinkingLevel` or `thinkingBudget`; when neither is set, the
|
|
814
|
+
* provider sends `thinkingLevel: 'low'` on those models.
|
|
815
|
+
*/
|
|
816
|
+
thinkingLevel?: 'low' | 'medium' | 'high';
|
|
817
|
+
/**
|
|
818
|
+
* Token budget for background thinking. Mutually exclusive with
|
|
819
|
+
* `thinkingLevel`; setting it suppresses the default level.
|
|
820
|
+
*/
|
|
821
|
+
thinkingBudget?: number;
|
|
822
|
+
/**
|
|
823
|
+
* Whether thought summaries should be included in the response.
|
|
824
|
+
*/
|
|
825
|
+
includeThoughts?: boolean;
|
|
826
|
+
};
|
|
827
|
+
/**
|
|
828
|
+
* Default `behavior` stamped onto every function declaration in the
|
|
829
|
+
* session setup.
|
|
830
|
+
*
|
|
831
|
+
* Gemini 3.8 Live models default to `NON_BLOCKING` (asynchronous) function
|
|
832
|
+
* calling. Set to `BLOCKING` for synchronous calls on models that support it
|
|
833
|
+
* (e.g. `gemini-3.8-live`); background-reasoning models accept only
|
|
834
|
+
* `NON_BLOCKING`.
|
|
835
|
+
*/
|
|
836
|
+
defaultToolBehavior?: 'BLOCKING' | 'NON_BLOCKING';
|
|
802
837
|
};
|
|
803
|
-
|
|
838
|
+
//#endregion
|
|
839
|
+
//#region src/transcription/google-transcription-model.d.ts
|
|
804
840
|
interface GoogleTranscriptionModelConfig {
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
841
|
+
provider: string;
|
|
842
|
+
baseURL: string;
|
|
843
|
+
headers?: Resolvable<Record<string, string | undefined>>;
|
|
844
|
+
fetch?: FetchFunction;
|
|
845
|
+
webSocket?: WebSocketConstructor;
|
|
846
|
+
_internal?: {
|
|
847
|
+
currentDate?: () => Date;
|
|
848
|
+
finishGraceMs?: number;
|
|
849
|
+
};
|
|
814
850
|
}
|
|
815
|
-
declare class GoogleTranscriptionModel implements TranscriptionModelV4 {
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
851
|
+
export declare class GoogleTranscriptionModel implements TranscriptionModelV4 {
|
|
852
|
+
readonly modelId: GoogleTranscriptionModelId;
|
|
853
|
+
private readonly config;
|
|
854
|
+
readonly specificationVersion = "v4";
|
|
855
|
+
static [WORKFLOW_SERIALIZE](model: GoogleTranscriptionModel): {
|
|
856
|
+
modelId: string;
|
|
857
|
+
config: JSONObject;
|
|
858
|
+
};
|
|
859
|
+
static [WORKFLOW_DESERIALIZE](options: {
|
|
860
|
+
modelId: GoogleTranscriptionModelId;
|
|
861
|
+
config: GoogleTranscriptionModelConfig;
|
|
862
|
+
}): GoogleTranscriptionModel;
|
|
863
|
+
get provider(): string;
|
|
864
|
+
constructor(modelId: GoogleTranscriptionModelId, config: GoogleTranscriptionModelConfig);
|
|
865
|
+
private parseOptions;
|
|
866
|
+
doGenerate(options: Parameters<TranscriptionModelV4['doGenerate']>[0]): Promise<Awaited<ReturnType<TranscriptionModelV4['doGenerate']>>>;
|
|
867
|
+
doStream(options: Experimental_TranscriptionModelV4StreamOptions): Promise<Awaited<ReturnType<NonNullable<TranscriptionModelV4['doStream']>>>>;
|
|
832
868
|
}
|
|
833
|
-
|
|
869
|
+
//#endregion
|
|
870
|
+
//#region src/speech-translation/google-speech-translation-model.d.ts
|
|
834
871
|
type GoogleSpeechTranslationModelConfig = {
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
872
|
+
provider: string;
|
|
873
|
+
baseURL: string;
|
|
874
|
+
headers: () => Record<string, string | undefined>;
|
|
875
|
+
webSocket?: WebSocketConstructor;
|
|
876
|
+
_internal?: {
|
|
877
|
+
currentDate?: () => Date;
|
|
878
|
+
finishGraceMs?: number;
|
|
879
|
+
};
|
|
843
880
|
};
|
|
844
881
|
declare class GoogleSpeechTranslationModel implements Experimental_SpeechTranslationModelV4 {
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
882
|
+
readonly specificationVersion = "v4";
|
|
883
|
+
readonly modelId: GoogleSpeechTranslationModelId;
|
|
884
|
+
private readonly config;
|
|
885
|
+
static [WORKFLOW_SERIALIZE](model: GoogleSpeechTranslationModel): {
|
|
886
|
+
modelId: string;
|
|
887
|
+
config: import("@ai-sdk/provider").JSONObject;
|
|
888
|
+
};
|
|
889
|
+
static [WORKFLOW_DESERIALIZE](options: {
|
|
890
|
+
modelId: GoogleSpeechTranslationModelId;
|
|
891
|
+
config: GoogleSpeechTranslationModelConfig;
|
|
892
|
+
}): GoogleSpeechTranslationModel;
|
|
893
|
+
get provider(): string;
|
|
894
|
+
constructor(modelId: GoogleSpeechTranslationModelId, config: GoogleSpeechTranslationModelConfig);
|
|
895
|
+
doStream(options: Experimental_SpeechTranslationModelV4StreamOptions): Promise<Awaited<ReturnType<Experimental_SpeechTranslationModelV4['doStream']>>>;
|
|
859
896
|
}
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
897
|
+
//#endregion
|
|
898
|
+
//#region src/version.d.ts
|
|
899
|
+
export declare const VERSION: string;
|
|
900
|
+
//#endregion
|
|
901
|
+
export { GoogleRealtimeModel as Experimental_GoogleRealtimeModel, type GoogleRealtimeModelConfig as Experimental_GoogleRealtimeModelConfig, type GoogleRealtimeModelId as Experimental_GoogleRealtimeModelId, type GoogleRealtimeModelOptions as Experimental_GoogleRealtimeModelOptions, GoogleSpeechTranslationModel as Experimental_GoogleSpeechTranslationModel, GoogleSpeechTranslationModel as Experimental_GoogleTranslationModel, type GoogleSpeechTranslationModelConfig as Experimental_GoogleSpeechTranslationModelConfig, type GoogleSpeechTranslationModelConfig as Experimental_GoogleTranslationModelConfig, type GoogleSpeechTranslationModelId as Experimental_GoogleSpeechTranslationModelId, type GoogleSpeechTranslationModelId as Experimental_GoogleTranslationModelId, type GoogleSpeechTranslationModelOptions as Experimental_GoogleSpeechTranslationModelOptions, type GoogleSpeechTranslationModelOptions as Experimental_GoogleTranslationModelOptions, type GoogleEmbeddingModelOptions, type GoogleEmbeddingModelOptions as GoogleGenerativeAIEmbeddingProviderOptions, type GoogleErrorData, type GoogleFilesUploadOptions, type GoogleImageModelOptions as GoogleGenerativeAIImageProviderOptions, type GoogleImageModelOptions, type GoogleProvider as GoogleGenerativeAIProvider, type GoogleProvider, type GoogleProviderMetadata as GoogleGenerativeAIProviderMetadata, type GoogleProviderMetadata, type GoogleLanguageModelOptions as GoogleGenerativeAIProviderOptions, type GoogleLanguageModelOptions, type GoogleProviderSettings as GoogleGenerativeAIProviderSettings, type GoogleProviderSettings, type GoogleVideoModelId as GoogleGenerativeAIVideoModelId, type GoogleVideoModelId, type GoogleVideoModelOptions as GoogleGenerativeAIVideoProviderOptions, type GoogleVideoModelOptions, type GoogleInteractionsAgentName, type GoogleInteractionsModelId, type GoogleInteractionsProviderMetadata, type GoogleInteractionsVideoOptions, type GoogleLanguageModelInteractionsOptions, type GoogleSpeechModelId, type GoogleSpeechModelOptions, type GoogleTranscriptionModelId, type GoogleTranscriptionModelOptions, createGoogle as createGoogleGenerativeAI };
|
|
902
|
+
//# sourceMappingURL=index.d.ts.map
|