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