@mastra/core 1.87.0-alpha.2 → 1.87.0-alpha.20

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 (760) hide show
  1. package/dist/_types/@ai-sdk_openai@4.0.106/dist/index.d.ts +2034 -0
  2. package/dist/_types/@ai-sdk_openai@4.0.106/package.json +1 -0
  3. package/dist/_types/@internal_ai-v6@0.0.99/dist/index.d.ts +2075 -123
  4. package/dist/_types/@internal_core@0.1.4/dist/knowledge-compat/index.d.ts +79 -3
  5. package/dist/a2a/index.cjs +1 -1
  6. package/dist/a2a/index.js +1 -1
  7. package/dist/agent/active-run-signal-queues.d.ts +49 -0
  8. package/dist/agent/agent.d.ts +22 -6
  9. package/dist/agent/agent.types.d.ts +1 -0
  10. package/dist/agent/durable/abort-transport.d.ts +1 -1
  11. package/dist/agent/durable/durable-agent.d.ts +1 -0
  12. package/dist/agent/durable/execution-engine.d.ts +12 -0
  13. package/dist/agent/durable/index.cjs +86 -86
  14. package/dist/agent/durable/index.js +2 -2
  15. package/dist/agent/durable/preparation.d.ts +17 -0
  16. package/dist/agent/durable/run-message-refs.d.ts +3 -2
  17. package/dist/agent/durable/run-registry.d.ts +56 -25
  18. package/dist/agent/durable/stored-signal-drain.d.ts +100 -0
  19. package/dist/agent/durable/types.d.ts +43 -0
  20. package/dist/agent/durable/utils/resolve-runtime.d.ts +16 -0
  21. package/dist/agent/durable/utils/serialize-state.d.ts +1 -0
  22. package/dist/agent/durable/workflows/create-durable-agentic-workflow.d.ts +1 -0
  23. package/dist/agent/durable/workflows/durable-loop-builder.d.ts +5 -0
  24. package/dist/agent/durable/workflows/finalize-run.d.ts +7 -1
  25. package/dist/agent/durable/workflows/shared/message-list-state.d.ts +6 -2
  26. package/dist/agent/durable/workflows/shared/schemas.d.ts +2 -0
  27. package/dist/agent/durable/workflows/steps/llm-execution.d.ts +1 -0
  28. package/dist/agent/index.cjs +18 -17
  29. package/dist/agent/index.d.ts +3 -0
  30. package/dist/agent/index.js +6 -6
  31. package/dist/agent/merge-persona.d.ts +15 -0
  32. package/dist/agent/message-list/adapters/AIV5Adapter.d.ts +15 -1
  33. package/dist/agent/message-list/index.cjs +2 -2
  34. package/dist/agent/message-list/index.js +2 -2
  35. package/dist/agent/message-list/state/MessageStateManager.d.ts +5 -0
  36. package/dist/agent/message-list/state/types.d.ts +5 -1
  37. package/dist/agent/message-list/types.d.ts +1 -1
  38. package/dist/agent/message-list/utils/provider-compat.d.ts +9 -1
  39. package/dist/agent/scopes.d.ts +8 -0
  40. package/dist/agent/signals.d.ts +7 -3
  41. package/dist/agent/stored-run-signals.d.ts +93 -0
  42. package/dist/agent/stored-signals.d.ts +40 -0
  43. package/dist/agent/streams/abort-transport.d.ts +10 -1
  44. package/dist/agent/streams/constants.d.ts +9 -0
  45. package/dist/agent/streams/publisher.d.ts +3 -1
  46. package/dist/agent/thread-stream-runtime.d.ts +46 -4
  47. package/dist/agent/tool-name.d.ts +21 -0
  48. package/dist/agent/types.d.ts +1 -0
  49. package/dist/agent-builder/ee/index.cjs +1 -1
  50. package/dist/agent-builder/ee/index.js +1 -1
  51. package/dist/agent-controller/agent-controller.d.ts +14 -1
  52. package/dist/agent-controller/index.cjs +3 -3
  53. package/dist/agent-controller/index.js +3 -3
  54. package/dist/agent-controller/session.d.ts +38 -1
  55. package/dist/agent-controller/types.d.ts +6 -0
  56. package/dist/agent-controller/worker-run-binding.d.ts +15 -0
  57. package/dist/{agent-controller-Dc58ARqw.js → agent-controller-D2d_qiJr.js} +159 -217
  58. package/dist/{agent-controller-v64JbuDa.cjs → agent-controller-WTjY0HJM.cjs} +181 -239
  59. package/dist/{agent-skills-resolver-BMoCDoaK.cjs → agent-skills-resolver-2d8k7ioj.cjs} +134 -109
  60. package/dist/{agent-skills-resolver-CUEIMDbx.js → agent-skills-resolver-D2HktP6Y.js} +134 -109
  61. package/dist/background-tasks/index.cjs +2 -1
  62. package/dist/background-tasks/index.d.ts +1 -1
  63. package/dist/background-tasks/index.js +1 -1
  64. package/dist/background-tasks/manager.d.ts +3 -1
  65. package/dist/background-tasks/resolve-config.d.ts +30 -1
  66. package/dist/background-tasks/system-prompt.d.ts +8 -2
  67. package/dist/background-tasks/types.d.ts +47 -1
  68. package/dist/background-tasks/workflow-id.d.ts +42 -0
  69. package/dist/{background-tasks-E-Jjxks4.js → background-tasks-CgspqU_S.js} +393 -59
  70. package/dist/{background-tasks-DgiQNKh7.cjs → background-tasks-DJ6x1bn-.cjs} +428 -58
  71. package/dist/browser/index.cjs +17 -8
  72. package/dist/browser/index.js +17 -8
  73. package/dist/browser/processor.d.ts +1 -0
  74. package/dist/{builder-Dfp6Ckjr.cjs → builder-B2P49nT9.cjs} +3 -3
  75. package/dist/{builder-Dh175HnQ.js → builder-MymUxyDK.js} +2 -2
  76. package/dist/capabilities/302ai.json +203 -203
  77. package/dist/capabilities/abacus.json +2 -96
  78. package/dist/capabilities/abliteratedllm.json +39 -30
  79. package/dist/capabilities/abliteration-ai.json +9 -9
  80. package/dist/capabilities/above.json +18 -18
  81. package/dist/capabilities/adaption.json +16 -16
  82. package/dist/capabilities/adzuki.json +20 -20
  83. package/dist/capabilities/agentrouter.json +11 -11
  84. package/dist/capabilities/agnes.json +3 -3
  85. package/dist/capabilities/ai-router.json +5 -5
  86. package/dist/capabilities/aiand.json +10 -27
  87. package/dist/capabilities/aigrow.json +11 -11
  88. package/dist/capabilities/aimlapi.json +153 -158
  89. package/dist/capabilities/aipg.json +2 -2
  90. package/dist/capabilities/aixy.json +14 -14
  91. package/dist/capabilities/aki-io.json +15 -15
  92. package/dist/capabilities/alibaba-cn.json +117 -120
  93. package/dist/capabilities/alibaba-coding-plan-cn.json +5 -10
  94. package/dist/capabilities/alibaba-coding-plan.json +5 -10
  95. package/dist/capabilities/alibaba-token-plan-cn.json +60 -56
  96. package/dist/capabilities/alibaba-token-plan.json +59 -55
  97. package/dist/capabilities/alibaba.json +122 -57
  98. package/dist/capabilities/ambient.json +17 -28
  99. package/dist/capabilities/amd-tokenlab.json +41 -0
  100. package/dist/capabilities/amd.json +6 -6
  101. package/dist/capabilities/anthropic.json +33 -57
  102. package/dist/capabilities/anyapi.json +15 -15
  103. package/dist/capabilities/apiko.json +5 -5
  104. package/dist/capabilities/arcee.json +7 -7
  105. package/dist/capabilities/augure.json +6 -6
  106. package/dist/capabilities/auriko.json +19 -19
  107. package/dist/capabilities/bailing.json +5 -5
  108. package/dist/capabilities/baseten.json +25 -25
  109. package/dist/capabilities/bee.json +4 -4
  110. package/dist/capabilities/berget.json +4 -24
  111. package/dist/capabilities/bothub.json +11 -11
  112. package/dist/capabilities/boundless.json +39 -39
  113. package/dist/capabilities/bumo.json +40 -40
  114. package/dist/capabilities/byteplus.json +29 -29
  115. package/dist/capabilities/cheapaimodel.json +10 -10
  116. package/dist/capabilities/cheapest-token.json +28 -28
  117. package/dist/capabilities/chutes.json +83 -4
  118. package/dist/capabilities/claudinio.json +10 -1
  119. package/dist/capabilities/cline-pass.json +33 -46
  120. package/dist/capabilities/cloudcode.json +12 -19
  121. package/dist/capabilities/cloudflare-workers-ai.json +13 -13
  122. package/dist/capabilities/commandcode.json +137 -152
  123. package/dist/capabilities/concentrate.json +282 -291
  124. package/dist/capabilities/cortecs.json +105 -105
  125. package/dist/capabilities/crossmodel.json +191 -191
  126. package/dist/capabilities/crusoe.json +37 -8
  127. package/dist/capabilities/daoxe.json +9 -9
  128. package/dist/capabilities/databricks.json +124 -124
  129. package/dist/capabilities/deepinfra.json +107 -88
  130. package/dist/capabilities/deepseek.json +3 -3
  131. package/dist/capabilities/digitalocean.json +114 -114
  132. package/dist/capabilities/dinference.json +1 -2
  133. package/dist/capabilities/dothoosh.json +30 -30
  134. package/dist/capabilities/doubleword.json +22 -22
  135. package/dist/capabilities/edenai.json +279 -291
  136. package/dist/capabilities/empiriolabs.json +177 -163
  137. package/dist/capabilities/engy.json +22 -22
  138. package/dist/capabilities/evroc.json +11 -11
  139. package/dist/capabilities/ezkielyna.json +10 -10
  140. package/dist/capabilities/fastrouter.json +85 -89
  141. package/dist/capabilities/fireworks-ai.json +130 -69
  142. package/dist/capabilities/fortytwo.json +9 -3
  143. package/dist/capabilities/freemodel.json +5 -49
  144. package/dist/capabilities/frogbot.json +94 -102
  145. package/dist/capabilities/gisoo.json +20 -20
  146. package/dist/capabilities/gmicloud.json +17 -17
  147. package/dist/capabilities/google.json +54 -54
  148. package/dist/capabilities/graphn.json +15 -15
  149. package/dist/capabilities/greenpt.json +36 -36
  150. package/dist/capabilities/groq.json +4 -17
  151. package/dist/capabilities/helicone.json +83 -85
  152. package/dist/capabilities/hetzner.json +35 -3
  153. package/dist/capabilities/hostinger-router.json +6 -13
  154. package/dist/capabilities/hpc-ai.json +9 -25
  155. package/dist/capabilities/huawei-maas.json +12 -12
  156. package/dist/capabilities/hubris.json +33 -33
  157. package/dist/capabilities/huggingface.json +105 -155
  158. package/dist/capabilities/hyper.json +25 -33
  159. package/dist/capabilities/impossibl.json +147 -194
  160. package/dist/capabilities/inception.json +2 -2
  161. package/dist/capabilities/inceptron.json +4 -4
  162. package/dist/capabilities/inco.json +4 -21
  163. package/dist/capabilities/infer.json +18 -18
  164. package/dist/capabilities/inferall.json +2 -18
  165. package/dist/capabilities/inference-coop.json +15 -15
  166. package/dist/capabilities/inference.json +2 -11
  167. package/dist/capabilities/inferenceapis.json +14 -14
  168. package/dist/capabilities/inferris.json +4 -4
  169. package/dist/capabilities/infersia.json +13 -13
  170. package/dist/capabilities/inferx.json +2 -2
  171. package/dist/capabilities/infomaniak.json +4 -4
  172. package/dist/capabilities/io-net.json +3 -13
  173. package/dist/capabilities/iteracompute.json +43 -81
  174. package/dist/capabilities/jalapeno.json +12 -12
  175. package/dist/capabilities/jiekou.json +23 -171
  176. package/dist/capabilities/jzstoken.json +47 -48
  177. package/dist/capabilities/keln.json +16 -16
  178. package/dist/capabilities/kenari.json +142 -126
  179. package/dist/capabilities/kilo.json +636 -656
  180. package/dist/capabilities/kimi-code-plan-cn.json +5 -5
  181. package/dist/capabilities/kimi-code-plan-global.json +5 -5
  182. package/dist/capabilities/kitani.json +2 -2
  183. package/dist/capabilities/klavo.json +19 -19
  184. package/dist/capabilities/korouter.json +36 -36
  185. package/dist/capabilities/kunavo.json +6 -6
  186. package/dist/capabilities/liquid.json +11 -11
  187. package/dist/capabilities/lithosai.json +2 -2
  188. package/dist/capabilities/llmgateway-providers.json +929 -912
  189. package/dist/capabilities/llmgateway.json +344 -335
  190. package/dist/capabilities/llmtr.json +16 -54
  191. package/dist/capabilities/lowrouter.json +58 -58
  192. package/dist/capabilities/lyceum.json +12 -4
  193. package/dist/capabilities/meganova.json +0 -1
  194. package/dist/capabilities/melious.json +10 -10
  195. package/dist/capabilities/merge-gateway.json +296 -289
  196. package/dist/capabilities/meta.json +7 -7
  197. package/dist/capabilities/minimax-cn-coding-plan.json +5 -5
  198. package/dist/capabilities/minimax-cn.json +5 -5
  199. package/dist/capabilities/minimax-coding-plan.json +5 -5
  200. package/dist/capabilities/minimax.json +5 -5
  201. package/dist/capabilities/mistral.json +14 -30
  202. package/dist/capabilities/mixlayer.json +5 -5
  203. package/dist/capabilities/moark.json +0 -2
  204. package/dist/capabilities/modal.json +11 -11
  205. package/dist/capabilities/model-oracle-ai.json +23 -31
  206. package/dist/capabilities/modelis.json +18 -18
  207. package/dist/capabilities/modular.json +30 -8
  208. package/dist/capabilities/moneo.json +5 -36
  209. package/dist/capabilities/morph.json +15 -15
  210. package/dist/capabilities/munito-eu.json +4 -4
  211. package/dist/capabilities/munito.json +4 -4
  212. package/dist/capabilities/nan.json +23 -23
  213. package/dist/capabilities/nano-gpt.json +602 -595
  214. package/dist/capabilities/nearai.json +97 -97
  215. package/dist/capabilities/nebius.json +24 -25
  216. package/dist/capabilities/neon.json +132 -132
  217. package/dist/capabilities/neuralwatt.json +41 -41
  218. package/dist/capabilities/nokeep.json +4 -4
  219. package/dist/capabilities/novita-ai.json +90 -204
  220. package/dist/capabilities/nvidia.json +28 -69
  221. package/dist/capabilities/oathbreaker.json +24 -1
  222. package/dist/capabilities/obscurify.json +31 -31
  223. package/dist/capabilities/oci.json +6 -6
  224. package/dist/capabilities/ofox.json +219 -583
  225. package/dist/capabilities/ollama-cloud.json +57 -57
  226. package/dist/capabilities/openai.json +57 -57
  227. package/dist/capabilities/opencode-go.json +97 -89
  228. package/dist/capabilities/openreason.json +4 -4
  229. package/dist/capabilities/openrouter.json +555 -564
  230. package/dist/capabilities/opper.json +26 -31
  231. package/dist/capabilities/orcarouter.json +409 -210
  232. package/dist/capabilities/outerlabs.json +25 -25
  233. package/dist/capabilities/ovhcloud.json +21 -22
  234. package/dist/capabilities/pareto.json +2 -7
  235. package/dist/capabilities/perplexity-agent.json +50 -105
  236. package/dist/capabilities/phala.json +30 -30
  237. package/dist/capabilities/pioneer.json +3 -120
  238. package/dist/capabilities/poe.json +129 -129
  239. package/dist/capabilities/powerspring.json +14 -14
  240. package/dist/capabilities/primalabs.json +9 -9
  241. package/dist/capabilities/prime.json +139 -121
  242. package/dist/capabilities/privatemode-ai.json +12 -40
  243. package/dist/capabilities/proxystacks.json +6 -6
  244. package/dist/capabilities/qihang-ai.json +3 -15
  245. package/dist/capabilities/qiniu-ai.json +13 -87
  246. package/dist/capabilities/refuseless.json +4 -11
  247. package/dist/capabilities/regolo-ai.json +10 -14
  248. package/dist/capabilities/requesty.json +439 -183
  249. package/dist/capabilities/routing-run.json +3 -40
  250. package/dist/capabilities/ruapi.json +36 -20
  251. package/dist/capabilities/runcrate.json +5 -5
  252. package/dist/capabilities/runinfra.json +9 -9
  253. package/dist/capabilities/sakana.json +7 -7
  254. package/dist/capabilities/sambanova.json +9 -9
  255. package/dist/capabilities/sandbase.json +25 -25
  256. package/dist/capabilities/sarvam.json +18 -9
  257. package/dist/capabilities/scaleway.json +19 -19
  258. package/dist/capabilities/scnet-token-plan.json +10 -10
  259. package/dist/capabilities/scx-ai.json +24 -40
  260. package/dist/capabilities/sensenova.json +15 -15
  261. package/dist/capabilities/siliconflow-cn.json +43 -77
  262. package/dist/capabilities/siliconflow.json +45 -45
  263. package/dist/capabilities/snowflake-cortex.json +18 -18
  264. package/dist/capabilities/sokkan.json +7 -19
  265. package/dist/capabilities/sparrowcodes.json +23 -23
  266. package/dist/capabilities/stackit.json +1 -2
  267. package/dist/capabilities/standardcompute.json +79 -115
  268. package/dist/capabilities/steadyrouter.json +42 -42
  269. package/dist/capabilities/stepfun-ai-step-plan.json +13 -7
  270. package/dist/capabilities/stepfun-ai.json +20 -6
  271. package/dist/capabilities/stepfun-step-plan.json +13 -6
  272. package/dist/capabilities/stepfun.json +20 -6
  273. package/dist/capabilities/stepping-stone.json +18 -18
  274. package/dist/capabilities/synthetic.json +8 -17
  275. package/dist/capabilities/synthorai.json +27 -27
  276. package/dist/capabilities/teamorouter.json +19 -19
  277. package/dist/capabilities/teapot-router.json +10 -10
  278. package/dist/capabilities/tencent-token-plan-intl.json +126 -0
  279. package/dist/capabilities/tencent-token-plan.json +37 -37
  280. package/dist/capabilities/tencent-tokenhub.json +52 -37
  281. package/dist/capabilities/tensorx.json +38 -38
  282. package/dist/capabilities/tenstorrent.json +4 -4
  283. package/dist/capabilities/the-grid-ai.json +29 -29
  284. package/dist/capabilities/thinkingmachines.json +77 -77
  285. package/dist/capabilities/tinfoil.json +10 -10
  286. package/dist/capabilities/toapis.json +3 -3
  287. package/dist/capabilities/togetherai.json +45 -53
  288. package/dist/capabilities/tokengo.json +20 -20
  289. package/dist/capabilities/tokenify.json +3 -3
  290. package/dist/capabilities/tokenwatt.json +10 -2
  291. package/dist/capabilities/trustedrouter.json +7 -7
  292. package/dist/capabilities/trustedtokens.json +15 -15
  293. package/dist/capabilities/umans-ai-coding-plan.json +11 -11
  294. package/dist/capabilities/umans-ai.json +10 -10
  295. package/dist/capabilities/uncensuredai.json +5 -5
  296. package/dist/capabilities/unorouter.json +1 -22
  297. package/dist/capabilities/unrestricted.json +8 -24
  298. package/dist/capabilities/uplinkswitch.json +20 -20
  299. package/dist/capabilities/upstage.json +1 -13
  300. package/dist/capabilities/vancine.json +23 -23
  301. package/dist/capabilities/vercel.json +593 -563
  302. package/dist/capabilities/verda.json +8 -1
  303. package/dist/capabilities/vivgrid.json +56 -127
  304. package/dist/capabilities/volcengine-coding-plan.json +26 -26
  305. package/dist/capabilities/volcengine.json +25 -24
  306. package/dist/capabilities/vultr.json +14 -67
  307. package/dist/capabilities/wafer.ai.json +16 -16
  308. package/dist/capabilities/wally.json +11 -11
  309. package/dist/capabilities/wandb.json +20 -20
  310. package/dist/capabilities/watt.json +19 -19
  311. package/dist/capabilities/xai.json +6 -6
  312. package/dist/capabilities/xiaomi.json +3 -3
  313. package/dist/capabilities/xpersona.json +11 -11
  314. package/dist/capabilities/xxapi.json +26 -26
  315. package/dist/capabilities/zai-coding-plan.json +18 -18
  316. package/dist/capabilities/zai.json +33 -33
  317. package/dist/capabilities/zenifra.json +33 -33
  318. package/dist/capabilities/zenmux.json +171 -214
  319. package/dist/capabilities/zerogpu.json +11 -11
  320. package/dist/capabilities/zhipuai-coding-plan.json +6 -17
  321. package/dist/capabilities/zhipuai.json +32 -32
  322. package/dist/capabilities/zro.json +6 -6
  323. package/dist/channels/agent-channels.d.ts +22 -0
  324. package/dist/channels/index.cjs +24 -24
  325. package/dist/channels/index.js +2 -2
  326. package/dist/channels/output-processor.d.ts +12 -0
  327. package/dist/channels/reply-tool.d.ts +5 -1
  328. package/dist/channels/state-adapter.d.ts +3 -1
  329. package/dist/channels/stream-helpers.d.ts +17 -0
  330. package/dist/{channels-BZL9RT2i.cjs → channels-CKRPQRmF.cjs} +6 -6
  331. package/dist/{channels-0AO7PMJF.js → channels-nnBeh58G.js} +2 -2
  332. package/dist/coding-agent/index.cjs +7 -7
  333. package/dist/coding-agent/index.js +4 -4
  334. package/dist/{constants-B9ZDvXZ4.cjs → constants-B2FVV_2e.cjs} +13 -1
  335. package/dist/{constants-BmdTvEYN.js → constants-Dro9fuhk.js} +13 -1
  336. package/dist/datasets/experiment/scorer.d.ts +16 -5
  337. package/dist/datasets/index.cjs +9 -9
  338. package/dist/datasets/index.js +2 -2
  339. package/dist/docs/SKILL.md +3 -1
  340. package/dist/docs/assets/SOURCE_MAP.json +1289 -1234
  341. package/dist/docs/references/docs-agents-code-mode.md +38 -2
  342. package/dist/docs/references/docs-agents-human-in-the-loop.md +2 -2
  343. package/dist/docs/references/docs-agents-networks.md +2 -2
  344. package/dist/docs/references/docs-agents-overview.md +15 -6
  345. package/dist/docs/references/docs-agents-processors.md +9 -9
  346. package/dist/docs/references/docs-agents-resumable-streams.md +2 -2
  347. package/dist/docs/references/docs-agents-structured-output.md +6 -6
  348. package/dist/docs/references/docs-agents-tools.md +15 -9
  349. package/dist/docs/references/docs-auth-simple-auth.md +8 -8
  350. package/dist/docs/references/docs-browser.md +4 -2
  351. package/dist/docs/references/docs-channels.md +5 -5
  352. package/dist/docs/references/docs-classifier.md +1 -1
  353. package/dist/docs/references/docs-connections-a2a.md +1 -1
  354. package/dist/docs/references/docs-connections-acp.md +2 -2
  355. package/dist/docs/references/docs-connections-overview.md +1 -1
  356. package/dist/docs/references/docs-connections-sdk-agents.md +6 -6
  357. package/dist/docs/references/docs-deployment-workers.md +2 -2
  358. package/dist/docs/references/docs-develop.md +1 -1
  359. package/dist/docs/references/docs-evals-custom-scorers.md +2 -2
  360. package/dist/docs/references/docs-evals-multi-turn.md +2 -2
  361. package/dist/docs/references/docs-guides-build-an-eval-loop.md +2 -2
  362. package/dist/docs/references/docs-guides-context-engineering.md +3 -3
  363. package/dist/docs/references/docs-guides-streaming.md +1 -1
  364. package/dist/docs/references/docs-harness-agent-controller.md +6 -3
  365. package/dist/docs/references/docs-harness-background-tasks.md +48 -7
  366. package/dist/docs/references/docs-harness-durable-agents.md +6 -5
  367. package/dist/docs/references/docs-harness-goals.md +2 -2
  368. package/dist/docs/references/docs-harness-schedules.md +35 -1
  369. package/dist/docs/references/docs-knowledge-agents-and-tools.md +4 -2
  370. package/dist/docs/references/docs-knowledge-importers.md +22 -1
  371. package/dist/docs/references/docs-knowledge-overview.md +1 -1
  372. package/dist/docs/references/docs-knowledge-scopes-and-access.md +1 -1
  373. package/dist/docs/references/docs-knowledge-search.md +1 -1
  374. package/dist/docs/references/docs-mastra-platform-observability-overview.md +3 -189
  375. package/dist/docs/references/docs-memory-memory-processors.md +8 -8
  376. package/dist/docs/references/docs-memory-message-history.md +28 -3
  377. package/dist/docs/references/docs-memory-observational-memory.md +1 -1
  378. package/dist/docs/references/docs-memory-semantic-recall.md +2 -2
  379. package/dist/docs/references/docs-memory-working-memory.md +3 -2
  380. package/dist/docs/references/docs-sandbox-lsp.md +5 -6
  381. package/dist/docs/references/docs-sandbox-overview.md +21 -1
  382. package/dist/docs/references/docs-sandbox-skills.md +3 -1
  383. package/dist/docs/references/docs-server-mastra-client.md +1 -1
  384. package/dist/docs/references/docs-server-mcp.md +23 -0
  385. package/dist/docs/references/docs-server-pubsub.md +22 -2
  386. package/dist/docs/references/docs-server-request-context.md +4 -4
  387. package/dist/docs/references/docs-signals-notifications.md +2 -2
  388. package/dist/docs/references/docs-signals-overview.md +1 -1
  389. package/dist/docs/references/docs-signals-running-across-processes.md +3 -0
  390. package/dist/docs/references/docs-signals-sending-signals.md +20 -7
  391. package/dist/docs/references/docs-signals-signal-providers.md +18 -2
  392. package/dist/docs/references/docs-signals-state-signals.md +1 -0
  393. package/dist/docs/references/docs-signals-thread-streams.md +12 -0
  394. package/dist/docs/references/docs-skills.md +8 -5
  395. package/dist/docs/references/docs-storage.md +12 -12
  396. package/dist/docs/references/docs-studio-editor.md +2 -2
  397. package/dist/docs/references/docs-subagents.md +26 -3
  398. package/dist/docs/references/docs-workflows-overview.md +2 -0
  399. package/dist/docs/references/integrations-agentic-ui-copilotkit.md +1 -1
  400. package/dist/docs/references/integrations-agentic-ui-openui.md +1 -1
  401. package/dist/docs/references/integrations-channels-discord.md +1 -1
  402. package/dist/docs/references/integrations-channels-github.md +1 -1
  403. package/dist/docs/references/integrations-channels-imessage.md +2 -2
  404. package/dist/docs/references/integrations-channels-ring.md +2 -2
  405. package/dist/docs/references/integrations-channels-slack.md +1 -1
  406. package/dist/docs/references/integrations-channels-teams.md +1 -1
  407. package/dist/docs/references/integrations-channels-telegram.md +1 -1
  408. package/dist/docs/references/integrations-channels-whatsapp.md +1 -1
  409. package/dist/docs/references/integrations-tools-firecrawl.md +1 -1
  410. package/dist/docs/references/integrations.md +1 -0
  411. package/dist/docs/references/reference-acp-acp-agent.md +1 -1
  412. package/dist/docs/references/reference-acp-create-acp-tool.md +1 -1
  413. package/dist/docs/references/reference-agent-controller-agent-controller-class.md +3 -1
  414. package/dist/docs/references/reference-agent-controller-session.md +55 -8
  415. package/dist/docs/references/reference-agents-agent.md +40 -14
  416. package/dist/docs/references/reference-agents-channels.md +11 -11
  417. package/dist/docs/references/reference-agents-createSkill.md +20 -1
  418. package/dist/docs/references/reference-agents-durable-agent.md +2 -2
  419. package/dist/docs/references/reference-agents-generate.md +1 -1
  420. package/dist/docs/references/reference-agents-getLLM.md +2 -2
  421. package/dist/docs/references/reference-agents-getMetadata.md +2 -2
  422. package/dist/docs/references/reference-agents-network.md +3 -3
  423. package/dist/docs/references/reference-browser-mastra-browser.md +1 -1
  424. package/dist/docs/references/reference-channels-thread-link.md +1 -1
  425. package/dist/docs/references/reference-classifier-classifier.md +2 -0
  426. package/dist/docs/references/reference-coding-agent-build-base-prompt.md +1 -1
  427. package/dist/docs/references/reference-coding-agent-create-coding-agent.md +7 -7
  428. package/dist/docs/references/reference-configuration.md +15 -14
  429. package/dist/docs/references/reference-core-getAgentById.md +1 -1
  430. package/dist/docs/references/reference-core-getWorkspaceById.md +37 -0
  431. package/dist/docs/references/reference-core-mastra-model-gateway.md +1 -1
  432. package/dist/docs/references/reference-datasets-startExperiment.md +1 -1
  433. package/dist/docs/references/reference-editor-mastra-editor.md +2 -2
  434. package/dist/docs/references/reference-evals-create-scorer.md +5 -5
  435. package/dist/docs/references/reference-evals-run-evals.md +1 -1
  436. package/dist/docs/references/reference-file-based-agents-config.md +3 -3
  437. package/dist/docs/references/reference-file-based-agents-schedules.md +1 -1
  438. package/dist/docs/references/reference-file-based-agents-subagents.md +3 -3
  439. package/dist/docs/references/reference-file-based-agents-workspace.md +1 -1
  440. package/dist/docs/references/reference-knowledge-knowledge-class.md +12 -0
  441. package/dist/docs/references/reference-knowledge-knowledge-tools.md +4 -5
  442. package/dist/docs/references/reference-knowledge-limits.md +16 -16
  443. package/dist/docs/references/reference-manual-install.md +2 -2
  444. package/dist/docs/references/reference-memory-memory-class.md +3 -3
  445. package/dist/docs/references/reference-memory-observational-memory.md +15 -3
  446. package/dist/docs/references/reference-observability-metrics-metrics-context.md +63 -3
  447. package/dist/docs/references/reference-observability-tracing-bridges-datadog.md +12 -11
  448. package/dist/docs/references/reference-observability-tracing-configuration.md +2 -2
  449. package/dist/docs/references/reference-observability-tracing-exporters-datadog.md +14 -12
  450. package/dist/docs/references/reference-observability-tracing-interfaces.md +10 -6
  451. package/dist/docs/references/reference-processors-batch-parts-processor.md +1 -1
  452. package/dist/docs/references/reference-processors-classifier-processor.md +2 -2
  453. package/dist/docs/references/reference-processors-cyber-refusal-handler.md +1 -1
  454. package/dist/docs/references/reference-processors-language-detector.md +1 -1
  455. package/dist/docs/references/reference-processors-message-history-processor.md +1 -1
  456. package/dist/docs/references/reference-processors-model-selection-processor.md +3 -3
  457. package/dist/docs/references/reference-processors-moderation-processor.md +4 -4
  458. package/dist/docs/references/reference-processors-pii-detector.md +2 -2
  459. package/dist/docs/references/reference-processors-prefill-error-handler.md +2 -2
  460. package/dist/docs/references/reference-processors-processor-interface.md +22 -10
  461. package/dist/docs/references/reference-processors-prompt-injection-detector.md +1 -1
  462. package/dist/docs/references/reference-processors-provider-history-compat.md +1 -1
  463. package/dist/docs/references/reference-processors-response-cache.md +1 -1
  464. package/dist/docs/references/reference-processors-semantic-recall-processor.md +1 -1
  465. package/dist/docs/references/reference-processors-skill-search-processor.md +1 -1
  466. package/dist/docs/references/reference-processors-skills-processor.md +1 -1
  467. package/dist/docs/references/reference-processors-stream-error-retry-processor.md +3 -3
  468. package/dist/docs/references/reference-processors-system-prompt-scrubber.md +2 -2
  469. package/dist/docs/references/reference-processors-token-limiter-processor.md +3 -3
  470. package/dist/docs/references/reference-processors-tool-call-filter.md +2 -2
  471. package/dist/docs/references/reference-processors-tool-search-processor.md +6 -6
  472. package/dist/docs/references/reference-processors-unicode-normalizer.md +1 -1
  473. package/dist/docs/references/reference-processors-working-memory-processor.md +1 -1
  474. package/dist/docs/references/reference-pubsub-base.md +6 -4
  475. package/dist/docs/references/reference-pubsub-caching-pubsub.md +3 -1
  476. package/dist/docs/references/reference-pubsub-redis-streams.md +3 -5
  477. package/dist/docs/references/reference-pubsub-valkey-streams.md +2 -2
  478. package/dist/docs/references/reference-rag-chunking-and-embedding.md +1 -1
  479. package/dist/docs/references/reference-rag-graph-rag-guide.md +2 -2
  480. package/dist/docs/references/reference-rag-retrieval.md +13 -13
  481. package/dist/docs/references/reference-signals-create-notification-inbox-tool.md +1 -1
  482. package/dist/docs/references/reference-signals-time-signal-provider.md +137 -0
  483. package/dist/docs/references/reference-storage-composite.md +4 -0
  484. package/dist/docs/references/reference-storage-overview.md +30 -30
  485. package/dist/docs/references/reference-storage-retention.md +20 -20
  486. package/dist/docs/references/reference-templates-overview.md +31 -1
  487. package/dist/docs/references/reference-tools-create-code-mode.md +23 -1
  488. package/dist/docs/references/reference-tools-vector-query-tool.md +11 -3
  489. package/dist/docs/references/reference-voice-overview.md +39 -54
  490. package/dist/docs/references/reference-voice-speech-to-speech.md +11 -11
  491. package/dist/docs/references/reference-voice-speech-to-text.md +1 -1
  492. package/dist/docs/references/reference-voice-text-to-speech.md +1 -1
  493. package/dist/docs/references/reference-voice-voice.addInstructions.md +1 -1
  494. package/dist/docs/references/reference-voice-voice.listen.md +2 -1
  495. package/dist/docs/references/reference-voice-voice.speak.md +1 -3
  496. package/dist/docs/references/reference-workers-overview.md +3 -1
  497. package/dist/docs/references/reference-workflows-run-methods-restart.md +2 -0
  498. package/dist/docs/references/reference-workflows-step.md +1 -1
  499. package/dist/docs/references/reference-workflows-workflow-methods-map.md +1 -1
  500. package/dist/docs/references/reference-workflows-workflow.md +1 -1
  501. package/dist/docs/references/reference-workspace-factory-sandbox.md +8 -6
  502. package/dist/docs/references/reference-workspace-local-filesystem.md +1 -1
  503. package/dist/docs/references/reference-workspace-local-sandbox.md +1 -1
  504. package/dist/docs/references/reference-workspace-sandbox.md +14 -0
  505. package/dist/docs/references/reference.md +3 -0
  506. package/dist/evals/index.cjs +13 -13
  507. package/dist/evals/index.js +2 -2
  508. package/dist/evals/scoreTraces/index.cjs +4 -4
  509. package/dist/evals/scoreTraces/index.js +2 -2
  510. package/dist/events/index.cjs +2 -2
  511. package/dist/events/index.js +2 -2
  512. package/dist/events/pubsub.d.ts +1 -3
  513. package/dist/{run-registry-lLRc7EE6.cjs → execution-fence-CKFtgb2u.cjs} +13789 -9619
  514. package/dist/{run-registry-DhOKJtlb.js → execution-fence-DTrAehtv.js} +14769 -10677
  515. package/dist/harness/index.cjs +3 -3
  516. package/dist/harness/index.js +3 -3
  517. package/dist/index.cjs +1 -1
  518. package/dist/index.d.ts +1 -0
  519. package/dist/index.js +1 -1
  520. package/dist/integration/index.cjs +1 -1
  521. package/dist/integration/index.js +1 -1
  522. package/dist/knowledge/agent-scopes.d.ts +17 -0
  523. package/dist/knowledge/declarations.d.ts +2 -0
  524. package/dist/knowledge/held-scopes-state-processor.d.ts +50 -0
  525. package/dist/knowledge/importers/overlay.d.ts +170 -0
  526. package/dist/knowledge/importers/sink.d.ts +17 -1
  527. package/dist/knowledge/importers/types.d.ts +16 -0
  528. package/dist/knowledge/index.cjs +2156 -290
  529. package/dist/knowledge/index.d.ts +18 -2
  530. package/dist/knowledge/index.js +2043 -179
  531. package/dist/knowledge/links.d.ts +27 -0
  532. package/dist/knowledge/page-tools.d.ts +25 -0
  533. package/dist/knowledge/pinned-state-processor.d.ts +2 -2
  534. package/dist/knowledge/run.d.ts +5 -0
  535. package/dist/knowledge/scope-runtime.d.ts +6 -0
  536. package/dist/llm/index.cjs +3 -3
  537. package/dist/llm/index.js +3 -3
  538. package/dist/llm/model/base.types.d.ts +3 -1
  539. package/dist/llm/model/gateways/opencode-session-header.d.ts +28 -0
  540. package/dist/llm/model/mastra-gateway-provider-tools.d.ts +9 -6
  541. package/dist/llm/model/model.d.ts +1 -1
  542. package/dist/llm/model/model.loop.d.ts +1 -1
  543. package/dist/llm/model/model.loop.types.d.ts +3 -1
  544. package/dist/llm/model/provider-options.d.ts +4 -3
  545. package/dist/llm/model/provider-types.generated.d.ts +7184 -7514
  546. package/dist/llm/model/resolve-model.d.ts +1 -0
  547. package/dist/llm/model/shared.types.d.ts +1 -0
  548. package/dist/llm/reasoning/anthropic-thinking.d.ts +5 -0
  549. package/dist/llm/reasoning/gemini-thinking.d.ts +24 -0
  550. package/dist/llm/reasoning/index.cjs +389 -0
  551. package/dist/llm/reasoning/index.d.ts +8 -0
  552. package/dist/llm/reasoning/index.js +362 -0
  553. package/dist/llm/reasoning/model-fallback.d.ts +75 -0
  554. package/dist/llm/reasoning/model-ids.d.ts +5 -0
  555. package/dist/llm/reasoning/thinking-provider-options.d.ts +10 -0
  556. package/dist/llm/reasoning/thinking-request.d.ts +14 -0
  557. package/dist/llm/reasoning/thinking.d.ts +37 -0
  558. package/dist/{llm-B46V7Mi7.js → llm-B6EYEbYf.js} +68 -90
  559. package/dist/{llm-B4AeSFvV.cjs → llm-P6sWWNc6.cjs} +68 -90
  560. package/dist/loop/index.cjs +15 -15
  561. package/dist/loop/index.js +2 -2
  562. package/dist/loop/loop-runtime.d.ts +1 -1
  563. package/dist/loop/server.cjs +1 -1
  564. package/dist/loop/server.js +1 -1
  565. package/dist/loop/shared/signal-outcome.d.ts +1 -1
  566. package/dist/loop/shared/steps/signal-drain-core.d.ts +9 -3
  567. package/dist/{manager-BRAvwB9b.js → manager-BvnXZAFj.js} +112 -39
  568. package/dist/{manager-BwDxA1Nn.cjs → manager-tQrH4_MZ.cjs} +124 -51
  569. package/dist/mastra/index.cjs +1 -1
  570. package/dist/mastra/index.d.ts +35 -4
  571. package/dist/mastra/index.js +1 -1
  572. package/dist/{mastra-CIx6qEq2.js → mastra-BhPympcg.js} +84 -28
  573. package/dist/{mastra-DBhdD172.cjs → mastra-CtL0diD6.cjs} +124 -68
  574. package/dist/memory/index.cjs +25 -25
  575. package/dist/memory/index.js +3 -3
  576. package/dist/memory/mock.d.ts +2 -3
  577. package/dist/memory/om-events/index.cjs +189 -0
  578. package/dist/memory/om-events/index.d.ts +17 -0
  579. package/dist/memory/om-events/index.js +188 -0
  580. package/dist/{message-list-DfN9mWeN.cjs → message-list-C0F2sDNC.cjs} +233 -131
  581. package/dist/{message-list-wI71UGxk.js → message-list-RgFlLrxG.js} +233 -131
  582. package/dist/{model-CYhAa5qO.cjs → model-Cy0Z_3FQ.cjs} +5 -4
  583. package/dist/{model-CJMsDU8w.js → model-D2XwLRQi.js} +5 -4
  584. package/dist/{netlify-Bw7Vd58y.cjs → netlify-DgHrsLpJ.cjs} +41446 -30449
  585. package/dist/{netlify-C9aJA6Cv.js → netlify-d2fyniAS.js} +31257 -20278
  586. package/dist/notifications/index.cjs +18 -18
  587. package/dist/notifications/index.js +2 -2
  588. package/dist/observability/index.cjs +1 -1
  589. package/dist/observability/index.js +1 -1
  590. package/dist/observability/types/tracing.d.ts +1 -1
  591. package/dist/{observability-D7RNOAPx.js → observability-DPDWibyH.js} +648 -648
  592. package/dist/{output-helpers-DgsH4aTb.cjs → output-helpers-By5FbLpp.cjs} +71 -73
  593. package/dist/{output-helpers-CVzhy1Y0.js → output-helpers-k2-48ssH.js} +72 -74
  594. package/dist/processor-provider/index.cjs +10 -10
  595. package/dist/processor-provider/index.js +1 -1
  596. package/dist/processors/index.cjs +65 -65
  597. package/dist/processors/index.js +2 -2
  598. package/dist/processors/processors/tool-search.d.ts +2 -2
  599. package/dist/processors/runner.d.ts +12 -0
  600. package/dist/{provider-registry-DOfYSEju.js → provider-registry-B9UP28b4.js} +20113 -21015
  601. package/dist/{provider-registry-Bn_7VvZ8.cjs → provider-registry-Brcz84P1.cjs} +20113 -21015
  602. package/dist/provider-registry.json +21135 -22118
  603. package/dist/{registry-generator-Cw594Ttt.js → registry-generator-BDZrKvMb.js} +1 -1
  604. package/dist/{registry-generator-BnK5Npgr.cjs → registry-generator-DSvbAYar.cjs} +1 -1
  605. package/dist/{rehydrate-Dgqkw7Py.js → rehydrate-Cme19iOk.js} +2 -2
  606. package/dist/{rehydrate-BWnd_TEx.cjs → rehydrate-vAlkgCKL.cjs} +14 -14
  607. package/dist/relevance/index.cjs +3 -3
  608. package/dist/relevance/index.js +2 -2
  609. package/dist/{scheduler-B-VZUvv_.js → scheduler-0ShtMM1I.js} +71 -21
  610. package/dist/{scheduler-D00X03jQ.cjs → scheduler-CMjK0LoQ.cjs} +82 -20
  611. package/dist/server/types.d.ts +6 -0
  612. package/dist/{signal-provider-BslnAjWG.js → signal-provider-B_mfW-J4.js} +1 -1
  613. package/dist/{signal-provider-BFAvh_AJ.cjs → signal-provider-D9gbevHN.cjs} +1 -1
  614. package/dist/signals/index.cjs +4 -3
  615. package/dist/signals/index.d.ts +1 -0
  616. package/dist/signals/index.js +4 -4
  617. package/dist/signals/time-signal-provider.d.ts +70 -0
  618. package/dist/signals-BwDXGqxc.cjs +358 -0
  619. package/dist/signals-TznxWfM3.js +347 -0
  620. package/dist/skills/create-skill.d.ts +3 -0
  621. package/dist/skills/index.cjs +1 -1
  622. package/dist/skills/index.js +1 -1
  623. package/dist/skills/inline-skill-source.d.ts +5 -1
  624. package/dist/skills/types.d.ts +16 -1
  625. package/dist/{source-fNa6u1kH.js → source-B3He4_mz.js} +7 -0
  626. package/dist/{source-BVOi8Xhp.cjs → source-C_nWbqI0.cjs} +7 -0
  627. package/dist/{state-processor-B9kxpM53.js → state-processor-B_KsS82m.js} +1 -1
  628. package/dist/{state-processor-kRNZ38Nf.cjs → state-processor-DaSmhVUX.cjs} +1 -1
  629. package/dist/storage/constants.cjs +1 -1
  630. package/dist/storage/constants.js +1 -1
  631. package/dist/storage/domains/agents/index.cjs +1 -1
  632. package/dist/storage/domains/agents/index.js +1 -1
  633. package/dist/storage/domains/inmemory-db.d.ts +6 -0
  634. package/dist/storage/domains/knowledge/base.d.ts +155 -5
  635. package/dist/storage/domains/knowledge/importers-inmemory.d.ts +10 -0
  636. package/dist/storage/domains/knowledge/importers.d.ts +39 -0
  637. package/dist/storage/domains/knowledge/inmemory.d.ts +12 -0
  638. package/dist/storage/domains/knowledge/pages-inmemory.d.ts +54 -12
  639. package/dist/storage/domains/knowledge/pages.d.ts +90 -1
  640. package/dist/storage/domains/memory/base.d.ts +117 -0
  641. package/dist/storage/domains/memory/index.d.ts +1 -0
  642. package/dist/storage/domains/memory/inmemory.d.ts +39 -0
  643. package/dist/storage/domains/memory/queue-thread.d.ts +42 -0
  644. package/dist/storage/domains/schedules/base.d.ts +31 -2
  645. package/dist/storage/domains/schedules/inmemory.d.ts +9 -2
  646. package/dist/storage/domains/workflows/base.d.ts +32 -5
  647. package/dist/storage/domains/workflows/inmemory.d.ts +7 -6
  648. package/dist/storage/domains/workflows/journal.d.ts +16 -1
  649. package/dist/storage/index.cjs +192 -186
  650. package/dist/storage/index.js +6 -6
  651. package/dist/storage/types.d.ts +14 -0
  652. package/dist/storage/workflow-snapshot.d.ts +4 -0
  653. package/dist/storage/workflow-step-guard.d.ts +5 -0
  654. package/dist/stream/base/output.d.ts +8 -0
  655. package/dist/stream/index.cjs +2 -2
  656. package/dist/stream/index.js +2 -2
  657. package/dist/{stream-BIDts1fZ.cjs → stream-B9y9VYqr.cjs} +179 -22
  658. package/dist/{stream-C8HKG3qC.js → stream-DSVk0bct.js} +138 -23
  659. package/dist/telemetry/index.cjs +1 -1
  660. package/dist/telemetry/index.js +1 -1
  661. package/dist/test-utils/llm-mock.cjs +1 -1
  662. package/dist/test-utils/llm-mock.js +1 -1
  663. package/dist/{to-prompt-B9eZo2U5.cjs → to-prompt-CG-LyaBY.cjs} +9 -0
  664. package/dist/{to-prompt-BsDtVXrf.js → to-prompt-CMlVGYxC.js} +9 -0
  665. package/dist/{tool-Z3bykc1m.js → tool-DIFduuTw.js} +2 -5
  666. package/dist/{tool-CYlT2UA-.cjs → tool-Dn9WSDVn.cjs} +2 -5
  667. package/dist/tool-loop-agent/index.cjs +1 -1
  668. package/dist/tool-loop-agent/index.js +1 -1
  669. package/dist/{tool-loop-agent-PEY5a1R6.cjs → tool-loop-agent-C3wj9NhP.cjs} +5 -5
  670. package/dist/{tool-loop-agent-DM5V_0XS.js → tool-loop-agent-e2Bi-mrf.js} +4 -4
  671. package/dist/{toolchecks-DrsZdc3S.js → toolchecks-CRAfUe9H.js} +1 -1
  672. package/dist/{toolchecks-MFU48cit.cjs → toolchecks-DbBsQGHW.cjs} +1 -1
  673. package/dist/tools/code-mode/index.d.ts +2 -0
  674. package/dist/tools/code-mode/log-collector.d.ts +49 -0
  675. package/dist/tools/code-mode/types.d.ts +71 -0
  676. package/dist/tools/index.cjs +7 -5
  677. package/dist/tools/index.d.ts +1 -0
  678. package/dist/tools/index.js +6 -6
  679. package/dist/tools/is-vercel-tool.cjs +1 -1
  680. package/dist/tools/is-vercel-tool.js +1 -1
  681. package/dist/tools/tool.d.ts +2 -4
  682. package/dist/tools/types.d.ts +1 -0
  683. package/dist/{tools-CGF5Ik6j.cjs → tools-C2q0ougI.cjs} +430 -62
  684. package/dist/{tools-CDfyMpzN.js → tools-ybbz1YKg.js} +419 -63
  685. package/dist/{utils-CxMSu_wc.cjs → utils-B87rm4F-.cjs} +12 -10
  686. package/dist/{utils-DcnKVK34.js → utils-DCDsj1CG.js} +12 -10
  687. package/dist/utils.cjs +3 -3
  688. package/dist/utils.js +3 -3
  689. package/dist/{validate-RVKgazCf.cjs → validate-XPZLQRoc.cjs} +1 -1
  690. package/dist/{validate-Dn750ciE.js → validate-_e8OoEh5.js} +1 -1
  691. package/dist/vector/index.cjs +9 -9
  692. package/dist/vector/index.js +2 -2
  693. package/dist/worker/index.cjs +1 -1
  694. package/dist/worker/index.js +1 -1
  695. package/dist/worker/workers/orchestration-worker.d.ts +1 -0
  696. package/dist/{worker-SDi9jbP5.js → worker-BAstsOqw.js} +12 -7
  697. package/dist/{worker-CFPu9qwV.cjs → worker-CGWclXz3.cjs} +25 -14
  698. package/dist/{worker-DJPAdazC.js → worker-DvI9J9Qw.js} +2 -2
  699. package/dist/{worker-Dx0ZHMGX.cjs → worker-DzMDk--h.cjs} +3 -3
  700. package/dist/{workflow-ZFOz_365.cjs → workflow-BFF2mNDa.cjs} +30 -38
  701. package/dist/{workflow-DkBqNn7X.js → workflow-DcpI9eNC.js} +26 -34
  702. package/dist/workflows/builder/index.cjs +1 -1
  703. package/dist/workflows/builder/index.js +1 -1
  704. package/dist/workflows/evented/execution-engine.d.ts +3 -1
  705. package/dist/workflows/evented/index.cjs +10 -10
  706. package/dist/workflows/evented/index.js +1 -1
  707. package/dist/workflows/evented/setup-warning.d.ts +11 -0
  708. package/dist/workflows/evented/workflow-event-processor/index.d.ts +10 -4
  709. package/dist/workflows/evented/workflow-event-processor/loop.d.ts +1 -1
  710. package/dist/workflows/evented/workflow-event-processor/parallel.d.ts +2 -2
  711. package/dist/workflows/evented/workflow-event-processor/sleep.d.ts +2 -2
  712. package/dist/workflows/evented/workflow.d.ts +8 -3
  713. package/dist/workflows/handlers/entry.d.ts +8 -0
  714. package/dist/workflows/index.cjs +57 -55
  715. package/dist/workflows/index.js +6 -6
  716. package/dist/workflows/run-storage.d.ts +27 -3
  717. package/dist/workflows/scheduler/claim.d.ts +51 -0
  718. package/dist/workflows/scheduler/index.d.ts +2 -0
  719. package/dist/workflows/step.d.ts +2 -0
  720. package/dist/workflows/types.d.ts +16 -0
  721. package/dist/workflows/workflow.d.ts +90 -11
  722. package/dist/workspace/filesystem/local-filesystem.d.ts +13 -0
  723. package/dist/workspace/index.cjs +3 -1
  724. package/dist/workspace/index.d.ts +1 -1
  725. package/dist/workspace/index.js +2 -2
  726. package/dist/workspace/lsp/manager.d.ts +19 -4
  727. package/dist/workspace/sandbox/local-sandbox.d.ts +11 -0
  728. package/dist/workspace/sandbox/mastra-sandbox.d.ts +17 -0
  729. package/dist/workspace/sandbox/sandbox.d.ts +2 -0
  730. package/dist/workspace/sandbox/teardown-context.d.ts +74 -0
  731. package/dist/workspace/tools/index.d.ts +1 -0
  732. package/dist/workspace/tools/media.d.ts +20 -1
  733. package/dist/workspace/tools/recreate-sandbox.d.ts +24 -0
  734. package/dist/{workspace-X2RHJZU9.cjs → workspace-BQD4tcQi.cjs} +614 -135
  735. package/dist/{workspace-DY2Nxiyi.js → workspace-sqcfdZRR.js} +602 -135
  736. package/llm/reasoning.d.ts +1 -0
  737. package/memory/om-events.d.ts +1 -0
  738. package/package.json +29 -8
  739. package/skills/mastra/SKILL.md +171 -0
  740. package/skills/mastra/references/common-errors.md +557 -0
  741. package/skills/mastra/references/core-concepts.md +21 -0
  742. package/skills/mastra/references/create-mastra.md +233 -0
  743. package/skills/mastra/references/embedded-docs.md +103 -0
  744. package/skills/mastra/references/feedback.md +69 -0
  745. package/skills/mastra/references/gateway.md +66 -0
  746. package/skills/mastra/references/mastra-api.md +222 -0
  747. package/skills/mastra/references/migration-guide.md +185 -0
  748. package/skills/mastra/references/model-selection.md +29 -0
  749. package/skills/mastra/references/platform.md +164 -0
  750. package/skills/mastra/references/remote-docs.md +193 -0
  751. package/skills/mastra/references/trace-query.md +150 -0
  752. package/skills/mastra/scripts/provider-registry.mjs +271 -0
  753. package/src/llm/model/provider-types.generated.d.ts +7184 -7514
  754. package/dist/capabilities/ai21.json +0 -4
  755. package/dist/capabilities/clarifai.json +0 -42
  756. package/dist/capabilities/jad-ai.json +0 -20
  757. package/dist/capabilities/llmtech.json +0 -16
  758. package/dist/signals-B1JSj-Ew.cjs +0 -58
  759. package/dist/signals-De9VnwL2.js +0 -53
  760. package/dist/{observability-B0R_D1PZ.cjs → observability-VaoaeadK.cjs} +647 -647
@@ -0,0 +1,2034 @@
1
+ import { FetchFunction, InferSchema, Resolvable, WORKFLOW_DESERIALIZE, WORKFLOW_SERIALIZE, WebSocketConstructor } from "../../@ai-sdk_provider-utils@5.0.81/dist/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, FilesV4, ImageModelV4, JSONObject, JSONValue, LanguageModelV4, ProviderV4, SkillsV4, SpeechModelV4, TranscriptionModelV4 } from "../../@ai-sdk_provider@4.0.38/dist/index.js";
3
+ import { z } from "zod/v4";
4
+ //#region src/openai-config.d.ts
5
+ type OpenAIHeaders = Record<string, string | undefined>;
6
+ type OpenAIConfig = {
7
+ provider: string;
8
+ /** Model ID sent to the API. Defaults to the model's reported ID. */
9
+ requestModelId?: string;
10
+ baseURL?: string;
11
+ url: (options: {
12
+ modelId: string;
13
+ path: string;
14
+ }) => string;
15
+ headers?: Resolvable<OpenAIHeaders>;
16
+ fetch?: FetchFunction;
17
+ webSocket?: WebSocketConstructor;
18
+ generateId?: () => string;
19
+ /**
20
+ * Whether Responses API message input items must include an explicit
21
+ * `type: 'message'` discriminator.
22
+ *
23
+ * @see https://github.com/vercel/ai/issues/20180
24
+ */
25
+ explicitMessageItemType?: boolean;
26
+ /**
27
+ * Whether the provider supports the
28
+ * `web_search_call.action.sources` Responses API include value.
29
+ *
30
+ * Defaults to `true`.
31
+ */
32
+ supportsWebSearchSourcesInclude?: boolean;
33
+ /**
34
+ * This is soft-deprecated. Use provider references (e.g. `{ openai: 'file-abc123' }`)
35
+ * in file part data instead. File ID prefixes used to identify file IDs
36
+ * in Responses API. When undefined, all string file data is treated as
37
+ * base64 content.
38
+ *
39
+ * TODO: remove in v8
40
+ */
41
+ fileIdPrefixes?: readonly string[];
42
+ };
43
+ //#endregion
44
+ //#region src/openai-decision-model.d.ts
45
+ type OpenAIDecisionModelId = 'gpt-6-luna' | (string & {});
46
+ //#endregion
47
+ //#region src/chat/openai-chat-language-model-options.d.ts
48
+ type OpenAIChatModelId = 'o1' | 'o1-2024-12-17' | 'o3-mini' | 'o3-mini-2025-01-31' | 'o3' | 'o3-2025-04-16' | 'o4-mini' | 'o4-mini-2025-04-16' | 'gpt-4.1' | 'gpt-4.1-2025-04-14' | 'gpt-4.1-mini' | 'gpt-4.1-mini-2025-04-14' | 'gpt-4.1-nano' | 'gpt-4.1-nano-2025-04-14' | 'gpt-4o' | 'gpt-4o-2024-05-13' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-11-20' | 'gpt-4o-audio-preview' | 'gpt-4o-audio-preview-2024-12-17' | 'gpt-4o-audio-preview-2025-06-03' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4o-mini-audio-preview' | 'gpt-4o-mini-audio-preview-2024-12-17' | 'gpt-4o-search-preview' | 'gpt-4o-search-preview-2025-03-11' | 'gpt-4o-mini-search-preview' | 'gpt-4o-mini-search-preview-2025-03-11' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-16k' | 'gpt-5' | 'gpt-5-2025-08-07' | 'gpt-5-mini' | 'gpt-5-mini-2025-08-07' | 'gpt-5-nano' | 'gpt-5-nano-2025-08-07' | 'gpt-5-chat-latest' | 'gpt-5.1' | 'gpt-5.1-2025-11-13' | 'gpt-5.1-chat-latest' | 'gpt-5.2' | 'gpt-5.2-2025-12-11' | 'gpt-5.2-chat-latest' | 'gpt-5.2-pro' | 'gpt-5.2-pro-2025-12-11' | 'gpt-5.3-chat-latest' | 'gpt-5.4' | 'gpt-5.4-2026-03-05' | 'gpt-5.4-mini' | 'gpt-5.4-mini-2026-03-17' | 'gpt-5.4-nano' | 'gpt-5.4-nano-2026-03-17' | 'gpt-5.4-pro' | 'gpt-5.4-pro-2026-03-05' | 'gpt-5.5' | 'gpt-5.5-2026-04-23' | 'gpt-5.6' | 'gpt-5.6-luna' | 'gpt-5.6-sol' | 'gpt-5.6-terra' | 'gpt-6-astra' | 'gpt-6.1-sol' | 'gpt-6.1-terra' | 'gpt-6-luna' | 'gpt-6-sol' | (string & {});
49
+ declare const openaiLanguageModelChatOptions: import("../../@ai-sdk_provider-utils@5.0.81/dist/index.js").LazySchema<{
50
+ logitBias?: Record<number, number> | undefined;
51
+ logprobs?: number | boolean | undefined;
52
+ parallelToolCalls?: boolean | undefined;
53
+ user?: string | undefined;
54
+ reasoningEffort?: "none" | "low" | "medium" | "high" | "xhigh" | "max" | "minimal" | undefined;
55
+ maxCompletionTokens?: number | undefined;
56
+ store?: boolean | undefined;
57
+ metadata?: Record<string, string> | undefined;
58
+ prediction?: Record<string, any> | undefined;
59
+ serviceTier?: "default" | "auto" | "flex" | "priority" | "fast" | "ultrafast" | undefined;
60
+ strictJsonSchema?: boolean | undefined;
61
+ textVerbosity?: "low" | "medium" | "high" | undefined;
62
+ promptCacheKey?: string | undefined;
63
+ promptCacheOptions?: {
64
+ mode?: "implicit" | "explicit" | undefined;
65
+ ttl?: "30m" | undefined;
66
+ } | undefined;
67
+ promptCacheRetention?: "in_memory" | "24h" | undefined;
68
+ safetyIdentifier?: string | undefined;
69
+ systemMessageMode?: "developer" | "system" | "remove" | undefined;
70
+ forceReasoning?: boolean | undefined;
71
+ }>;
72
+ type OpenAILanguageModelChatOptions = InferSchema<typeof openaiLanguageModelChatOptions>;
73
+ //#endregion
74
+ //#region src/completion/openai-completion-language-model-options.d.ts
75
+ type OpenAICompletionModelId = 'gpt-3.5-turbo-instruct' | 'gpt-3.5-turbo-instruct-0914' | (string & {});
76
+ declare const openaiLanguageModelCompletionOptions: import("../../@ai-sdk_provider-utils@5.0.81/dist/index.js").LazySchema<{
77
+ echo?: boolean | undefined;
78
+ logitBias?: Record<string, number> | undefined;
79
+ suffix?: string | undefined;
80
+ user?: string | undefined;
81
+ logprobs?: number | boolean | undefined;
82
+ }>;
83
+ type OpenAILanguageModelCompletionOptions = InferSchema<typeof openaiLanguageModelCompletionOptions>;
84
+ //#endregion
85
+ //#region src/embedding/openai-embedding-model-options.d.ts
86
+ type OpenAIEmbeddingModelId = 'text-embedding-3-small' | 'text-embedding-3-large' | 'text-embedding-ada-002' | (string & {});
87
+ declare const openaiEmbeddingModelOptions: import("../../@ai-sdk_provider-utils@5.0.81/dist/index.js").LazySchema<{
88
+ dimensions?: number | undefined;
89
+ user?: string | undefined;
90
+ }>;
91
+ type OpenAIEmbeddingModelOptions = InferSchema<typeof openaiEmbeddingModelOptions>;
92
+ //#endregion
93
+ //#region src/image/openai-image-model-options.d.ts
94
+ type OpenAIImageModelId = 'dall-e-3' | 'dall-e-2' | 'gpt-image-1' | 'gpt-image-1-mini' | 'gpt-image-1.5' | 'gpt-image-2' | 'gpt-image-2.5-flare' | 'gpt-image-2.5-flare-2026-09-08' | 'gpt-image-2.5-sunburst' | 'gpt-image-2.5-sunburst-2026-09-08' | 'chatgpt-image-latest' | (string & {});
95
+ declare const openaiImageModelOptions: import("../../@ai-sdk_provider-utils@5.0.81/dist/index.js").LazySchema<{
96
+ quality?: "low" | "medium" | "high" | "xhigh" | "max" | "standard" | "auto" | "hd" | undefined;
97
+ background?: "auto" | "transparent" | "opaque" | undefined;
98
+ outputFormat?: "png" | "jpeg" | "webp" | undefined;
99
+ outputCompression?: number | undefined;
100
+ user?: string | undefined;
101
+ }>;
102
+ type OpenAIImageModelOptions = InferSchema<typeof openaiImageModelOptions>;
103
+ declare const openaiImageModelGenerationOptions: import("../../@ai-sdk_provider-utils@5.0.81/dist/index.js").LazySchema<{
104
+ quality?: "low" | "medium" | "high" | "xhigh" | "max" | "standard" | "auto" | "hd" | undefined;
105
+ background?: "auto" | "transparent" | "opaque" | undefined;
106
+ outputFormat?: "png" | "jpeg" | "webp" | undefined;
107
+ outputCompression?: number | undefined;
108
+ user?: string | undefined;
109
+ style?: "vivid" | "natural" | undefined;
110
+ moderation?: "low" | "auto" | undefined;
111
+ }>;
112
+ type OpenAIImageModelGenerationOptions = InferSchema<typeof openaiImageModelGenerationOptions>;
113
+ declare const openaiImageModelEditOptions: import("../../@ai-sdk_provider-utils@5.0.81/dist/index.js").LazySchema<{
114
+ quality?: "low" | "medium" | "high" | "xhigh" | "max" | "standard" | "auto" | "hd" | undefined;
115
+ background?: "auto" | "transparent" | "opaque" | undefined;
116
+ outputFormat?: "png" | "jpeg" | "webp" | undefined;
117
+ outputCompression?: number | undefined;
118
+ user?: string | undefined;
119
+ inputFidelity?: "low" | "high" | undefined;
120
+ }>;
121
+ type OpenAIImageModelEditOptions = InferSchema<typeof openaiImageModelEditOptions>;
122
+ //#endregion
123
+ //#region src/tool/apply-patch.d.ts
124
+ /**
125
+ * Type definitions for the apply_patch operations.
126
+ */
127
+ type ApplyPatchOperation = {
128
+ type: 'create_file';
129
+ /**
130
+ * Path of the file to create relative to the workspace root.
131
+ */
132
+ path: string;
133
+ /**
134
+ * Unified diff content to apply when creating the file.
135
+ */
136
+ diff: string;
137
+ } | {
138
+ type: 'delete_file';
139
+ /**
140
+ * Path of the file to delete relative to the workspace root.
141
+ */
142
+ path: string;
143
+ } | {
144
+ type: 'update_file';
145
+ /**
146
+ * Path of the file to update relative to the workspace root.
147
+ */
148
+ path: string;
149
+ /**
150
+ * Unified diff content to apply to the existing file.
151
+ */
152
+ diff: string;
153
+ };
154
+ //#endregion
155
+ //#region src/tool/custom.d.ts
156
+ declare const customToolFactory: import("../../@ai-sdk_provider-utils@5.0.81/dist/index.js").ProviderDefinedToolFactory<string, {
157
+ /**
158
+ * An optional description of what the tool does.
159
+ */
160
+ description?: string;
161
+ /**
162
+ * Whether the model can continue generating after calling this tool
163
+ * without waiting for its result.
164
+ */
165
+ async?: boolean;
166
+ /**
167
+ * The output format specification for the tool.
168
+ * Omit for unconstrained text output.
169
+ */
170
+ format?: {
171
+ type: "grammar";
172
+ syntax: "regex" | "lark";
173
+ definition: string;
174
+ } | {
175
+ type: "text";
176
+ };
177
+ }, {}>;
178
+ //#endregion
179
+ //#region src/responses/openai-responses-language-model-options.d.ts
180
+ type OpenAIResponsesModelId = 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo' | 'gpt-4.1-2025-04-14' | 'gpt-4.1-mini-2025-04-14' | 'gpt-4.1-mini' | 'gpt-4.1-nano-2025-04-14' | 'gpt-4.1-nano' | 'gpt-4.1' | 'gpt-4o-2024-05-13' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-11-20' | 'gpt-4o-mini-2024-07-18' | 'gpt-4o-mini' | 'gpt-4o' | 'gpt-5.1' | 'gpt-5.1-2025-11-13' | 'gpt-5.1-chat-latest' | 'gpt-5.1-codex-mini' | 'gpt-5.1-codex' | 'gpt-5.1-codex-max' | 'gpt-5.2' | 'gpt-5.2-2025-12-11' | 'gpt-5.2-chat-latest' | 'gpt-5.2-pro' | 'gpt-5.2-pro-2025-12-11' | 'gpt-5.2-codex' | 'gpt-5.3-chat-latest' | 'gpt-5.3-codex' | 'gpt-5.4' | 'gpt-5.4-2026-03-05' | 'gpt-5.4-mini' | 'gpt-5.4-mini-2026-03-17' | 'gpt-5.4-nano' | 'gpt-5.4-nano-2026-03-17' | 'gpt-5.4-pro' | 'gpt-5.4-pro-2026-03-05' | 'gpt-5.5' | 'gpt-5.5-2026-04-23' | 'gpt-5.6' | 'gpt-5.6-luna' | 'gpt-5.6-sol' | 'gpt-5.6-terra' | 'gpt-6-astra' | 'gpt-6.1-sol' | 'gpt-6.1-terra' | 'gpt-6-luna' | 'gpt-6-sol' | 'gpt-5-2025-08-07' | 'gpt-5-chat-latest' | 'gpt-5-codex' | 'gpt-5-mini-2025-08-07' | 'gpt-5-mini' | 'gpt-5-nano-2025-08-07' | 'gpt-5-nano' | 'gpt-5-pro-2025-10-06' | 'gpt-5-pro' | 'gpt-5' | 'o1-2024-12-17' | 'o1' | 'o3-2025-04-16' | 'o3-mini-2025-01-31' | 'o3-mini' | 'o3' | 'o4-mini' | 'o4-mini-2025-04-16' | (string & {});
181
+ declare const openaiLanguageModelResponsesOptionsSchema: import("../../@ai-sdk_provider-utils@5.0.81/dist/index.js").LazySchema<{
182
+ conversation?: string | null | undefined;
183
+ include?: ("reasoning.encrypted_content" | "file_search_call.results" | "web_search_call.results" | "message.output_text.logprobs")[] | null | undefined;
184
+ includeWebSearchSources?: boolean | undefined;
185
+ instructions?: string | null | undefined;
186
+ logprobs?: number | boolean | undefined;
187
+ maxToolCalls?: number | null | undefined;
188
+ metadata?: any;
189
+ parallelToolCalls?: boolean | null | undefined;
190
+ previousResponseId?: string | null | undefined;
191
+ promptCacheKey?: string | null | undefined;
192
+ promptCacheOptions?: {
193
+ mode?: "implicit" | "explicit" | undefined;
194
+ ttl?: "30m" | "12h" | undefined;
195
+ prewarm?: boolean | undefined;
196
+ } | undefined;
197
+ promptCacheRetention?: "in_memory" | "24h" | null | undefined;
198
+ reasoningEffort?: string | null | undefined;
199
+ reasoningEffortUpdate?: "none" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
200
+ reasoningMode?: "standard" | "pro" | undefined;
201
+ reasoningContext?: "auto" | "current_turn" | "all_turns" | undefined;
202
+ reasoningSummary?: string | null | undefined;
203
+ safetyIdentifier?: string | null | undefined;
204
+ serviceTier?: "default" | "auto" | "flex" | "priority" | "fast" | "ultrafast" | null | undefined;
205
+ store?: boolean | null | undefined;
206
+ passThroughUnsupportedFiles?: boolean | undefined;
207
+ strictJsonSchema?: boolean | null | undefined;
208
+ textVerbosity?: "low" | "medium" | "high" | null | undefined;
209
+ truncation?: "auto" | "disabled" | null | undefined;
210
+ user?: string | null | undefined;
211
+ systemMessageMode?: "developer" | "system" | "remove" | undefined;
212
+ forceReasoning?: boolean | undefined;
213
+ contextManagement?: {
214
+ type: "compaction";
215
+ compactThreshold: number;
216
+ }[] | null | undefined;
217
+ compactionTrigger?: boolean | undefined;
218
+ allowedTools?: {
219
+ toolNames: string[];
220
+ mode?: "auto" | "required" | undefined;
221
+ } | undefined;
222
+ }>;
223
+ type OpenAILanguageModelResponsesOptions = InferSchema<typeof openaiLanguageModelResponsesOptionsSchema>;
224
+ declare const openaiResponsesSystemMessageOptionsSchema: import("../../@ai-sdk_provider-utils@5.0.81/dist/index.js").LazySchema<{
225
+ reasoningEffortUpdate?: "none" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
226
+ }>;
227
+ type OpenAIResponsesSystemMessageOptions = InferSchema<typeof openaiResponsesSystemMessageOptionsSchema>;
228
+ declare const openaiResponsesToolResultOptionsSchema: import("../../@ai-sdk_provider-utils@5.0.81/dist/index.js").LazySchema<{
229
+ additionalTools?: {
230
+ type: "function";
231
+ name: string;
232
+ parameters: Record<string, z.core.util.JSONType>;
233
+ description?: string | undefined;
234
+ strict?: boolean | undefined;
235
+ }[] | undefined;
236
+ }>;
237
+ type OpenAIResponsesToolResultOptions = InferSchema<typeof openaiResponsesToolResultOptionsSchema>;
238
+ //#endregion
239
+ //#region src/responses/openai-responses-api.d.ts
240
+ /**
241
+ * A filter used to compare a specified attribute key to a given value using a defined comparison operation.
242
+ */
243
+ type OpenAIResponsesFileSearchToolComparisonFilter = {
244
+ /**
245
+ * The key to compare against the value.
246
+ */
247
+ key: string;
248
+ /**
249
+ * Specifies the comparison operator: eq, ne, gt, gte, lt, lte, in, nin.
250
+ */
251
+ type: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'nin';
252
+ /**
253
+ * The value to compare against the attribute key; supports string, number, boolean, or array of string types.
254
+ */
255
+ value: string | number | boolean | string[];
256
+ };
257
+ /**
258
+ * Combine multiple filters using and or or.
259
+ */
260
+ type OpenAIResponsesFileSearchToolCompoundFilter = {
261
+ /**
262
+ * Type of operation: and or or.
263
+ */
264
+ type: 'and' | 'or';
265
+ /**
266
+ * Array of filters to combine. Items can be ComparisonFilter or CompoundFilter.
267
+ */
268
+ filters: Array<OpenAIResponsesFileSearchToolComparisonFilter | OpenAIResponsesFileSearchToolCompoundFilter>;
269
+ };
270
+ declare const openaiResponsesChunkSchema: import("../../@ai-sdk_provider-utils@5.0.81/dist/index.js").LazySchema<{
271
+ type: "unknown_chunk";
272
+ message: string;
273
+ } | {
274
+ type: "response.output_text.delta";
275
+ item_id: string;
276
+ delta: string;
277
+ output_index?: number | null | undefined;
278
+ logprobs?: {
279
+ token: string;
280
+ logprob: number;
281
+ top_logprobs: {
282
+ token: string;
283
+ logprob: number;
284
+ }[];
285
+ }[] | null | undefined;
286
+ } | {
287
+ type: "response.completed" | "response.incomplete";
288
+ response: {
289
+ incomplete_details?: {
290
+ reason: string;
291
+ } | null | undefined;
292
+ usage?: (Record<string, JSONValue | undefined> & {
293
+ input_tokens: number;
294
+ output_tokens: number;
295
+ input_tokens_details?: (Record<string, JSONValue | undefined> & {
296
+ cached_tokens?: number | null | undefined;
297
+ cache_write_tokens?: number | null | undefined;
298
+ cache_write_tokens_details?: (Record<string, JSONValue | undefined> & {
299
+ ttl_30m_tokens?: number | null | undefined;
300
+ ttl_12h_tokens?: number | null | undefined;
301
+ }) | null | undefined;
302
+ orchestration_input_tokens?: number | null | undefined;
303
+ orchestration_input_cached_tokens?: number | null | undefined;
304
+ }) | null | undefined;
305
+ output_tokens_details?: (Record<string, JSONValue | undefined> & {
306
+ reasoning_tokens?: number | null | undefined;
307
+ orchestration_output_tokens?: number | null | undefined;
308
+ }) | null | undefined;
309
+ total_tokens?: number | undefined;
310
+ }) | null | undefined;
311
+ reasoning?: {
312
+ context?: string | null | undefined;
313
+ } | null | undefined;
314
+ service_tier?: string | null | undefined;
315
+ };
316
+ } | {
317
+ type: "response.failed";
318
+ sequence_number: number;
319
+ response: {
320
+ error?: {
321
+ message: string;
322
+ code?: string | null | undefined;
323
+ } | null | undefined;
324
+ incomplete_details?: {
325
+ reason: string;
326
+ } | null | undefined;
327
+ usage?: (Record<string, JSONValue | undefined> & {
328
+ input_tokens: number;
329
+ output_tokens: number;
330
+ input_tokens_details?: (Record<string, JSONValue | undefined> & {
331
+ cached_tokens?: number | null | undefined;
332
+ cache_write_tokens?: number | null | undefined;
333
+ cache_write_tokens_details?: (Record<string, JSONValue | undefined> & {
334
+ ttl_30m_tokens?: number | null | undefined;
335
+ ttl_12h_tokens?: number | null | undefined;
336
+ }) | null | undefined;
337
+ orchestration_input_tokens?: number | null | undefined;
338
+ orchestration_input_cached_tokens?: number | null | undefined;
339
+ }) | null | undefined;
340
+ output_tokens_details?: (Record<string, JSONValue | undefined> & {
341
+ reasoning_tokens?: number | null | undefined;
342
+ orchestration_output_tokens?: number | null | undefined;
343
+ }) | null | undefined;
344
+ total_tokens?: number | undefined;
345
+ }) | null | undefined;
346
+ reasoning?: {
347
+ context?: string | null | undefined;
348
+ } | null | undefined;
349
+ service_tier?: string | null | undefined;
350
+ };
351
+ } | {
352
+ type: "response.created";
353
+ response: {
354
+ id: string;
355
+ created_at: number;
356
+ model: string;
357
+ service_tier?: string | null | undefined;
358
+ };
359
+ } | {
360
+ type: "response.in_progress";
361
+ response: {
362
+ id: string;
363
+ created_at: number;
364
+ model: string;
365
+ service_tier?: string | null | undefined;
366
+ };
367
+ } | {
368
+ type: "response.output_item.added";
369
+ output_index: number;
370
+ item: {
371
+ type: "message";
372
+ id: string;
373
+ phase?: "commentary" | "final_answer" | null | undefined;
374
+ } | {
375
+ type: "reasoning";
376
+ id: string;
377
+ encrypted_content?: string | null | undefined;
378
+ } | {
379
+ type: "function_call";
380
+ id: string;
381
+ call_id: string;
382
+ name: string;
383
+ arguments: string;
384
+ async?: boolean | null | undefined;
385
+ namespace?: string | null | undefined;
386
+ caller?: {
387
+ type: "direct";
388
+ } | {
389
+ type: "program";
390
+ caller_id: string;
391
+ } | null | undefined;
392
+ } | {
393
+ type: "program";
394
+ id: string;
395
+ call_id: string;
396
+ code: string;
397
+ fingerprint: string;
398
+ } | {
399
+ type: "program_output";
400
+ id: string;
401
+ call_id: string;
402
+ result: string;
403
+ status: "completed" | "incomplete";
404
+ } | {
405
+ type: "web_search_call";
406
+ id: string;
407
+ status: string;
408
+ } | {
409
+ type: "computer_call";
410
+ id: string;
411
+ status: "in_progress" | "completed" | "incomplete";
412
+ call_id?: string | null | undefined;
413
+ action?: {
414
+ type: "click";
415
+ button: "left" | "right" | "wheel" | "back" | "forward";
416
+ x: number;
417
+ y: number;
418
+ keys?: string[] | null | undefined;
419
+ } | {
420
+ type: "double_click";
421
+ x: number;
422
+ y: number;
423
+ keys?: string[] | null | undefined;
424
+ } | {
425
+ type: "drag";
426
+ path: {
427
+ x: number;
428
+ y: number;
429
+ }[];
430
+ keys?: string[] | null | undefined;
431
+ } | {
432
+ type: "keypress";
433
+ keys: string[];
434
+ } | {
435
+ type: "move";
436
+ x: number;
437
+ y: number;
438
+ keys?: string[] | null | undefined;
439
+ } | {
440
+ type: "screenshot";
441
+ } | {
442
+ type: "scroll";
443
+ x: number;
444
+ y: number;
445
+ scroll_x: number;
446
+ scroll_y: number;
447
+ keys?: string[] | null | undefined;
448
+ } | {
449
+ type: "type";
450
+ text: string;
451
+ } | {
452
+ type: "wait";
453
+ } | null | undefined;
454
+ actions?: ({
455
+ type: "click";
456
+ button: "left" | "right" | "wheel" | "back" | "forward";
457
+ x: number;
458
+ y: number;
459
+ keys?: string[] | null | undefined;
460
+ } | {
461
+ type: "double_click";
462
+ x: number;
463
+ y: number;
464
+ keys?: string[] | null | undefined;
465
+ } | {
466
+ type: "drag";
467
+ path: {
468
+ x: number;
469
+ y: number;
470
+ }[];
471
+ keys?: string[] | null | undefined;
472
+ } | {
473
+ type: "keypress";
474
+ keys: string[];
475
+ } | {
476
+ type: "move";
477
+ x: number;
478
+ y: number;
479
+ keys?: string[] | null | undefined;
480
+ } | {
481
+ type: "screenshot";
482
+ } | {
483
+ type: "scroll";
484
+ x: number;
485
+ y: number;
486
+ scroll_x: number;
487
+ scroll_y: number;
488
+ keys?: string[] | null | undefined;
489
+ } | {
490
+ type: "type";
491
+ text: string;
492
+ } | {
493
+ type: "wait";
494
+ })[] | null | undefined;
495
+ pending_safety_checks?: {
496
+ id: string;
497
+ code?: string | null | undefined;
498
+ message?: string | null | undefined;
499
+ }[] | null | undefined;
500
+ } | {
501
+ type: "file_search_call";
502
+ id: string;
503
+ } | {
504
+ type: "local_shell_call";
505
+ id: string;
506
+ call_id: string;
507
+ action: {
508
+ type: "exec";
509
+ command: string[];
510
+ timeout_ms?: number | undefined;
511
+ user?: string | undefined;
512
+ working_directory?: string | undefined;
513
+ env?: Record<string, string> | undefined;
514
+ };
515
+ } | {
516
+ type: "image_generation_call";
517
+ id: string;
518
+ } | {
519
+ type: "code_interpreter_call";
520
+ id: string;
521
+ container_id: string;
522
+ code: string | null;
523
+ outputs: ({
524
+ type: "logs";
525
+ logs: string;
526
+ } | {
527
+ type: "image";
528
+ url: string;
529
+ })[] | null;
530
+ status: string;
531
+ } | {
532
+ type: "mcp_call";
533
+ id: string;
534
+ status: string;
535
+ approval_request_id?: string | null | undefined;
536
+ } | {
537
+ type: "mcp_list_tools";
538
+ id: string;
539
+ } | {
540
+ type: "mcp_approval_request";
541
+ id: string;
542
+ } | {
543
+ type: "apply_patch_call";
544
+ id: string;
545
+ call_id: string;
546
+ status: "in_progress" | "completed";
547
+ operation: {
548
+ type: "create_file";
549
+ path: string;
550
+ diff: string;
551
+ } | {
552
+ type: "delete_file";
553
+ path: string;
554
+ } | {
555
+ type: "update_file";
556
+ path: string;
557
+ diff: string;
558
+ };
559
+ } | {
560
+ type: "custom_tool_call";
561
+ id: string;
562
+ call_id: string;
563
+ name: string;
564
+ input: string;
565
+ async?: boolean | null | undefined;
566
+ } | {
567
+ type: "shell_call";
568
+ id: string;
569
+ call_id: string;
570
+ status: "in_progress" | "completed" | "incomplete";
571
+ action: {
572
+ commands: string[];
573
+ timeout_ms?: number | null | undefined;
574
+ max_output_length?: number | null | undefined;
575
+ };
576
+ } | {
577
+ type: "compaction";
578
+ id: string;
579
+ encrypted_content?: string | null | undefined;
580
+ } | {
581
+ type: "shell_call_output";
582
+ id: string;
583
+ call_id: string;
584
+ status: "in_progress" | "completed" | "incomplete";
585
+ output: {
586
+ stdout: string;
587
+ stderr: string;
588
+ outcome: {
589
+ type: "timeout";
590
+ } | {
591
+ type: "exit";
592
+ exit_code: number;
593
+ };
594
+ }[];
595
+ max_output_length?: number | null | undefined;
596
+ } | {
597
+ type: "tool_search_call";
598
+ id: string;
599
+ execution: "client" | "server";
600
+ call_id: string | null;
601
+ status: "in_progress" | "completed" | "incomplete";
602
+ arguments: unknown;
603
+ } | {
604
+ type: "tool_search_output";
605
+ id: string;
606
+ execution: "client" | "server";
607
+ call_id: string | null;
608
+ status: "in_progress" | "completed" | "incomplete";
609
+ tools: Record<string, JSONValue | undefined>[];
610
+ };
611
+ } | {
612
+ type: "response.output_item.done";
613
+ output_index: number;
614
+ item: {
615
+ type: "program";
616
+ id: string;
617
+ call_id: string;
618
+ code: string;
619
+ fingerprint: string;
620
+ } | {
621
+ type: "program_output";
622
+ id: string;
623
+ call_id: string;
624
+ result: string;
625
+ status: "completed" | "incomplete";
626
+ } | {
627
+ type: "computer_call";
628
+ id: string;
629
+ status: "in_progress" | "completed" | "incomplete";
630
+ call_id?: string | null | undefined;
631
+ action?: {
632
+ type: "click";
633
+ button: "left" | "right" | "wheel" | "back" | "forward";
634
+ x: number;
635
+ y: number;
636
+ keys?: string[] | null | undefined;
637
+ } | {
638
+ type: "double_click";
639
+ x: number;
640
+ y: number;
641
+ keys?: string[] | null | undefined;
642
+ } | {
643
+ type: "drag";
644
+ path: {
645
+ x: number;
646
+ y: number;
647
+ }[];
648
+ keys?: string[] | null | undefined;
649
+ } | {
650
+ type: "keypress";
651
+ keys: string[];
652
+ } | {
653
+ type: "move";
654
+ x: number;
655
+ y: number;
656
+ keys?: string[] | null | undefined;
657
+ } | {
658
+ type: "screenshot";
659
+ } | {
660
+ type: "scroll";
661
+ x: number;
662
+ y: number;
663
+ scroll_x: number;
664
+ scroll_y: number;
665
+ keys?: string[] | null | undefined;
666
+ } | {
667
+ type: "type";
668
+ text: string;
669
+ } | {
670
+ type: "wait";
671
+ } | null | undefined;
672
+ actions?: ({
673
+ type: "click";
674
+ button: "left" | "right" | "wheel" | "back" | "forward";
675
+ x: number;
676
+ y: number;
677
+ keys?: string[] | null | undefined;
678
+ } | {
679
+ type: "double_click";
680
+ x: number;
681
+ y: number;
682
+ keys?: string[] | null | undefined;
683
+ } | {
684
+ type: "drag";
685
+ path: {
686
+ x: number;
687
+ y: number;
688
+ }[];
689
+ keys?: string[] | null | undefined;
690
+ } | {
691
+ type: "keypress";
692
+ keys: string[];
693
+ } | {
694
+ type: "move";
695
+ x: number;
696
+ y: number;
697
+ keys?: string[] | null | undefined;
698
+ } | {
699
+ type: "screenshot";
700
+ } | {
701
+ type: "scroll";
702
+ x: number;
703
+ y: number;
704
+ scroll_x: number;
705
+ scroll_y: number;
706
+ keys?: string[] | null | undefined;
707
+ } | {
708
+ type: "type";
709
+ text: string;
710
+ } | {
711
+ type: "wait";
712
+ })[] | null | undefined;
713
+ pending_safety_checks?: {
714
+ id: string;
715
+ code?: string | null | undefined;
716
+ message?: string | null | undefined;
717
+ }[] | null | undefined;
718
+ } | {
719
+ type: "local_shell_call";
720
+ id: string;
721
+ call_id: string;
722
+ action: {
723
+ type: "exec";
724
+ command: string[];
725
+ timeout_ms?: number | undefined;
726
+ user?: string | undefined;
727
+ working_directory?: string | undefined;
728
+ env?: Record<string, string> | undefined;
729
+ };
730
+ } | {
731
+ type: "message";
732
+ id: string;
733
+ phase?: "commentary" | "final_answer" | null | undefined;
734
+ } | {
735
+ type: "reasoning";
736
+ id: string;
737
+ encrypted_content?: string | null | undefined;
738
+ } | {
739
+ type: "function_call";
740
+ id: string;
741
+ call_id: string;
742
+ name: string;
743
+ arguments: string;
744
+ status: "in_progress" | "completed" | "incomplete";
745
+ async?: boolean | null | undefined;
746
+ namespace?: string | null | undefined;
747
+ caller?: {
748
+ type: "direct";
749
+ } | {
750
+ type: "program";
751
+ caller_id: string;
752
+ } | null | undefined;
753
+ } | {
754
+ type: "custom_tool_call";
755
+ id: string;
756
+ call_id: string;
757
+ name: string;
758
+ input: string;
759
+ status: "completed";
760
+ async?: boolean | null | undefined;
761
+ } | {
762
+ type: "code_interpreter_call";
763
+ id: string;
764
+ code: string | null;
765
+ container_id: string;
766
+ outputs: ({
767
+ type: "logs";
768
+ logs: string;
769
+ } | {
770
+ type: "image";
771
+ url: string;
772
+ })[] | null;
773
+ } | {
774
+ type: "image_generation_call";
775
+ id: string;
776
+ result: string;
777
+ } | {
778
+ type: "web_search_call";
779
+ id: string;
780
+ status: string;
781
+ action?: {
782
+ type: "search";
783
+ query?: string | null | undefined;
784
+ queries?: string[] | null | undefined;
785
+ sources?: ({
786
+ type: "url";
787
+ url: string;
788
+ } | {
789
+ type: "api";
790
+ name: string;
791
+ })[] | null | undefined;
792
+ } | {
793
+ type: "open_page";
794
+ url?: string | null | undefined;
795
+ } | {
796
+ type: "find_in_page";
797
+ url?: string | null | undefined;
798
+ pattern?: string | null | undefined;
799
+ } | null | undefined;
800
+ } | {
801
+ type: "file_search_call";
802
+ id: string;
803
+ queries: string[];
804
+ results?: {
805
+ attributes: Record<string, string | number | boolean>;
806
+ file_id: string;
807
+ filename: string;
808
+ score: number;
809
+ text: string;
810
+ }[] | null | undefined;
811
+ } | {
812
+ type: "mcp_call";
813
+ id: string;
814
+ status: string;
815
+ arguments: string;
816
+ name: string;
817
+ server_label: string;
818
+ output?: string | null | undefined;
819
+ error?: string | {
820
+ [x: string]: unknown;
821
+ type?: string | undefined;
822
+ code?: string | number | undefined;
823
+ message?: string | undefined;
824
+ } | null | undefined;
825
+ approval_request_id?: string | null | undefined;
826
+ } | {
827
+ type: "mcp_list_tools";
828
+ id: string;
829
+ server_label: string;
830
+ tools: {
831
+ name: string;
832
+ input_schema: any;
833
+ description?: string | undefined;
834
+ annotations?: Record<string, unknown> | undefined;
835
+ }[];
836
+ error?: string | {
837
+ [x: string]: unknown;
838
+ type?: string | undefined;
839
+ code?: string | number | undefined;
840
+ message?: string | undefined;
841
+ } | undefined;
842
+ } | {
843
+ type: "mcp_approval_request";
844
+ id: string;
845
+ server_label: string;
846
+ name: string;
847
+ arguments: string;
848
+ approval_request_id?: string | undefined;
849
+ } | {
850
+ type: "apply_patch_call";
851
+ id: string;
852
+ call_id: string;
853
+ status: "in_progress" | "completed";
854
+ operation: {
855
+ type: "create_file";
856
+ path: string;
857
+ diff: string;
858
+ } | {
859
+ type: "delete_file";
860
+ path: string;
861
+ } | {
862
+ type: "update_file";
863
+ path: string;
864
+ diff: string;
865
+ };
866
+ } | {
867
+ type: "shell_call";
868
+ id: string;
869
+ call_id: string;
870
+ status: "in_progress" | "completed" | "incomplete";
871
+ action: {
872
+ commands: string[];
873
+ timeout_ms?: number | null | undefined;
874
+ max_output_length?: number | null | undefined;
875
+ };
876
+ } | {
877
+ type: "compaction";
878
+ id: string;
879
+ encrypted_content: string;
880
+ } | {
881
+ type: "shell_call_output";
882
+ id: string;
883
+ call_id: string;
884
+ status: "in_progress" | "completed" | "incomplete";
885
+ output: {
886
+ stdout: string;
887
+ stderr: string;
888
+ outcome: {
889
+ type: "timeout";
890
+ } | {
891
+ type: "exit";
892
+ exit_code: number;
893
+ };
894
+ }[];
895
+ max_output_length?: number | null | undefined;
896
+ } | {
897
+ type: "tool_search_call";
898
+ id: string;
899
+ execution: "client" | "server";
900
+ call_id: string | null;
901
+ status: "in_progress" | "completed" | "incomplete";
902
+ arguments: unknown;
903
+ } | {
904
+ type: "tool_search_output";
905
+ id: string;
906
+ execution: "client" | "server";
907
+ call_id: string | null;
908
+ status: "in_progress" | "completed" | "incomplete";
909
+ tools: Record<string, JSONValue | undefined>[];
910
+ };
911
+ } | {
912
+ type: "response.function_call_arguments.delta";
913
+ item_id: string;
914
+ output_index: number;
915
+ delta: string;
916
+ } | {
917
+ type: "response.function_call_arguments.done";
918
+ item_id: string;
919
+ output_index: number;
920
+ arguments: string;
921
+ } | {
922
+ type: "response.custom_tool_call_input.delta";
923
+ item_id: string;
924
+ output_index: number;
925
+ delta: string;
926
+ } | {
927
+ type: "response.image_generation_call.partial_image";
928
+ item_id: string;
929
+ output_index: number;
930
+ partial_image_b64: string;
931
+ } | {
932
+ type: "response.code_interpreter_call_code.delta";
933
+ item_id: string;
934
+ output_index: number;
935
+ delta: string;
936
+ } | {
937
+ type: "response.code_interpreter_call_code.done";
938
+ item_id: string;
939
+ output_index: number;
940
+ code: string;
941
+ } | {
942
+ type: "response.output_text.annotation.added";
943
+ annotation: {
944
+ type: "url_citation";
945
+ start_index: number;
946
+ end_index: number;
947
+ url: string;
948
+ title: string;
949
+ } | {
950
+ type: "file_citation";
951
+ file_id: string;
952
+ filename: string;
953
+ index: number;
954
+ } | {
955
+ type: "container_file_citation";
956
+ container_id: string;
957
+ file_id: string;
958
+ filename: string;
959
+ start_index: number;
960
+ end_index: number;
961
+ } | {
962
+ type: "file_path";
963
+ file_id: string;
964
+ index: number;
965
+ };
966
+ } | {
967
+ type: "response.reasoning_summary_part.added";
968
+ item_id: string;
969
+ summary_index: number;
970
+ output_index?: number | null | undefined;
971
+ } | {
972
+ type: "response.reasoning_summary_text.delta";
973
+ item_id: string;
974
+ summary_index: number;
975
+ delta: string;
976
+ output_index?: number | null | undefined;
977
+ } | {
978
+ type: "response.reasoning_summary_part.done";
979
+ item_id: string;
980
+ summary_index: number;
981
+ output_index?: number | null | undefined;
982
+ } | {
983
+ type: "response.apply_patch_call_operation_diff.delta";
984
+ item_id: string;
985
+ output_index: number;
986
+ delta: string;
987
+ obfuscation?: string | null | undefined;
988
+ } | {
989
+ type: "response.apply_patch_call_operation_diff.done";
990
+ item_id: string;
991
+ output_index: number;
992
+ diff: string;
993
+ } | {
994
+ type: "error";
995
+ sequence_number: number;
996
+ error: {
997
+ type: string;
998
+ message: string;
999
+ code?: string | null | undefined;
1000
+ param?: string | null | undefined;
1001
+ };
1002
+ } | {
1003
+ type: "error";
1004
+ sequence_number: number;
1005
+ message: string;
1006
+ code?: string | null | undefined;
1007
+ param?: string | null | undefined;
1008
+ }>;
1009
+ type OpenAIResponsesChunk = InferSchema<typeof openaiResponsesChunkSchema>;
1010
+ type OpenAIResponsesLogprobs = NonNullable<(OpenAIResponsesChunk & {
1011
+ type: 'response.output_text.delta';
1012
+ })['logprobs']> | null;
1013
+ //#endregion
1014
+ //#region src/tool/web-search.d.ts
1015
+ declare const webSearchToolFactory: import("../../@ai-sdk_provider-utils@5.0.81/dist/index.js").ProviderExecutedToolFactory<{}, {
1016
+ /**
1017
+ * An object describing the specific action taken in this web search call.
1018
+ * Includes details on how the model used the web (search, open_page, find_in_page).
1019
+ */
1020
+ action?: {
1021
+ /**
1022
+ * Action type "search" - Performs a web search query.
1023
+ */
1024
+ type: "search";
1025
+ /**
1026
+ * The search query.
1027
+ *
1028
+ * @deprecated Use `queries` instead.
1029
+ */
1030
+ query?: string;
1031
+ /**
1032
+ * The search queries the model used.
1033
+ */
1034
+ queries?: string[];
1035
+ } | {
1036
+ /**
1037
+ * Action type "openPage" - Opens a specific URL from search results.
1038
+ */
1039
+ type: "openPage";
1040
+ /**
1041
+ * The URL opened by the model.
1042
+ */
1043
+ url?: string | null;
1044
+ } | {
1045
+ /**
1046
+ * Action type "findInPage": Searches for a pattern within a loaded page.
1047
+ */
1048
+ type: "findInPage";
1049
+ /**
1050
+ * The URL of the page searched for the pattern.
1051
+ */
1052
+ url?: string | null;
1053
+ /**
1054
+ * The pattern or text to search for within the page.
1055
+ */
1056
+ pattern?: string | null;
1057
+ };
1058
+ /**
1059
+ * Optional sources cited by the model for the web search call.
1060
+ */
1061
+ sources?: Array<{
1062
+ type: "url";
1063
+ url: string;
1064
+ } | {
1065
+ type: "api";
1066
+ name: string;
1067
+ }>;
1068
+ }, {
1069
+ /**
1070
+ * Whether to use external web access for fetching live content.
1071
+ * - true: Fetch live web content (default)
1072
+ * - false: Use cached/indexed results
1073
+ */
1074
+ externalWebAccess?: boolean;
1075
+ /**
1076
+ * Filters for the search.
1077
+ */
1078
+ filters?: {
1079
+ /**
1080
+ * Allowed domains for the search.
1081
+ * If not provided, all domains are allowed.
1082
+ * Subdomains of the provided domains are allowed as well.
1083
+ * Omit the HTTP or HTTPS prefix. Maximum 100 domains.
1084
+ */
1085
+ allowedDomains?: string[];
1086
+ /**
1087
+ * Blocked domains for the search.
1088
+ * Subdomains of the provided domains are blocked as well.
1089
+ * Omit the HTTP or HTTPS prefix. Maximum 100 domains.
1090
+ */
1091
+ blockedDomains?: string[];
1092
+ };
1093
+ /**
1094
+ * Search context size to use for the web search.
1095
+ * - high: Most comprehensive context, highest cost, slower response
1096
+ * - medium: Balanced context, cost, and latency (default)
1097
+ * - low: Least context, lowest cost, fastest response
1098
+ */
1099
+ searchContextSize?: "low" | "medium" | "high";
1100
+ /**
1101
+ * User location information to provide geographically relevant search results.
1102
+ */
1103
+ userLocation?: {
1104
+ /**
1105
+ * Type of location (always 'approximate')
1106
+ */
1107
+ type: "approximate";
1108
+ /**
1109
+ * Two-letter ISO country code (e.g., 'US', 'GB')
1110
+ */
1111
+ country?: string;
1112
+ /**
1113
+ * City name (free text, e.g., 'Minneapolis')
1114
+ */
1115
+ city?: string;
1116
+ /**
1117
+ * Region name (free text, e.g., 'Minnesota')
1118
+ */
1119
+ region?: string;
1120
+ /**
1121
+ * IANA timezone (e.g., 'America/Chicago')
1122
+ */
1123
+ timezone?: string;
1124
+ };
1125
+ }, {}>;
1126
+ //#endregion
1127
+ //#region src/openai-tools.d.ts
1128
+ declare const openaiTools: {
1129
+ /**
1130
+ * The apply_patch tool lets GPT-5.1 create, update, and delete files in your
1131
+ * codebase using structured diffs. Instead of just suggesting edits, the model
1132
+ * emits patch operations that your application applies and then reports back on,
1133
+ * enabling iterative, multi-step code editing workflows.
1134
+ *
1135
+ */
1136
+ applyPatch: import("../../@ai-sdk_provider-utils@5.0.81/dist/index.js").ProviderDefinedToolFactoryWithOutputSchema<{
1137
+ callId: string;
1138
+ operation: ApplyPatchOperation;
1139
+ }, {
1140
+ status: "completed" | "failed";
1141
+ output?: string;
1142
+ }, {}, {}>;
1143
+ /**
1144
+ * Custom tools let callers constrain model output to a grammar (regex or
1145
+ * Lark syntax). The model returns a `custom_tool_call` output item whose
1146
+ * `input` field is a string matching the specified grammar.
1147
+ *
1148
+ * @param description - An optional description of the tool.
1149
+ * @param async - Whether the model can continue without waiting for the tool result.
1150
+ * @param format - The output format constraint (grammar type, syntax, and definition).
1151
+ */
1152
+ customTool: (args: Parameters<typeof customToolFactory>[0]) => import("../../@ai-sdk_provider-utils@5.0.81/dist/index.js").ProviderDefinedTool<string, unknown, {}>;
1153
+ /**
1154
+ * The Code Interpreter tool allows models to write and run Python code in a
1155
+ * sandboxed environment to solve complex problems in domains like data analysis,
1156
+ * coding, and math.
1157
+ *
1158
+ * @param container - The container to use for the code interpreter.
1159
+ */
1160
+ codeInterpreter: (args?: {
1161
+ container?: string | {
1162
+ fileIds?: string[];
1163
+ };
1164
+ }) => import("../../@ai-sdk_provider-utils@5.0.81/dist/index.js").ProviderExecutedTool<{
1165
+ code?: string | null;
1166
+ containerId: string;
1167
+ }, {
1168
+ outputs?: Array<{
1169
+ type: "logs";
1170
+ logs: string;
1171
+ } | {
1172
+ type: "image";
1173
+ url: string;
1174
+ }> | null;
1175
+ }, {}>;
1176
+ /**
1177
+ * The computer tool allows models to operate a browser or desktop through
1178
+ * batched UI actions. Your application executes the actions and returns an
1179
+ * updated screenshot.
1180
+ *
1181
+ * WARNING: Run computer use in an isolated environment, treat on-screen
1182
+ * content as untrusted, and require confirmation for consequential actions.
1183
+ */
1184
+ computer: (options?: Parameters<import("../../@ai-sdk_provider-utils@5.0.81/dist/index.js").ProviderDefinedToolFactoryWithOutputSchema<{
1185
+ actions: OpenAIComputerAction[];
1186
+ pendingSafetyChecks: OpenAIComputerSafetyCheck[];
1187
+ status: "in_progress" | "completed" | "incomplete";
1188
+ }, {
1189
+ output: {
1190
+ type: "computer_screenshot";
1191
+ imageUrl: string;
1192
+ fileId?: string;
1193
+ detail?: "auto" | "low" | "high" | "original";
1194
+ } | {
1195
+ type: "computer_screenshot";
1196
+ fileId: string;
1197
+ imageUrl?: string;
1198
+ detail?: "auto" | "low" | "high" | "original";
1199
+ };
1200
+ acknowledgedSafetyChecks?: OpenAIComputerSafetyCheck[];
1201
+ }, {}, {}>>[0]) => import("../../@ai-sdk_provider-utils@5.0.81/dist/index.js").ProviderDefinedTool<{
1202
+ actions: OpenAIComputerAction[];
1203
+ pendingSafetyChecks: OpenAIComputerSafetyCheck[];
1204
+ status: "in_progress" | "completed" | "incomplete";
1205
+ }, {
1206
+ output: {
1207
+ type: "computer_screenshot";
1208
+ imageUrl: string;
1209
+ fileId?: string;
1210
+ detail?: "auto" | "low" | "high" | "original";
1211
+ } | {
1212
+ type: "computer_screenshot";
1213
+ fileId: string;
1214
+ imageUrl?: string;
1215
+ detail?: "auto" | "low" | "high" | "original";
1216
+ };
1217
+ acknowledgedSafetyChecks?: OpenAIComputerSafetyCheck[];
1218
+ }, {}>;
1219
+ /**
1220
+ * File search is a tool available in the Responses API. It enables models to
1221
+ * retrieve information in a knowledge base of previously uploaded files through
1222
+ * semantic and keyword search.
1223
+ *
1224
+ * @param vectorStoreIds - The vector store IDs to use for the file search.
1225
+ * @param maxNumResults - The maximum number of results to return.
1226
+ * @param ranking - The ranking options to use for the file search.
1227
+ * @param filters - The filters to use for the file search.
1228
+ */
1229
+ fileSearch: import("../../@ai-sdk_provider-utils@5.0.81/dist/index.js").ProviderExecutedToolFactory<{}, {
1230
+ queries: string[];
1231
+ results: null | {
1232
+ attributes: Record<string, unknown>;
1233
+ fileId: string;
1234
+ filename: string;
1235
+ score: number;
1236
+ text: string;
1237
+ }[];
1238
+ }, {
1239
+ vectorStoreIds: string[];
1240
+ maxNumResults?: number;
1241
+ ranking?: {
1242
+ ranker?: string;
1243
+ scoreThreshold?: number;
1244
+ };
1245
+ filters?: OpenAIResponsesFileSearchToolComparisonFilter | OpenAIResponsesFileSearchToolCompoundFilter;
1246
+ }, {}>;
1247
+ /**
1248
+ * The image generation tool allows you to generate images using a text prompt,
1249
+ * and optionally image inputs. It leverages the GPT Image model,
1250
+ * and automatically optimizes text inputs for improved performance.
1251
+ *
1252
+ * @param background - Background type for the generated image. One of 'auto', 'opaque', or 'transparent'.
1253
+ * @param inputFidelity - Input fidelity for the generated image. One of 'low' or 'high'.
1254
+ * @param inputImageMask - Optional mask for inpainting. Contains fileId and/or imageUrl.
1255
+ * @param model - The image generation model to use. Default: gpt-image-1.
1256
+ * @param moderation - Moderation level for the generated image. Default: 'auto'.
1257
+ * @param outputCompression - Compression level for the output image (0-100).
1258
+ * @param outputFormat - The output format of the generated image. One of 'png', 'jpeg', or 'webp'.
1259
+ * @param partialImages - Number of partial images to generate in streaming mode (0-3).
1260
+ * @param quality - The quality of the generated image. One of 'auto', 'low', 'medium', 'high', 'xhigh', or 'max'. 'xhigh' and 'max' require a GPT Image 2.5 model.
1261
+ * @param size - The size of the generated image. One of 'auto', '1024x1024', '1024x1536', or '1536x1024'.
1262
+ */
1263
+ imageGeneration: (args?: {
1264
+ action?: "generate" | "edit" | "auto";
1265
+ background?: "auto" | "opaque" | "transparent";
1266
+ inputFidelity?: "low" | "high";
1267
+ inputImageMask?: {
1268
+ fileId?: string;
1269
+ imageUrl?: string;
1270
+ };
1271
+ model?: string;
1272
+ moderation?: "auto" | "low";
1273
+ outputCompression?: number;
1274
+ outputFormat?: "png" | "jpeg" | "webp";
1275
+ partialImages?: number;
1276
+ quality?: "auto" | "low" | "medium" | "high" | "xhigh" | "max";
1277
+ size?: "auto" | "1024x1024" | "1024x1536" | "1536x1024" | (string & {});
1278
+ }) => import("../../@ai-sdk_provider-utils@5.0.81/dist/index.js").ProviderExecutedTool<{}, {
1279
+ result: string;
1280
+ }, {}>;
1281
+ /**
1282
+ * Local shell is a tool that allows agents to run shell commands locally
1283
+ * on a machine you or the user provides.
1284
+ *
1285
+ * Supported models: `gpt-5-codex`
1286
+ */
1287
+ localShell: import("../../@ai-sdk_provider-utils@5.0.81/dist/index.js").ProviderDefinedToolFactoryWithOutputSchema<{
1288
+ action: {
1289
+ type: "exec";
1290
+ command: string[];
1291
+ timeoutMs?: number;
1292
+ user?: string;
1293
+ workingDirectory?: string;
1294
+ env?: Record<string, string>;
1295
+ };
1296
+ }, {
1297
+ output: string;
1298
+ }, {}, {}>;
1299
+ /**
1300
+ * The shell tool allows the model to interact with your local computer through
1301
+ * a controlled command-line interface. The model proposes shell commands; your
1302
+ * integration executes them and returns the outputs.
1303
+ *
1304
+ * Available through the Responses API for use with GPT-5.1.
1305
+ *
1306
+ * WARNING: Running arbitrary shell commands can be dangerous. Always sandbox
1307
+ * execution or add strict allow-/deny-lists before forwarding a command to
1308
+ * the system shell.
1309
+ */
1310
+ shell: import("../../@ai-sdk_provider-utils@5.0.81/dist/index.js").ProviderDefinedToolFactoryWithOutputSchema<{
1311
+ action: {
1312
+ commands: string[];
1313
+ timeoutMs?: number;
1314
+ maxOutputLength?: number;
1315
+ };
1316
+ }, {
1317
+ maxOutputLength?: number;
1318
+ output: Array<{
1319
+ stdout: string;
1320
+ stderr: string;
1321
+ outcome: {
1322
+ type: "timeout";
1323
+ } | {
1324
+ type: "exit";
1325
+ exitCode: number;
1326
+ };
1327
+ }>;
1328
+ }, {
1329
+ environment?: {
1330
+ type: "containerAuto";
1331
+ fileIds?: string[];
1332
+ memoryLimit?: "1g" | "4g" | "16g" | "64g";
1333
+ networkPolicy?: {
1334
+ type: "disabled";
1335
+ } | {
1336
+ type: "allowlist";
1337
+ allowedDomains: string[];
1338
+ domainSecrets?: Array<{
1339
+ domain: string;
1340
+ name: string;
1341
+ value: string;
1342
+ }>;
1343
+ };
1344
+ skills?: Array<{
1345
+ type: "skillReference";
1346
+ providerReference: import("../../@ai-sdk_provider@4.0.38/dist/index.js").SharedV4ProviderReference;
1347
+ version?: string;
1348
+ } | {
1349
+ type: "inline";
1350
+ name: string;
1351
+ description: string;
1352
+ source: {
1353
+ type: "base64";
1354
+ mediaType: "application/zip";
1355
+ data: string;
1356
+ };
1357
+ }>;
1358
+ } | {
1359
+ type: "containerReference";
1360
+ containerId: string;
1361
+ } | {
1362
+ type?: "local";
1363
+ skills?: Array<{
1364
+ name: string;
1365
+ description: string;
1366
+ path: string;
1367
+ }>;
1368
+ };
1369
+ }, {}>;
1370
+ /**
1371
+ * Web search allows models to access up-to-date information from the internet
1372
+ * and provide answers with sourced citations.
1373
+ *
1374
+ * @deprecated Use `webSearch` instead.
1375
+ *
1376
+ * @param searchContextSize - The search context size to use for the web search.
1377
+ * @param userLocation - The user location to use for the web search.
1378
+ */
1379
+ webSearchPreview: import("../../@ai-sdk_provider-utils@5.0.81/dist/index.js").ProviderExecutedToolFactory<{}, {
1380
+ action?: {
1381
+ type: "search";
1382
+ query?: string;
1383
+ } | {
1384
+ type: "openPage";
1385
+ url?: string | null;
1386
+ } | {
1387
+ type: "findInPage";
1388
+ url?: string | null;
1389
+ pattern?: string | null;
1390
+ };
1391
+ }, {
1392
+ searchContextSize?: "low" | "medium" | "high";
1393
+ userLocation?: {
1394
+ type: "approximate";
1395
+ country?: string;
1396
+ city?: string;
1397
+ region?: string;
1398
+ timezone?: string;
1399
+ };
1400
+ }, {}>;
1401
+ /**
1402
+ * Web search allows models to access up-to-date information from the internet
1403
+ * and provide answers with sourced citations.
1404
+ *
1405
+ * @param filters - The filters to use for the web search.
1406
+ * @param searchContextSize - The search context size to use for the web search.
1407
+ * @param userLocation - The user location to use for the web search.
1408
+ */
1409
+ webSearch: (args?: Parameters<typeof webSearchToolFactory>[0]) => import("../../@ai-sdk_provider-utils@5.0.81/dist/index.js").ProviderExecutedTool<{}, {
1410
+ action?: {
1411
+ type: "search";
1412
+ query?: string;
1413
+ queries?: string[];
1414
+ } | {
1415
+ type: "openPage";
1416
+ url?: string | null;
1417
+ } | {
1418
+ type: "findInPage";
1419
+ url?: string | null;
1420
+ pattern?: string | null;
1421
+ };
1422
+ sources?: Array<{
1423
+ type: "url";
1424
+ url: string;
1425
+ } | {
1426
+ type: "api";
1427
+ name: string;
1428
+ }>;
1429
+ }, {}>;
1430
+ /**
1431
+ * MCP (Model Context Protocol) allows models to call tools exposed by
1432
+ * remote MCP servers or service connectors.
1433
+ *
1434
+ * @param serverLabel - Label to identify the MCP server.
1435
+ * @param allowedTools - Allowed tool names or filter object.
1436
+ * @param authorization - OAuth access token for the MCP server/connector.
1437
+ * @param connectorId - Identifier for a service connector.
1438
+ * @param headers - Optional headers to include in MCP requests.
1439
+ * // param requireApproval - Approval policy ('always'|'never'|filter object). (Removed - always 'never')
1440
+ * @param serverDescription - Optional description of the server.
1441
+ * @param serverUrl - URL for the MCP server.
1442
+ */
1443
+ mcp: (args: {
1444
+ serverLabel: string;
1445
+ allowedTools?: string[] | {
1446
+ readOnly?: boolean;
1447
+ toolNames?: string[];
1448
+ };
1449
+ authorization?: string;
1450
+ connectorId?: string;
1451
+ headers?: Record<string, string>;
1452
+ requireApproval?: "always" | "never" | {
1453
+ never?: {
1454
+ toolNames?: string[];
1455
+ };
1456
+ };
1457
+ serverDescription?: string;
1458
+ serverUrl?: string;
1459
+ }) => import("../../@ai-sdk_provider-utils@5.0.81/dist/index.js").ProviderExecutedTool<{}, {
1460
+ type: "call";
1461
+ serverLabel: string;
1462
+ name: string;
1463
+ arguments: string;
1464
+ output?: string | null;
1465
+ error?: import("../../@ai-sdk_provider@4.0.38/dist/index.js").JSONValue;
1466
+ }, {}>;
1467
+ /**
1468
+ * Programmatic Tool Calling lets OpenAI Responses models write and execute
1469
+ * JavaScript that orchestrates eligible tools.
1470
+ */
1471
+ programmaticToolCalling: () => import("../../@ai-sdk_provider-utils@5.0.81/dist/index.js").Experimental_ToolCallerTool<import("../../@ai-sdk_provider-utils@5.0.81/dist/index.js").ProviderExecutedTool<{
1472
+ code: string;
1473
+ fingerprint: string;
1474
+ }, {
1475
+ result: string;
1476
+ status: "completed" | "incomplete";
1477
+ }, {}>>;
1478
+ /**
1479
+ * Tool search allows the model to dynamically search for and load deferred
1480
+ * tools into the model's context as needed. This helps reduce overall token
1481
+ * usage, cost, and latency by only loading tools when the model needs them.
1482
+ *
1483
+ * To use tool search, mark functions or namespaces with `defer_loading: true`
1484
+ * in the tools array. The model will use tool search to load these tools
1485
+ * when it determines they are needed.
1486
+ */
1487
+ toolSearch: (args?: Parameters<import("../../@ai-sdk_provider-utils@5.0.81/dist/index.js").ProviderDefinedToolFactoryWithOutputSchema<{
1488
+ arguments?: unknown;
1489
+ call_id?: string | null;
1490
+ }, {
1491
+ tools: Array<import("../../@ai-sdk_provider@4.0.38/dist/index.js").JSONObject>;
1492
+ }, {
1493
+ execution?: "server" | "client";
1494
+ description?: string;
1495
+ parameters?: Record<string, unknown>;
1496
+ }, {}>>[0]) => import("../../@ai-sdk_provider-utils@5.0.81/dist/index.js").ProviderDefinedTool<{
1497
+ arguments?: unknown;
1498
+ call_id?: string | null;
1499
+ }, {
1500
+ tools: Array<import("../../@ai-sdk_provider@4.0.38/dist/index.js").JSONObject>;
1501
+ }, {}>;
1502
+ };
1503
+ //#endregion
1504
+ //#region src/live/openai-realtime-model-live-options.d.ts
1505
+ type OpenAIRealtimeModelLiveId = 'gpt-live-1' | (string & {});
1506
+ declare const openaiRealtimeModelLiveOptionsSchema: z.ZodObject<{
1507
+ client: z.ZodOptional<z.ZodObject<{
1508
+ dataChannel: z.ZodObject<{
1509
+ allowedClientEvents: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
1510
+ allowedServerEvents: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodObject<{
1511
+ type: z.ZodString;
1512
+ responseEvent: z.ZodOptional<z.ZodString>;
1513
+ }, z.core.$strict>>]>>;
1514
+ }, z.core.$strict>;
1515
+ }, z.core.$strict>>;
1516
+ delegation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1517
+ type: z.ZodLiteral<"client">;
1518
+ }, z.core.$strict>>>;
1519
+ input: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1520
+ type: z.ZodLiteral<"message">;
1521
+ role: z.ZodEnum<{
1522
+ developer: "developer";
1523
+ user: "user";
1524
+ }>;
1525
+ content: z.ZodTuple<[z.ZodObject<{
1526
+ type: z.ZodLiteral<"input_text">;
1527
+ text: z.ZodString;
1528
+ }, z.core.$strict>], null>;
1529
+ }, z.core.$strict>, z.ZodObject<{
1530
+ type: z.ZodLiteral<"message">;
1531
+ role: z.ZodLiteral<"assistant">;
1532
+ content: z.ZodTuple<[z.ZodObject<{
1533
+ type: z.ZodEnum<{
1534
+ text: "text";
1535
+ output_text: "output_text";
1536
+ }>;
1537
+ text: z.ZodString;
1538
+ }, z.core.$strict>], null>;
1539
+ }, z.core.$strict>]>>>;
1540
+ store: z.ZodOptional<z.ZodBoolean>;
1541
+ voice: z.ZodOptional<z.ZodObject<{
1542
+ id: z.ZodString;
1543
+ }, z.core.$strict>>;
1544
+ }, z.core.$strict>;
1545
+ /** Experimental Live options under sessionConfig.providerOptions.openai. */
1546
+ type OpenAIRealtimeModelLiveOptions = z.infer<typeof openaiRealtimeModelLiveOptionsSchema>;
1547
+ //#endregion
1548
+ //#region src/realtime/openai-realtime-model.d.ts
1549
+ type OpenAIRealtimeModelConfig = {
1550
+ provider: string;
1551
+ baseURL: string;
1552
+ headers: Resolvable<Record<string, string | undefined>>;
1553
+ fetch?: FetchFunction;
1554
+ };
1555
+ declare class OpenAIRealtimeModel implements Experimental_RealtimeModelV4 {
1556
+ readonly specificationVersion: "v4";
1557
+ readonly provider: string;
1558
+ readonly modelId: string;
1559
+ private readonly config;
1560
+ constructor(modelId: string, config: OpenAIRealtimeModelConfig);
1561
+ doCreateClientSecret(options: Experimental_RealtimeModelV4ClientSecretOptions): Promise<Experimental_RealtimeModelV4ClientSecretResult>;
1562
+ getWebSocketConfig(options: {
1563
+ token: string;
1564
+ url: string;
1565
+ }): {
1566
+ url: string;
1567
+ protocols?: string[];
1568
+ };
1569
+ parseServerEvent(raw: unknown): Experimental_RealtimeModelV4ServerEvent;
1570
+ serializeClientEvent(event: Experimental_RealtimeModelV4ClientEvent): unknown;
1571
+ buildSessionConfig(config: Experimental_RealtimeModelV4SessionConfig): Record<string, unknown>;
1572
+ }
1573
+ //#endregion
1574
+ //#region src/live/openai-realtime-model-live.d.ts
1575
+ type OpenAIRealtimeModelLiveConfig = OpenAIRealtimeModelConfig;
1576
+ declare class OpenAIRealtimeModelLive implements Experimental_RealtimeModelV4 {
1577
+ readonly modelId: OpenAIRealtimeModelLiveId;
1578
+ private readonly config;
1579
+ readonly specificationVersion: "v4";
1580
+ readonly capabilities: {
1581
+ readonly startup: "session-start";
1582
+ readonly finalization: "session-close";
1583
+ readonly conversation: "continuous";
1584
+ readonly transports: readonly ["websocket", "webrtc"];
1585
+ readonly connections: readonly ["server-websocket", "webrtc"];
1586
+ };
1587
+ constructor(modelId: OpenAIRealtimeModelLiveId, config: OpenAIRealtimeModelLiveConfig);
1588
+ get provider(): string;
1589
+ getWebRTCConfig(): {
1590
+ dataChannelLabel: string;
1591
+ };
1592
+ getServerWebSocketConfig(): {
1593
+ url: string;
1594
+ headers: Record<string, string>;
1595
+ } | Promise<{
1596
+ url: string;
1597
+ headers: Record<string, string>;
1598
+ }>;
1599
+ doCreateWebRTCSession({ sdp, sessionConfig, abortSignal }: {
1600
+ sdp: string;
1601
+ sessionConfig?: Experimental_RealtimeModelV4SessionConfig;
1602
+ abortSignal?: AbortSignal;
1603
+ }): Promise<{
1604
+ sessionId: string;
1605
+ sdp: string;
1606
+ }>;
1607
+ parseServerEvent(raw: unknown): import("../../@ai-sdk_provider@4.0.38/dist/index.js").Experimental_RealtimeModelV4ServerEvent[];
1608
+ createServerEventParser(): (raw: unknown) => import("../../@ai-sdk_provider@4.0.38/dist/index.js").Experimental_RealtimeModelV4ServerEvent[];
1609
+ serializeClientEvent(event: Experimental_RealtimeModelV4ClientEvent): unknown;
1610
+ buildSessionConfig(config: Experimental_RealtimeModelV4SessionConfig): Record<string, unknown>;
1611
+ }
1612
+ //#endregion
1613
+ //#region src/openai-model-catalog.d.ts
1614
+ declare const realtimeModelEntries: {
1615
+ readonly 'gpt-live-1': {
1616
+ readonly capabilities: {
1617
+ readonly realtime: {
1618
+ readonly conversation: "continuous";
1619
+ readonly transports: readonly ["websocket", "webrtc"];
1620
+ readonly connections: readonly ["server-websocket", "webrtc"];
1621
+ };
1622
+ };
1623
+ readonly requestConfig: {
1624
+ readonly realtime: {
1625
+ readonly api: "live";
1626
+ readonly startup: "session-start";
1627
+ readonly finalization: "session-close";
1628
+ };
1629
+ };
1630
+ };
1631
+ readonly 'gpt-realtime': {
1632
+ readonly capabilities: {
1633
+ readonly realtime: {
1634
+ readonly conversation: "turn-based";
1635
+ readonly transports: readonly ["websocket"];
1636
+ readonly connections: readonly ["client-secret-websocket"];
1637
+ };
1638
+ };
1639
+ readonly requestConfig: {
1640
+ readonly realtime: {
1641
+ readonly api: "realtime";
1642
+ readonly startup: "session-update";
1643
+ readonly finalization: "transport-close";
1644
+ };
1645
+ };
1646
+ };
1647
+ };
1648
+ type OpenAIKnownLiveModelId = { [ModelId in keyof typeof realtimeModelEntries]: (typeof realtimeModelEntries)[ModelId]['requestConfig']['realtime']['api'] extends 'live' ? ModelId : never; }[keyof typeof realtimeModelEntries];
1649
+ //#endregion
1650
+ //#region src/realtime/openai-realtime-factory.d.ts
1651
+ type OpenAIRealtimeOptions = {
1652
+ /** Overrides model ID routing, including for early-access models. */
1653
+ api?: 'live' | 'realtime';
1654
+ };
1655
+ interface OpenAIRealtimeFactory extends Experimental_RealtimeFactoryV4 {
1656
+ (modelId: string, options: {
1657
+ api: 'live';
1658
+ }): OpenAIRealtimeModelLive;
1659
+ (modelId: string, options: {
1660
+ api: 'realtime';
1661
+ }): OpenAIRealtimeModel;
1662
+ (modelId: OpenAIKnownLiveModelId, options?: {
1663
+ api?: undefined;
1664
+ }): OpenAIRealtimeModelLive;
1665
+ (modelId: string, options?: OpenAIRealtimeOptions): Experimental_RealtimeModelV4;
1666
+ getToken(options: Parameters<Experimental_RealtimeFactoryV4['getToken']>[0] & OpenAIRealtimeOptions): ReturnType<Experimental_RealtimeFactoryV4['getToken']>;
1667
+ }
1668
+ //#endregion
1669
+ //#region src/speech/openai-speech-model-options.d.ts
1670
+ type OpenAISpeechModelId = 'tts-1' | 'tts-1-1106' | 'tts-1-hd' | 'tts-1-hd-1106' | 'gpt-4o-mini-tts' | 'gpt-4o-mini-tts-2025-03-20' | 'gpt-4o-mini-tts-2025-12-15' | (string & {});
1671
+ declare const openaiSpeechModelOptionsSchema: import("../../@ai-sdk_provider-utils@5.0.81/dist/index.js").LazySchema<{
1672
+ instructions?: string | null | undefined;
1673
+ speed?: number | null | undefined;
1674
+ }>;
1675
+ type OpenAISpeechModelOptions = InferSchema<typeof openaiSpeechModelOptionsSchema>;
1676
+ //#endregion
1677
+ //#region src/transcription/openai-transcription-model-options.d.ts
1678
+ type OpenAITranscriptionModelId = 'whisper-1' | 'gpt-4o-mini-transcribe' | 'gpt-4o-mini-transcribe-2025-03-20' | 'gpt-4o-mini-transcribe-2025-12-15' | 'gpt-4o-transcribe' | 'gpt-4o-transcribe-diarize' | 'gpt-live-transcribe' | 'gpt-realtime-whisper' | 'gpt-transcribe' | (string & {});
1679
+ declare const openAITranscriptionModelOptions: import("../../@ai-sdk_provider-utils@5.0.81/dist/index.js").LazySchema<{
1680
+ include?: string[] | undefined;
1681
+ language?: string | undefined;
1682
+ prompt?: string | undefined;
1683
+ temperature?: number | undefined;
1684
+ timestampGranularities?: ("word" | "segment")[] | undefined;
1685
+ responseFormat?: "json" | "verbose_json" | "diarized_json" | undefined;
1686
+ chunkingStrategy?: "auto" | {
1687
+ type: "server_vad";
1688
+ threshold?: number | undefined;
1689
+ prefixPaddingMs?: number | undefined;
1690
+ silenceDurationMs?: number | undefined;
1691
+ } | undefined;
1692
+ streaming?: {
1693
+ delay?: "low" | "medium" | "high" | "xhigh" | "minimal" | undefined;
1694
+ include?: string[] | undefined;
1695
+ } | undefined;
1696
+ }>;
1697
+ type OpenAITranscriptionModelOptions = InferSchema<typeof openAITranscriptionModelOptions>;
1698
+ //#endregion
1699
+ //#region src/speech-translation/openai-speech-translation-model-options.d.ts
1700
+ type OpenAISpeechTranslationModelId = 'gpt-realtime-translate' | (string & {});
1701
+ declare const openAISpeechTranslationModelOptions: import("../../@ai-sdk_provider-utils@5.0.81/dist/index.js").LazySchema<Record<string, never>>;
1702
+ type OpenAISpeechTranslationModelOptions = InferSchema<typeof openAISpeechTranslationModelOptions>;
1703
+ //#endregion
1704
+ //#region src/openai-provider.d.ts
1705
+ interface OpenAIProvider extends ProviderV4 {
1706
+ (modelId: OpenAIResponsesModelId): LanguageModelV4;
1707
+ /** Creates an experimental Choice/Score/Boolean decision model using the Decisions API. */
1708
+ decisionModel(modelId: OpenAIDecisionModelId): Experimental_DecisionModelV4;
1709
+ /** @deprecated Use `decisionModel` instead. */
1710
+ evaluationModel(modelId: OpenAIDecisionModelId): Experimental_DecisionModelV4 & {
1711
+ doEvaluate: Experimental_DecisionModelV4['doDecide'];
1712
+ };
1713
+ /**
1714
+ * Creates an OpenAI model for text generation.
1715
+ */
1716
+ languageModel(modelId: OpenAIResponsesModelId): LanguageModelV4;
1717
+ /**
1718
+ * Creates an OpenAI chat model for text generation.
1719
+ */
1720
+ chat(modelId: OpenAIChatModelId): LanguageModelV4;
1721
+ /**
1722
+ * Creates an OpenAI responses API model for text generation.
1723
+ */
1724
+ responses(modelId: OpenAIResponsesModelId): LanguageModelV4;
1725
+ /**
1726
+ * Creates an OpenAI completion model for text generation.
1727
+ */
1728
+ completion(modelId: OpenAICompletionModelId): LanguageModelV4;
1729
+ /**
1730
+ * Creates a model for text embeddings.
1731
+ */
1732
+ embedding(modelId: OpenAIEmbeddingModelId): EmbeddingModelV4;
1733
+ /**
1734
+ * Creates a model for text embeddings.
1735
+ */
1736
+ embeddingModel(modelId: OpenAIEmbeddingModelId): EmbeddingModelV4;
1737
+ /**
1738
+ * @deprecated Use `embedding` instead.
1739
+ */
1740
+ textEmbedding(modelId: OpenAIEmbeddingModelId): EmbeddingModelV4;
1741
+ /**
1742
+ * @deprecated Use `embeddingModel` instead.
1743
+ */
1744
+ textEmbeddingModel(modelId: OpenAIEmbeddingModelId): EmbeddingModelV4;
1745
+ /**
1746
+ * Creates a model for image generation.
1747
+ */
1748
+ image(modelId: OpenAIImageModelId): ImageModelV4;
1749
+ /**
1750
+ * Creates a model for image generation.
1751
+ */
1752
+ imageModel(modelId: OpenAIImageModelId): ImageModelV4;
1753
+ /**
1754
+ * Creates a model for transcription.
1755
+ */
1756
+ transcription(modelId: OpenAITranscriptionModelId): TranscriptionModelV4;
1757
+ /**
1758
+ * Creates an experimental model for streaming speech translation.
1759
+ */
1760
+ translation(modelId: OpenAISpeechTranslationModelId): Experimental_SpeechTranslationModelV4;
1761
+ /**
1762
+ * Creates an experimental model for streaming speech translation.
1763
+ */
1764
+ speechTranslationModel(modelId: OpenAISpeechTranslationModelId): Experimental_SpeechTranslationModelV4;
1765
+ /**
1766
+ * Creates a model for speech generation.
1767
+ */
1768
+ speech(modelId: OpenAISpeechModelId): SpeechModelV4;
1769
+ /**
1770
+ * Creates an experimental realtime model for bidirectional audio/text
1771
+ * communication over WebSocket.
1772
+ */
1773
+ experimental_realtime: OpenAIRealtimeFactory;
1774
+ /**
1775
+ * Returns a FilesV4 interface for uploading files to OpenAI.
1776
+ */
1777
+ files(): FilesV4;
1778
+ /**
1779
+ * Returns a SkillsV4 interface for uploading skills to OpenAI.
1780
+ */
1781
+ skills(): SkillsV4;
1782
+ /**
1783
+ * Returns a BatchV4 interface for processing batches with OpenAI.
1784
+ */
1785
+ experimental_batch(): Experimental_BatchV4<{
1786
+ text: OpenAIResponsesModelId;
1787
+ }>;
1788
+ /**
1789
+ * OpenAI-specific tools.
1790
+ */
1791
+ tools: typeof openaiTools;
1792
+ }
1793
+ interface OpenAIProviderSettings {
1794
+ /** Settings for downloading JSON Lines batch results. */
1795
+ batchResultDownloads?: {
1796
+ /** Maximum UTF-8 bytes per row, excluding LF. Defaults to 64 MiB. */
1797
+ maxLineBytes?: number;
1798
+ };
1799
+ /**
1800
+ * Base URL for the OpenAI API calls.
1801
+ */
1802
+ baseURL?: string;
1803
+ /**
1804
+ * API key for authenticating requests.
1805
+ * A function is called before each request and may return a promise.
1806
+ */
1807
+ apiKey?: Resolvable<string>;
1808
+ /**
1809
+ * OpenAI Organization.
1810
+ */
1811
+ organization?: string;
1812
+ /**
1813
+ * OpenAI project.
1814
+ */
1815
+ project?: string;
1816
+ /**
1817
+ * Custom headers to include in the requests.
1818
+ */
1819
+ headers?: Record<string, string>;
1820
+ /**
1821
+ * Provider name. Overrides the `openai` default name for 3rd party providers.
1822
+ */
1823
+ name?: string;
1824
+ /**
1825
+ * Custom fetch implementation. You can use it as a middleware to intercept requests,
1826
+ * or to provide a custom fetch implementation for e.g. testing.
1827
+ */
1828
+ fetch?: FetchFunction;
1829
+ /**
1830
+ * Custom WebSocket implementation. This is useful for testing or for
1831
+ * runtimes that need a WebSocket constructor with header support.
1832
+ */
1833
+ webSocket?: WebSocketConstructor;
1834
+ }
1835
+ /**
1836
+ * Create an OpenAI provider instance.
1837
+ */
1838
+ export declare function createOpenAI(options?: OpenAIProviderSettings): OpenAIProvider;
1839
+ /**
1840
+ * Default OpenAI provider instance.
1841
+ */
1842
+ export declare const openai: OpenAIProvider;
1843
+ //#endregion
1844
+ //#region src/responses/openai-responses-prepare-tools.d.ts
1845
+ type OpenAIToolOptions = {
1846
+ allowedCallers?: Array<'direct' | 'programmatic'>;
1847
+ /**
1848
+ * Whether the model can continue generating after calling this tool without
1849
+ * waiting for its result.
1850
+ */
1851
+ async?: boolean;
1852
+ deferLoading?: boolean;
1853
+ /**
1854
+ * Omit this function from the Responses request's top-level tools array.
1855
+ * Use for tools supplied in history through additionalTools. Keep the tool
1856
+ * active in the SDK so its calls can still be validated and executed.
1857
+ */
1858
+ omitFromRequestTools?: boolean;
1859
+ outputSchema?: JSONObject;
1860
+ namespace?: {
1861
+ name: string;
1862
+ description: string;
1863
+ };
1864
+ };
1865
+ //#endregion
1866
+ //#region src/speech-translation/openai-speech-translation-model.d.ts
1867
+ interface OpenAISpeechTranslationModelConfig extends OpenAIConfig {
1868
+ _internal?: {
1869
+ currentDate?: () => Date;
1870
+ };
1871
+ }
1872
+ declare class OpenAISpeechTranslationModel implements Experimental_SpeechTranslationModelV4 {
1873
+ readonly modelId: OpenAISpeechTranslationModelId;
1874
+ private readonly config;
1875
+ readonly specificationVersion = "v4";
1876
+ static [WORKFLOW_SERIALIZE](model: OpenAISpeechTranslationModel): {
1877
+ modelId: string;
1878
+ config: import("../../@ai-sdk_provider@4.0.38/dist/index.js").JSONObject;
1879
+ };
1880
+ static [WORKFLOW_DESERIALIZE](options: {
1881
+ modelId: OpenAISpeechTranslationModelId;
1882
+ config: OpenAISpeechTranslationModelConfig;
1883
+ }): OpenAISpeechTranslationModel;
1884
+ get provider(): string;
1885
+ constructor(modelId: OpenAISpeechTranslationModelId, config: OpenAISpeechTranslationModelConfig);
1886
+ doStream(options: Experimental_SpeechTranslationModelV4StreamOptions): Promise<Awaited<ReturnType<Experimental_SpeechTranslationModelV4['doStream']>>>;
1887
+ }
1888
+ //#endregion
1889
+ //#region src/files/openai-files-options.d.ts
1890
+ declare const openaiFilesOptionsSchema: import("../../@ai-sdk_provider-utils@5.0.81/dist/index.js").LazySchema<{
1891
+ purpose?: string | undefined;
1892
+ expiresAfter?: number | undefined;
1893
+ }>;
1894
+ type OpenAIFilesOptions = InferSchema<typeof openaiFilesOptionsSchema>;
1895
+ //#endregion
1896
+ //#region src/tool/computer.d.ts
1897
+ declare const safetyCheckSchema: () => z.ZodObject<{
1898
+ id: z.ZodString;
1899
+ code: z.ZodOptional<z.ZodString>;
1900
+ message: z.ZodOptional<z.ZodString>;
1901
+ }, z.core.$strip>;
1902
+ declare const computerActionSchema: () => z.ZodDiscriminatedUnion<[z.ZodObject<{
1903
+ type: z.ZodLiteral<"click">;
1904
+ button: z.ZodEnum<{
1905
+ left: "left";
1906
+ right: "right";
1907
+ wheel: "wheel";
1908
+ back: "back";
1909
+ forward: "forward";
1910
+ }>;
1911
+ x: z.ZodNumber;
1912
+ y: z.ZodNumber;
1913
+ keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
1914
+ }, z.core.$strip>, z.ZodObject<{
1915
+ type: z.ZodLiteral<"double_click">;
1916
+ x: z.ZodNumber;
1917
+ y: z.ZodNumber;
1918
+ keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
1919
+ }, z.core.$strip>, z.ZodObject<{
1920
+ type: z.ZodLiteral<"drag">;
1921
+ path: z.ZodArray<z.ZodObject<{
1922
+ x: z.ZodNumber;
1923
+ y: z.ZodNumber;
1924
+ }, z.core.$strip>>;
1925
+ keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
1926
+ }, z.core.$strip>, z.ZodObject<{
1927
+ type: z.ZodLiteral<"keypress">;
1928
+ keys: z.ZodArray<z.ZodString>;
1929
+ }, z.core.$strip>, z.ZodObject<{
1930
+ type: z.ZodLiteral<"move">;
1931
+ x: z.ZodNumber;
1932
+ y: z.ZodNumber;
1933
+ keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
1934
+ }, z.core.$strip>, z.ZodObject<{
1935
+ type: z.ZodLiteral<"screenshot">;
1936
+ }, z.core.$strip>, z.ZodObject<{
1937
+ type: z.ZodLiteral<"scroll">;
1938
+ x: z.ZodNumber;
1939
+ y: z.ZodNumber;
1940
+ scrollX: z.ZodNumber;
1941
+ scrollY: z.ZodNumber;
1942
+ keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
1943
+ }, z.core.$strip>, z.ZodObject<{
1944
+ type: z.ZodLiteral<"type">;
1945
+ text: z.ZodString;
1946
+ }, z.core.$strip>, z.ZodObject<{
1947
+ type: z.ZodLiteral<"wait">;
1948
+ }, z.core.$strip>]>;
1949
+ type OpenAIComputerAction = z.infer<ReturnType<typeof computerActionSchema>>;
1950
+ type OpenAIComputerSafetyCheck = z.infer<ReturnType<typeof safetyCheckSchema>>;
1951
+ //#endregion
1952
+ //#region src/responses/openai-responses-provider-metadata.d.ts
1953
+ type OpenaiResponsesChunk = InferSchema<typeof openaiResponsesChunkSchema>;
1954
+ type ResponsesOutputTextAnnotationProviderMetadata = Extract<OpenaiResponsesChunk, {
1955
+ type: 'response.output_text.annotation.added';
1956
+ }>['annotation'];
1957
+ type ResponsesProviderMetadata = {
1958
+ responseId: string | null | undefined;
1959
+ logprobs?: Array<OpenAIResponsesLogprobs>;
1960
+ serviceTier?: string;
1961
+ reasoningContext?: string;
1962
+ };
1963
+ type ResponsesReasoningProviderMetadata = {
1964
+ itemId: string;
1965
+ reasoningEncryptedContent?: string | null;
1966
+ };
1967
+ type OpenaiResponsesReasoningProviderMetadata = {
1968
+ openai: ResponsesReasoningProviderMetadata;
1969
+ };
1970
+ type OpenaiResponsesProviderMetadata = {
1971
+ openai: ResponsesProviderMetadata;
1972
+ };
1973
+ type ResponsesToolCallProviderMetadata = {
1974
+ itemId: string;
1975
+ async?: boolean;
1976
+ namespace?: string;
1977
+ caller?: {
1978
+ type: 'direct';
1979
+ } | {
1980
+ type: 'program';
1981
+ callerId: string;
1982
+ };
1983
+ };
1984
+ type OpenaiResponsesToolCallProviderMetadata = {
1985
+ openai: ResponsesToolCallProviderMetadata;
1986
+ };
1987
+ type ResponsesCompactionProviderMetadata = {
1988
+ type: 'compaction';
1989
+ itemId: string;
1990
+ encryptedContent?: string;
1991
+ };
1992
+ type OpenaiResponsesCompactionProviderMetadata = {
1993
+ openai: ResponsesCompactionProviderMetadata;
1994
+ };
1995
+ type ResponsesTextProviderMetadata = {
1996
+ itemId: string;
1997
+ phase?: 'commentary' | 'final_answer' | null;
1998
+ annotations?: Array<ResponsesOutputTextAnnotationProviderMetadata>;
1999
+ };
2000
+ type OpenaiResponsesTextProviderMetadata = {
2001
+ openai: ResponsesTextProviderMetadata;
2002
+ };
2003
+ type ResponsesSourceDocumentProviderMetadata = {
2004
+ type: 'file_search';
2005
+ fileId: string;
2006
+ } | {
2007
+ type: 'file_citation';
2008
+ fileId: string;
2009
+ index: number;
2010
+ } | {
2011
+ type: 'container_file_citation';
2012
+ fileId: string;
2013
+ containerId: string;
2014
+ } | {
2015
+ type: 'file_path';
2016
+ fileId: string;
2017
+ index: number;
2018
+ };
2019
+ type OpenaiResponsesSourceDocumentProviderMetadata = {
2020
+ openai: ResponsesSourceDocumentProviderMetadata;
2021
+ };
2022
+ //#endregion
2023
+ //#region src/version.d.ts
2024
+ export declare const VERSION: string;
2025
+ //#endregion
2026
+ //#region src/openai-decision-model-options.d.ts
2027
+ declare const openaiDecisionModelOptions: import("../../@ai-sdk_provider-utils@5.0.81/dist/index.js").LazySchema<{
2028
+ safetyIdentifier?: string | undefined;
2029
+ promptCacheKey?: string | undefined;
2030
+ }>;
2031
+ type OpenAIDecisionModelOptions = InferSchema<typeof openaiDecisionModelOptions>;
2032
+ //#endregion
2033
+ export { type OpenAIRealtimeFactory as Experimental_OpenAIRealtimeFactory, OpenAIRealtimeModel as Experimental_OpenAIRealtimeModel, type OpenAIRealtimeModelConfig as Experimental_OpenAIRealtimeModelConfig, OpenAIRealtimeModelLive as Experimental_OpenAIRealtimeModelLive, type OpenAIRealtimeModelLiveConfig as Experimental_OpenAIRealtimeModelLiveConfig, type OpenAIRealtimeModelLiveId as Experimental_OpenAIRealtimeModelLiveId, type OpenAIRealtimeModelLiveOptions as Experimental_OpenAIRealtimeModelLiveOptions, type OpenAIRealtimeOptions as Experimental_OpenAIRealtimeOptions, OpenAISpeechTranslationModel as Experimental_OpenAISpeechTranslationModel, OpenAISpeechTranslationModel as Experimental_OpenAITranslationModel, type OpenAISpeechTranslationModelId as Experimental_OpenAISpeechTranslationModelId, type OpenAISpeechTranslationModelId as Experimental_OpenAITranslationModelId, type OpenAISpeechTranslationModelOptions as Experimental_OpenAISpeechTranslationModelOptions, type OpenAISpeechTranslationModelOptions as Experimental_OpenAITranslationModelOptions, type OpenAILanguageModelChatOptions as OpenAIChatLanguageModelOptions, type OpenAILanguageModelChatOptions, type OpenAIComputerAction, type OpenAIComputerSafetyCheck, type OpenAIDecisionModelId, type OpenAIDecisionModelOptions, type OpenAIEmbeddingModelOptions, type OpenAIFilesOptions, type OpenAIImageModelEditOptions, type OpenAIImageModelGenerationOptions, type OpenAIImageModelOptions, type OpenAILanguageModelCompletionOptions, type OpenAILanguageModelResponsesOptions, type OpenAILanguageModelResponsesOptions as OpenAIResponsesProviderOptions, type OpenAIProvider, type OpenAIProviderSettings, type OpenAIResponsesSystemMessageOptions, type OpenAIResponsesToolResultOptions, type OpenAISpeechModelOptions, type OpenAIToolOptions, type OpenAITranscriptionModelOptions, type OpenaiResponsesCompactionProviderMetadata, type OpenaiResponsesProviderMetadata, type OpenaiResponsesReasoningProviderMetadata, type OpenaiResponsesSourceDocumentProviderMetadata, type OpenaiResponsesTextProviderMetadata, type OpenaiResponsesToolCallProviderMetadata };
2034
+ //# sourceMappingURL=index.d.ts.map