@radheim/ai 0.0.0-stage → 2.4.3

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 (560) hide show
  1. package/README.md +1890 -3
  2. package/dist/ai.d.ts +36 -0
  3. package/dist/ai.js +46 -0
  4. package/dist/cache-policy.d.ts +6 -0
  5. package/dist/cache-policy.js +205 -0
  6. package/dist/decision-client.d.ts +10 -0
  7. package/dist/decision-client.js +42 -0
  8. package/dist/decision.d.ts +378 -0
  9. package/dist/decision.js +171 -0
  10. package/dist/effect.d.ts +59 -0
  11. package/dist/effect.js +33 -0
  12. package/dist/effort-updates.d.ts +12 -0
  13. package/dist/effort-updates.js +23 -0
  14. package/dist/embedding-client.d.ts +10 -0
  15. package/dist/embedding-client.js +17 -0
  16. package/dist/embedding.d.ts +113 -0
  17. package/dist/embedding.js +76 -0
  18. package/dist/experimental/cloudflare-run-extraction.d.ts +17 -0
  19. package/dist/experimental/cloudflare-run-extraction.js +85 -0
  20. package/dist/experimental/extraction.d.ts +153 -0
  21. package/dist/experimental/extraction.js +103 -0
  22. package/dist/experimental/realtime.d.ts +80 -0
  23. package/dist/experimental/realtime.js +96 -0
  24. package/dist/experimental.d.ts +10 -0
  25. package/dist/experimental.js +6 -0
  26. package/dist/fetch-middleware.d.ts +7 -0
  27. package/dist/fetch-middleware.js +41 -0
  28. package/dist/generation.d.ts +77 -0
  29. package/dist/generation.js +109 -0
  30. package/dist/image-client.d.ts +14 -0
  31. package/dist/image-client.js +39 -0
  32. package/dist/image.d.ts +323 -0
  33. package/dist/image.js +103 -0
  34. package/dist/index.d.ts +300 -0
  35. package/dist/index.js +179 -0
  36. package/dist/llm.d.ts +109 -0
  37. package/dist/llm.js +177 -0
  38. package/dist/loop.d.ts +38 -0
  39. package/dist/loop.js +139 -0
  40. package/dist/media-client.d.ts +30 -0
  41. package/dist/media-client.js +44 -0
  42. package/dist/media-model.d.ts +49 -0
  43. package/dist/media-model.js +55 -0
  44. package/dist/media.d.ts +237 -0
  45. package/dist/media.js +285 -0
  46. package/dist/promise-media.d.ts +20 -0
  47. package/dist/promise-media.js +16 -0
  48. package/dist/protocols/alibaba-chat.d.ts +315 -0
  49. package/dist/protocols/alibaba-chat.js +78 -0
  50. package/dist/protocols/alibaba-images.d.ts +22 -0
  51. package/dist/protocols/alibaba-images.js +77 -0
  52. package/dist/protocols/alibaba-messages.d.ts +413 -0
  53. package/dist/protocols/alibaba-messages.js +44 -0
  54. package/dist/protocols/alibaba-responses.d.ts +298 -0
  55. package/dist/protocols/alibaba-responses.js +67 -0
  56. package/dist/protocols/anthropic-messages.d.ts +1213 -0
  57. package/dist/protocols/anthropic-messages.js +1412 -0
  58. package/dist/protocols/assemblyai-transcription.d.ts +41 -0
  59. package/dist/protocols/assemblyai-transcription.js +137 -0
  60. package/dist/protocols/bedrock-converse.d.ts +548 -0
  61. package/dist/protocols/bedrock-converse.js +801 -0
  62. package/dist/protocols/bedrock-event-stream.d.ts +14 -0
  63. package/dist/protocols/bedrock-event-stream.js +100 -0
  64. package/dist/protocols/cartesia-speech.d.ts +117 -0
  65. package/dist/protocols/cartesia-speech.js +120 -0
  66. package/dist/protocols/cloudflare-run-decisions.d.ts +9 -0
  67. package/dist/protocols/cloudflare-run-decisions.js +36 -0
  68. package/dist/protocols/cloudflare-workers-ai-images.d.ts +23 -0
  69. package/dist/protocols/cloudflare-workers-ai-images.js +80 -0
  70. package/dist/protocols/cohere-chat.d.ts +184 -0
  71. package/dist/protocols/cohere-chat.js +317 -0
  72. package/dist/protocols/deepgram-speech.d.ts +109 -0
  73. package/dist/protocols/deepgram-speech.js +93 -0
  74. package/dist/protocols/deepgram-transcription.d.ts +26 -0
  75. package/dist/protocols/deepgram-transcription.js +119 -0
  76. package/dist/protocols/elevenlabs-speech.d.ts +112 -0
  77. package/dist/protocols/elevenlabs-speech.js +111 -0
  78. package/dist/protocols/elevenlabs-transcription.d.ts +28 -0
  79. package/dist/protocols/elevenlabs-transcription.js +137 -0
  80. package/dist/protocols/gemini.d.ts +388 -0
  81. package/dist/protocols/gemini.js +741 -0
  82. package/dist/protocols/google-decisions.d.ts +13 -0
  83. package/dist/protocols/google-decisions.js +133 -0
  84. package/dist/protocols/google-embed-content.d.ts +34 -0
  85. package/dist/protocols/google-embed-content.js +110 -0
  86. package/dist/protocols/google-images.d.ts +18 -0
  87. package/dist/protocols/google-images.js +169 -0
  88. package/dist/protocols/google-interactions-video.d.ts +38 -0
  89. package/dist/protocols/google-interactions-video.js +185 -0
  90. package/dist/protocols/google-interactions.d.ts +554 -0
  91. package/dist/protocols/google-interactions.js +756 -0
  92. package/dist/protocols/google-speech.d.ts +120 -0
  93. package/dist/protocols/google-speech.js +94 -0
  94. package/dist/protocols/google-transcription.d.ts +148 -0
  95. package/dist/protocols/google-transcription.js +129 -0
  96. package/dist/protocols/google-vertex-predict-embeddings.d.ts +18 -0
  97. package/dist/protocols/google-vertex-predict-embeddings.js +74 -0
  98. package/dist/protocols/index.d.ts +21 -0
  99. package/dist/protocols/index.js +21 -0
  100. package/dist/protocols/meta-images.d.ts +26 -0
  101. package/dist/protocols/meta-images.js +101 -0
  102. package/dist/protocols/meta-messages.d.ts +423 -0
  103. package/dist/protocols/meta-messages.js +63 -0
  104. package/dist/protocols/meta-responses.d.ts +533 -0
  105. package/dist/protocols/meta-responses.js +189 -0
  106. package/dist/protocols/minimax-images.d.ts +25 -0
  107. package/dist/protocols/minimax-images.js +150 -0
  108. package/dist/protocols/minimax-video.d.ts +45 -0
  109. package/dist/protocols/minimax-video.js +296 -0
  110. package/dist/protocols/mistral-chat.d.ts +565 -0
  111. package/dist/protocols/mistral-chat.js +606 -0
  112. package/dist/protocols/open-responses-channel.d.ts +25 -0
  113. package/dist/protocols/open-responses-channel.js +137 -0
  114. package/dist/protocols/open-responses-continuation.d.ts +18 -0
  115. package/dist/protocols/open-responses-continuation.js +172 -0
  116. package/dist/protocols/open-responses.d.ts +2509 -0
  117. package/dist/protocols/open-responses.js +1335 -0
  118. package/dist/protocols/openai-chat.d.ts +2571 -0
  119. package/dist/protocols/openai-chat.js +1140 -0
  120. package/dist/protocols/openai-compatible-chat.d.ts +184 -0
  121. package/dist/protocols/openai-compatible-chat.js +19 -0
  122. package/dist/protocols/openai-compatible-responses.d.ts +231 -0
  123. package/dist/protocols/openai-compatible-responses.js +18 -0
  124. package/dist/protocols/openai-decisions.d.ts +22 -0
  125. package/dist/protocols/openai-decisions.js +141 -0
  126. package/dist/protocols/openai-embeddings.d.ts +16 -0
  127. package/dist/protocols/openai-embeddings.js +76 -0
  128. package/dist/protocols/openai-freeform.d.ts +78 -0
  129. package/dist/protocols/openai-freeform.js +222 -0
  130. package/dist/protocols/openai-images.d.ts +148 -0
  131. package/dist/protocols/openai-images.js +303 -0
  132. package/dist/protocols/openai-responses.d.ts +1600 -0
  133. package/dist/protocols/openai-responses.js +360 -0
  134. package/dist/protocols/openai-speech.d.ts +110 -0
  135. package/dist/protocols/openai-speech.js +112 -0
  136. package/dist/protocols/openai-transcription.d.ts +185 -0
  137. package/dist/protocols/openai-transcription.js +206 -0
  138. package/dist/protocols/openrouter-video.d.ts +36 -0
  139. package/dist/protocols/openrouter-video.js +139 -0
  140. package/dist/protocols/seedance-video.d.ts +45 -0
  141. package/dist/protocols/seedance-video.js +217 -0
  142. package/dist/protocols/shared.d.ts +249 -0
  143. package/dist/protocols/shared.js +446 -0
  144. package/dist/protocols/system-one.d.ts +145 -0
  145. package/dist/protocols/system-one.js +272 -0
  146. package/dist/protocols/utils/bedrock-auth.d.ts +60 -0
  147. package/dist/protocols/utils/bedrock-auth.js +86 -0
  148. package/dist/protocols/utils/bedrock-cache.d.ts +19 -0
  149. package/dist/protocols/utils/bedrock-cache.js +49 -0
  150. package/dist/protocols/utils/bedrock-media.d.ts +53 -0
  151. package/dist/protocols/utils/bedrock-media.js +98 -0
  152. package/dist/protocols/utils/cache.d.ts +25 -0
  153. package/dist/protocols/utils/cache.js +33 -0
  154. package/dist/protocols/utils/claude-model.d.ts +8 -0
  155. package/dist/protocols/utils/claude-model.js +15 -0
  156. package/dist/protocols/utils/gateway-protocol.d.ts +17 -0
  157. package/dist/protocols/utils/gateway-protocol.js +59 -0
  158. package/dist/protocols/utils/gemini-generate-content.d.ts +75 -0
  159. package/dist/protocols/utils/gemini-generate-content.js +96 -0
  160. package/dist/protocols/utils/gemini-json-schema.d.ts +8 -0
  161. package/dist/protocols/utils/gemini-json-schema.js +76 -0
  162. package/dist/protocols/utils/image-sizing.d.ts +31 -0
  163. package/dist/protocols/utils/image-sizing.js +73 -0
  164. package/dist/protocols/utils/lifecycle.d.ts +24 -0
  165. package/dist/protocols/utils/lifecycle.js +62 -0
  166. package/dist/protocols/utils/media-input.d.ts +32 -0
  167. package/dist/protocols/utils/media-input.js +62 -0
  168. package/dist/protocols/utils/mistral-tool-id.d.ts +5 -0
  169. package/dist/protocols/utils/mistral-tool-id.js +31 -0
  170. package/dist/protocols/utils/open-responses-options.d.ts +54 -0
  171. package/dist/protocols/utils/open-responses-options.js +59 -0
  172. package/dist/protocols/utils/partial-json-options.d.ts +61 -0
  173. package/dist/protocols/utils/partial-json-options.js +51 -0
  174. package/dist/protocols/utils/partial-json.d.ts +8 -0
  175. package/dist/protocols/utils/partial-json.js +280 -0
  176. package/dist/protocols/utils/responses-checkpoint.d.ts +4 -0
  177. package/dist/protocols/utils/responses-checkpoint.js +103 -0
  178. package/dist/protocols/utils/responses-compaction.d.ts +6 -0
  179. package/dist/protocols/utils/responses-compaction.js +162 -0
  180. package/dist/protocols/utils/responses-hosted-tools.d.ts +122 -0
  181. package/dist/protocols/utils/responses-hosted-tools.js +63 -0
  182. package/dist/protocols/utils/speaker-turns.d.ts +3 -0
  183. package/dist/protocols/utils/speaker-turns.js +9 -0
  184. package/dist/protocols/utils/speech-stream.d.ts +49 -0
  185. package/dist/protocols/utils/speech-stream.js +64 -0
  186. package/dist/protocols/utils/tool-schema.d.ts +10 -0
  187. package/dist/protocols/utils/tool-schema.js +109 -0
  188. package/dist/protocols/utils/tool-stream.d.ts +478 -0
  189. package/dist/protocols/utils/tool-stream.js +153 -0
  190. package/dist/protocols/venice-chat.d.ts +340 -0
  191. package/dist/protocols/venice-chat.js +283 -0
  192. package/dist/protocols/xai-images.d.ts +25 -0
  193. package/dist/protocols/xai-images.js +87 -0
  194. package/dist/protocols/xai-responses.d.ts +294 -0
  195. package/dist/protocols/xai-responses.js +86 -0
  196. package/dist/protocols/xai-video.d.ts +35 -0
  197. package/dist/protocols/xai-video.js +159 -0
  198. package/dist/protocols/zai-chat.d.ts +296 -0
  199. package/dist/protocols/zai-chat.js +56 -0
  200. package/dist/protocols/zai-images.d.ts +20 -0
  201. package/dist/protocols/zai-images.js +79 -0
  202. package/dist/protocols/zai-messages.d.ts +409 -0
  203. package/dist/protocols/zai-messages.js +30 -0
  204. package/dist/protocols.d.ts +1 -0
  205. package/dist/protocols.js +1 -0
  206. package/dist/provider-error.d.ts +22 -0
  207. package/dist/provider-error.js +228 -0
  208. package/dist/provider-package.d.ts +17 -0
  209. package/dist/provider-package.js +1 -0
  210. package/dist/providers/alibaba/chat.d.ts +1 -0
  211. package/dist/providers/alibaba/chat.js +1 -0
  212. package/dist/providers/alibaba/embeddings.d.ts +2 -0
  213. package/dist/providers/alibaba/embeddings.js +1 -0
  214. package/dist/providers/alibaba/images.d.ts +2 -0
  215. package/dist/providers/alibaba/images.js +1 -0
  216. package/dist/providers/alibaba/messages.d.ts +3 -0
  217. package/dist/providers/alibaba/messages.js +1 -0
  218. package/dist/providers/alibaba/responses.d.ts +3 -0
  219. package/dist/providers/alibaba/responses.js +1 -0
  220. package/dist/providers/alibaba.d.ts +905 -0
  221. package/dist/providers/alibaba.js +119 -0
  222. package/dist/providers/amazon-bedrock/mantle/chat.d.ts +2 -0
  223. package/dist/providers/amazon-bedrock/mantle/chat.js +1 -0
  224. package/dist/providers/amazon-bedrock/mantle/messages.d.ts +2 -0
  225. package/dist/providers/amazon-bedrock/mantle/messages.js +1 -0
  226. package/dist/providers/amazon-bedrock/mantle/responses.d.ts +2 -0
  227. package/dist/providers/amazon-bedrock/mantle/responses.js +1 -0
  228. package/dist/providers/amazon-bedrock/mantle.d.ts +2 -0
  229. package/dist/providers/amazon-bedrock/mantle.js +1 -0
  230. package/dist/providers/amazon-bedrock-mantle.d.ts +789 -0
  231. package/dist/providers/amazon-bedrock-mantle.js +107 -0
  232. package/dist/providers/amazon-bedrock.d.ts +190 -0
  233. package/dist/providers/amazon-bedrock.js +44 -0
  234. package/dist/providers/anthropic-compatible.d.ts +364 -0
  235. package/dist/providers/anthropic-compatible.js +47 -0
  236. package/dist/providers/anthropic.d.ts +362 -0
  237. package/dist/providers/anthropic.js +36 -0
  238. package/dist/providers/assemblyai.d.ts +19 -0
  239. package/dist/providers/assemblyai.js +19 -0
  240. package/dist/providers/azure/chat.d.ts +2 -0
  241. package/dist/providers/azure/chat.js +1 -0
  242. package/dist/providers/azure/embeddings.d.ts +2 -0
  243. package/dist/providers/azure/embeddings.js +1 -0
  244. package/dist/providers/azure/images.d.ts +2 -0
  245. package/dist/providers/azure/images.js +1 -0
  246. package/dist/providers/azure/messages.d.ts +2 -0
  247. package/dist/providers/azure/messages.js +1 -0
  248. package/dist/providers/azure/responses.d.ts +2 -0
  249. package/dist/providers/azure/responses.js +1 -0
  250. package/dist/providers/azure.d.ts +1074 -0
  251. package/dist/providers/azure.js +150 -0
  252. package/dist/providers/baseten/decisions.d.ts +2 -0
  253. package/dist/providers/baseten/decisions.js +1 -0
  254. package/dist/providers/baseten.d.ts +384 -0
  255. package/dist/providers/baseten.js +56 -0
  256. package/dist/providers/byteplus/videos.d.ts +2 -0
  257. package/dist/providers/byteplus/videos.js +1 -0
  258. package/dist/providers/byteplus.d.ts +24 -0
  259. package/dist/providers/byteplus.js +21 -0
  260. package/dist/providers/cartesia.d.ts +18 -0
  261. package/dist/providers/cartesia.js +17 -0
  262. package/dist/providers/cerebras.d.ts +375 -0
  263. package/dist/providers/cerebras.js +33 -0
  264. package/dist/providers/cloudflare-ai-gateway/decisions.d.ts +2 -0
  265. package/dist/providers/cloudflare-ai-gateway/decisions.js +1 -0
  266. package/dist/providers/cloudflare-ai-gateway.d.ts +1581 -0
  267. package/dist/providers/cloudflare-ai-gateway.js +120 -0
  268. package/dist/providers/cloudflare-shared.d.ts +9 -0
  269. package/dist/providers/cloudflare-shared.js +25 -0
  270. package/dist/providers/cloudflare-workers-ai/decisions.d.ts +2 -0
  271. package/dist/providers/cloudflare-workers-ai/decisions.js +1 -0
  272. package/dist/providers/cloudflare-workers-ai/images.d.ts +2 -0
  273. package/dist/providers/cloudflare-workers-ai/images.js +1 -0
  274. package/dist/providers/cloudflare-workers-ai.d.ts +391 -0
  275. package/dist/providers/cloudflare-workers-ai.js +69 -0
  276. package/dist/providers/cohere/chat.d.ts +4 -0
  277. package/dist/providers/cohere/chat.js +3 -0
  278. package/dist/providers/cohere/embeddings.d.ts +2 -0
  279. package/dist/providers/cohere/embeddings.js +1 -0
  280. package/dist/providers/cohere.d.ts +502 -0
  281. package/dist/providers/cohere.js +55 -0
  282. package/dist/providers/deepgram.d.ts +22 -0
  283. package/dist/providers/deepgram.js +20 -0
  284. package/dist/providers/deepinfra/embeddings.d.ts +2 -0
  285. package/dist/providers/deepinfra/embeddings.js +1 -0
  286. package/dist/providers/deepinfra.d.ts +378 -0
  287. package/dist/providers/deepinfra.js +52 -0
  288. package/dist/providers/deepseek.d.ts +376 -0
  289. package/dist/providers/deepseek.js +30 -0
  290. package/dist/providers/digitalocean/decisions.d.ts +2 -0
  291. package/dist/providers/digitalocean/decisions.js +1 -0
  292. package/dist/providers/digitalocean/embeddings.d.ts +2 -0
  293. package/dist/providers/digitalocean/embeddings.js +1 -0
  294. package/dist/providers/digitalocean/images.d.ts +2 -0
  295. package/dist/providers/digitalocean/images.js +1 -0
  296. package/dist/providers/digitalocean/responses.d.ts +4 -0
  297. package/dist/providers/digitalocean/responses.js +1 -0
  298. package/dist/providers/digitalocean.d.ts +874 -0
  299. package/dist/providers/digitalocean.js +106 -0
  300. package/dist/providers/elevenlabs.d.ts +22 -0
  301. package/dist/providers/elevenlabs.js +22 -0
  302. package/dist/providers/fireworks/embeddings.d.ts +2 -0
  303. package/dist/providers/fireworks/embeddings.js +1 -0
  304. package/dist/providers/fireworks.d.ts +379 -0
  305. package/dist/providers/fireworks.js +40 -0
  306. package/dist/providers/google/decisions.d.ts +2 -0
  307. package/dist/providers/google/decisions.js +1 -0
  308. package/dist/providers/google/embeddings.d.ts +2 -0
  309. package/dist/providers/google/embeddings.js +1 -0
  310. package/dist/providers/google/images.d.ts +2 -0
  311. package/dist/providers/google/images.js +1 -0
  312. package/dist/providers/google/interactions.d.ts +7 -0
  313. package/dist/providers/google/interactions.js +3 -0
  314. package/dist/providers/google/videos.d.ts +2 -0
  315. package/dist/providers/google/videos.js +1 -0
  316. package/dist/providers/google-vertex/chat.d.ts +2 -0
  317. package/dist/providers/google-vertex/chat.js +1 -0
  318. package/dist/providers/google-vertex/embeddings.d.ts +2 -0
  319. package/dist/providers/google-vertex/embeddings.js +1 -0
  320. package/dist/providers/google-vertex/gemini.d.ts +2 -0
  321. package/dist/providers/google-vertex/gemini.js +1 -0
  322. package/dist/providers/google-vertex/images.d.ts +2 -0
  323. package/dist/providers/google-vertex/images.js +1 -0
  324. package/dist/providers/google-vertex/interactions.d.ts +2 -0
  325. package/dist/providers/google-vertex/interactions.js +1 -0
  326. package/dist/providers/google-vertex/messages.d.ts +2 -0
  327. package/dist/providers/google-vertex/messages.js +1 -0
  328. package/dist/providers/google-vertex/mistral.d.ts +2 -0
  329. package/dist/providers/google-vertex/mistral.js +1 -0
  330. package/dist/providers/google-vertex/responses.d.ts +2 -0
  331. package/dist/providers/google-vertex/responses.js +1 -0
  332. package/dist/providers/google-vertex-chat.d.ts +204 -0
  333. package/dist/providers/google-vertex-chat.js +29 -0
  334. package/dist/providers/google-vertex-interactions.d.ts +111 -0
  335. package/dist/providers/google-vertex-interactions.js +62 -0
  336. package/dist/providers/google-vertex-messages.d.ts +362 -0
  337. package/dist/providers/google-vertex-messages.js +51 -0
  338. package/dist/providers/google-vertex-mistral.d.ts +120 -0
  339. package/dist/providers/google-vertex-mistral.js +43 -0
  340. package/dist/providers/google-vertex-responses.d.ts +253 -0
  341. package/dist/providers/google-vertex-responses.js +30 -0
  342. package/dist/providers/google-vertex-shared.d.ts +58 -0
  343. package/dist/providers/google-vertex-shared.js +128 -0
  344. package/dist/providers/google-vertex.d.ts +132 -0
  345. package/dist/providers/google-vertex.js +161 -0
  346. package/dist/providers/google.d.ts +246 -0
  347. package/dist/providers/google.js +80 -0
  348. package/dist/providers/groq.d.ts +470 -0
  349. package/dist/providers/groq.js +63 -0
  350. package/dist/providers/index.d.ts +45 -0
  351. package/dist/providers/index.js +45 -0
  352. package/dist/providers/meta/chat.d.ts +2 -0
  353. package/dist/providers/meta/chat.js +1 -0
  354. package/dist/providers/meta/images.d.ts +2 -0
  355. package/dist/providers/meta/images.js +1 -0
  356. package/dist/providers/meta/messages.d.ts +2 -0
  357. package/dist/providers/meta/messages.js +1 -0
  358. package/dist/providers/meta/responses.d.ts +2 -0
  359. package/dist/providers/meta/responses.js +1 -0
  360. package/dist/providers/meta.d.ts +804 -0
  361. package/dist/providers/meta.js +96 -0
  362. package/dist/providers/minimax/chat.d.ts +4 -0
  363. package/dist/providers/minimax/chat.js +3 -0
  364. package/dist/providers/minimax/images.d.ts +3 -0
  365. package/dist/providers/minimax/images.js +1 -0
  366. package/dist/providers/minimax/messages.d.ts +1 -0
  367. package/dist/providers/minimax/messages.js +1 -0
  368. package/dist/providers/minimax/responses.d.ts +4 -0
  369. package/dist/providers/minimax/responses.js +3 -0
  370. package/dist/providers/minimax/videos.d.ts +3 -0
  371. package/dist/providers/minimax/videos.js +1 -0
  372. package/dist/providers/minimax.d.ts +798 -0
  373. package/dist/providers/minimax.js +99 -0
  374. package/dist/providers/mistral.d.ts +208 -0
  375. package/dist/providers/mistral.js +17 -0
  376. package/dist/providers/moonshot/chat.d.ts +1 -0
  377. package/dist/providers/moonshot/chat.js +1 -0
  378. package/dist/providers/moonshot/messages.d.ts +4 -0
  379. package/dist/providers/moonshot/messages.js +3 -0
  380. package/dist/providers/moonshot/responses.d.ts +4 -0
  381. package/dist/providers/moonshot/responses.js +3 -0
  382. package/dist/providers/moonshot.d.ts +785 -0
  383. package/dist/providers/moonshot.js +78 -0
  384. package/dist/providers/open-responses-options.d.ts +5 -0
  385. package/dist/providers/open-responses-options.js +1 -0
  386. package/dist/providers/openai/chat.d.ts +2 -0
  387. package/dist/providers/openai/chat.js +1 -0
  388. package/dist/providers/openai/embeddings.d.ts +2 -0
  389. package/dist/providers/openai/embeddings.js +1 -0
  390. package/dist/providers/openai/images.d.ts +2 -0
  391. package/dist/providers/openai/images.js +1 -0
  392. package/dist/providers/openai/responses.d.ts +2 -0
  393. package/dist/providers/openai/responses.js +1 -0
  394. package/dist/providers/openai-compatible/decisions.d.ts +2 -0
  395. package/dist/providers/openai-compatible/decisions.js +1 -0
  396. package/dist/providers/openai-compatible/embeddings.d.ts +2 -0
  397. package/dist/providers/openai-compatible/embeddings.js +1 -0
  398. package/dist/providers/openai-compatible/images.d.ts +2 -0
  399. package/dist/providers/openai-compatible/images.js +1 -0
  400. package/dist/providers/openai-compatible/responses.d.ts +1 -0
  401. package/dist/providers/openai-compatible/responses.js +1 -0
  402. package/dist/providers/openai-compatible-responses.d.ts +250 -0
  403. package/dist/providers/openai-compatible-responses.js +26 -0
  404. package/dist/providers/openai-compatible.d.ts +208 -0
  405. package/dist/providers/openai-compatible.js +71 -0
  406. package/dist/providers/openai-options.d.ts +21 -0
  407. package/dist/providers/openai-options.js +37 -0
  408. package/dist/providers/openai.d.ts +522 -0
  409. package/dist/providers/openai.js +118 -0
  410. package/dist/providers/opencode/decisions.d.ts +2 -0
  411. package/dist/providers/opencode/decisions.js +1 -0
  412. package/dist/providers/opencode.d.ts +23 -0
  413. package/dist/providers/opencode.js +25 -0
  414. package/dist/providers/openrouter/decisions.d.ts +2 -0
  415. package/dist/providers/openrouter/decisions.js +1 -0
  416. package/dist/providers/openrouter/embeddings.d.ts +2 -0
  417. package/dist/providers/openrouter/embeddings.js +1 -0
  418. package/dist/providers/openrouter/images.d.ts +2 -0
  419. package/dist/providers/openrouter/images.js +1 -0
  420. package/dist/providers/openrouter/responses.d.ts +3 -0
  421. package/dist/providers/openrouter/responses.js +1 -0
  422. package/dist/providers/openrouter/videos.d.ts +2 -0
  423. package/dist/providers/openrouter/videos.js +1 -0
  424. package/dist/providers/openrouter.d.ts +1204 -0
  425. package/dist/providers/openrouter.js +210 -0
  426. package/dist/providers/settings.d.ts +40 -0
  427. package/dist/providers/settings.js +18 -0
  428. package/dist/providers/togetherai.d.ts +375 -0
  429. package/dist/providers/togetherai.js +30 -0
  430. package/dist/providers/typesafe-ai/decisions.d.ts +2 -0
  431. package/dist/providers/typesafe-ai/decisions.js +1 -0
  432. package/dist/providers/typesafe-ai.d.ts +23 -0
  433. package/dist/providers/typesafe-ai.js +25 -0
  434. package/dist/providers/venice/responses.d.ts +4 -0
  435. package/dist/providers/venice/responses.js +1 -0
  436. package/dist/providers/venice.d.ts +632 -0
  437. package/dist/providers/venice.js +57 -0
  438. package/dist/providers/vercel-ai-gateway/chat.d.ts +2 -0
  439. package/dist/providers/vercel-ai-gateway/chat.js +1 -0
  440. package/dist/providers/vercel-ai-gateway/decisions.d.ts +2 -0
  441. package/dist/providers/vercel-ai-gateway/decisions.js +1 -0
  442. package/dist/providers/vercel-ai-gateway/embeddings.d.ts +2 -0
  443. package/dist/providers/vercel-ai-gateway/embeddings.js +1 -0
  444. package/dist/providers/vercel-ai-gateway/images.d.ts +2 -0
  445. package/dist/providers/vercel-ai-gateway/images.js +1 -0
  446. package/dist/providers/vercel-ai-gateway/messages.d.ts +2 -0
  447. package/dist/providers/vercel-ai-gateway/messages.js +1 -0
  448. package/dist/providers/vercel-ai-gateway/responses.d.ts +2 -0
  449. package/dist/providers/vercel-ai-gateway/responses.js +1 -0
  450. package/dist/providers/vercel-ai-gateway.d.ts +111 -0
  451. package/dist/providers/vercel-ai-gateway.js +181 -0
  452. package/dist/providers/volcengine/videos.d.ts +2 -0
  453. package/dist/providers/volcengine/videos.js +1 -0
  454. package/dist/providers/volcengine.d.ts +24 -0
  455. package/dist/providers/volcengine.js +21 -0
  456. package/dist/providers/xai/images.d.ts +2 -0
  457. package/dist/providers/xai/images.js +1 -0
  458. package/dist/providers/xai/videos.d.ts +2 -0
  459. package/dist/providers/xai/videos.js +1 -0
  460. package/dist/providers/xai.d.ts +235 -0
  461. package/dist/providers/xai.js +89 -0
  462. package/dist/providers/zai/chat.d.ts +1 -0
  463. package/dist/providers/zai/chat.js +1 -0
  464. package/dist/providers/zai/images.d.ts +2 -0
  465. package/dist/providers/zai/images.js +1 -0
  466. package/dist/providers/zai-coding-plan/chat.d.ts +1 -0
  467. package/dist/providers/zai-coding-plan/chat.js +1 -0
  468. package/dist/providers/zai-coding-plan/messages.d.ts +4 -0
  469. package/dist/providers/zai-coding-plan/messages.js +3 -0
  470. package/dist/providers/zai-coding-plan/responses.d.ts +4 -0
  471. package/dist/providers/zai-coding-plan/responses.js +3 -0
  472. package/dist/providers/zai-coding-plan.d.ts +846 -0
  473. package/dist/providers/zai-coding-plan.js +56 -0
  474. package/dist/providers/zai.d.ts +285 -0
  475. package/dist/providers/zai.js +44 -0
  476. package/dist/providers.d.ts +1 -0
  477. package/dist/providers.js +1 -0
  478. package/dist/public.d.ts +18 -0
  479. package/dist/public.js +7 -0
  480. package/dist/route/auth-options.d.ts +35 -0
  481. package/dist/route/auth-options.js +17 -0
  482. package/dist/route/auth.d.ts +52 -0
  483. package/dist/route/auth.js +92 -0
  484. package/dist/route/client.d.ts +229 -0
  485. package/dist/route/client.js +293 -0
  486. package/dist/route/decision.d.ts +55 -0
  487. package/dist/route/decision.js +73 -0
  488. package/dist/route/embedding.d.ts +58 -0
  489. package/dist/route/embedding.js +85 -0
  490. package/dist/route/endpoint.d.ts +29 -0
  491. package/dist/route/endpoint.js +21 -0
  492. package/dist/route/executor-service.d.ts +54 -0
  493. package/dist/route/executor-service.js +115 -0
  494. package/dist/route/executor.d.ts +37 -0
  495. package/dist/route/executor.js +225 -0
  496. package/dist/route/framing.d.ts +44 -0
  497. package/dist/route/framing.js +63 -0
  498. package/dist/route/index.d.ts +21 -0
  499. package/dist/route/index.js +18 -0
  500. package/dist/route/media-protocol.d.ts +187 -0
  501. package/dist/route/media-protocol.js +117 -0
  502. package/dist/route/media.d.ts +91 -0
  503. package/dist/route/media.js +251 -0
  504. package/dist/route/protocol.d.ts +85 -0
  505. package/dist/route/protocol.js +19 -0
  506. package/dist/route/transport/http.d.ts +34 -0
  507. package/dist/route/transport/http.js +67 -0
  508. package/dist/route/transport/index.d.ts +42 -0
  509. package/dist/route/transport/index.js +4 -0
  510. package/dist/route/transport/websocket-channel.d.ts +56 -0
  511. package/dist/route/transport/websocket-channel.js +1 -0
  512. package/dist/route/transport/websocket.d.ts +32 -0
  513. package/dist/route/transport/websocket.js +315 -0
  514. package/dist/route.d.ts +1 -0
  515. package/dist/route.js +1 -0
  516. package/dist/schema/errors.d.ts +194 -0
  517. package/dist/schema/errors.js +217 -0
  518. package/dist/schema/events.d.ts +11001 -0
  519. package/dist/schema/events.js +542 -0
  520. package/dist/schema/ids.d.ts +17 -0
  521. package/dist/schema/ids.js +10 -0
  522. package/dist/schema/index.d.ts +5 -0
  523. package/dist/schema/index.js +5 -0
  524. package/dist/schema/messages.d.ts +2706 -0
  525. package/dist/schema/messages.js +344 -0
  526. package/dist/schema/options.d.ts +270 -0
  527. package/dist/schema/options.js +198 -0
  528. package/dist/speech.d.ts +266 -0
  529. package/dist/speech.js +114 -0
  530. package/dist/test-ai.d.ts +15 -0
  531. package/dist/test-ai.js +49 -0
  532. package/dist/testing.d.ts +1585 -0
  533. package/dist/testing.js +108 -0
  534. package/dist/tool-history.d.ts +2 -0
  535. package/dist/tool-history.js +91 -0
  536. package/dist/tool-runtime.d.ts +22 -0
  537. package/dist/tool-runtime.js +55 -0
  538. package/dist/tool-updates.d.ts +34 -0
  539. package/dist/tool-updates.js +93 -0
  540. package/dist/tool.d.ts +150 -0
  541. package/dist/tool.js +159 -0
  542. package/dist/transcription.d.ts +254 -0
  543. package/dist/transcription.js +119 -0
  544. package/dist/utils/bytes.d.ts +1 -0
  545. package/dist/utils/bytes.js +10 -0
  546. package/dist/utils/json.d.ts +4 -0
  547. package/dist/utils/json.js +4 -0
  548. package/dist/utils/media-type.d.ts +8 -0
  549. package/dist/utils/media-type.js +93 -0
  550. package/dist/utils/provider-codes.d.ts +3 -0
  551. package/dist/utils/provider-codes.js +41 -0
  552. package/dist/utils/record.d.ts +2 -0
  553. package/dist/utils/record.js +2 -0
  554. package/dist/utils/sanitize.d.ts +5 -0
  555. package/dist/utils/sanitize.js +31 -0
  556. package/dist/video-client.d.ts +12 -0
  557. package/dist/video-client.js +24 -0
  558. package/dist/video.d.ts +178 -0
  559. package/dist/video.js +79 -0
  560. package/package.json +648 -4
@@ -0,0 +1,905 @@
1
+ import type { ProviderPackage } from "../provider-package.js";
2
+ import { AlibabaChat } from "../protocols/alibaba-chat.js";
3
+ import { AlibabaMessages } from "../protocols/alibaba-messages.js";
4
+ import { AlibabaResponses } from "../protocols/alibaba-responses.js";
5
+ import { type AtLeastOne, type ProviderAuthOption } from "../route/auth-options.js";
6
+ import { Route } from "../route/client.js";
7
+ import { ToolDefinition, type ModelID, type ProviderOptions, type RequestOptions } from "../schema/index.js";
8
+ export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
9
+ export type Region = "ap-southeast-1" | "cn-beijing" | "cn-hongkong" | "us-east-1" | "eu-central-1" | "ap-northeast-1" | (string & {});
10
+ export type ChatOptionsInput = AlibabaChat.OptionsInput;
11
+ export type MessagesOptionsInput = AlibabaMessages.OptionsInput;
12
+ export type ResponsesOptionsInput = AlibabaResponses.OptionsInput;
13
+ export type { AlibabaImageOptions } from "../protocols/alibaba-images.js";
14
+ type Location = AtLeastOne<{
15
+ readonly region: Region;
16
+ /** Overrides the selected API's complete base URL, including its version prefix. */
17
+ readonly baseURL: string;
18
+ }> & {
19
+ readonly workspaceID?: string;
20
+ };
21
+ export type Config = Location & Omit<RequestOptions, "providerOptions"> & ProviderAuthOption<"optional"> & {
22
+ readonly providerOptions?: ChatOptionsInput | MessagesOptionsInput | ResponsesOptionsInput;
23
+ };
24
+ export type Settings<Options = ChatOptionsInput> = Location & ProviderPackage.Settings & Options & {
25
+ readonly apiKey?: string | false;
26
+ };
27
+ export declare const routes: (Route<{
28
+ readonly model: string;
29
+ readonly messages: readonly ({
30
+ readonly role: "system";
31
+ readonly content: string | readonly ({
32
+ readonly type: "image_url";
33
+ readonly image_url: {
34
+ readonly url: string;
35
+ };
36
+ } | {
37
+ readonly type: "video_url";
38
+ readonly video_url: {
39
+ readonly url: string;
40
+ };
41
+ } | {
42
+ readonly type: "file";
43
+ readonly file: {
44
+ readonly filename: string;
45
+ readonly file_data: string;
46
+ };
47
+ } | {
48
+ readonly type: "text";
49
+ readonly text: string;
50
+ readonly cache_control?: {
51
+ readonly type: "ephemeral";
52
+ readonly ttl?: string | undefined;
53
+ } | undefined;
54
+ })[];
55
+ } | {
56
+ readonly role: "user";
57
+ readonly content: string | readonly ({
58
+ readonly type: "image_url";
59
+ readonly image_url: {
60
+ readonly url: string;
61
+ };
62
+ } | {
63
+ readonly type: "video_url";
64
+ readonly video_url: {
65
+ readonly url: string;
66
+ };
67
+ } | {
68
+ readonly type: "file";
69
+ readonly file: {
70
+ readonly filename: string;
71
+ readonly file_data: string;
72
+ };
73
+ } | {
74
+ readonly type: "text";
75
+ readonly text: string;
76
+ readonly cache_control?: {
77
+ readonly type: "ephemeral";
78
+ readonly ttl?: string | undefined;
79
+ } | undefined;
80
+ })[];
81
+ } | {
82
+ readonly role: "tool";
83
+ readonly tool_call_id: string;
84
+ readonly content: string | readonly {
85
+ readonly type: "text";
86
+ readonly text: string;
87
+ readonly cache_control?: {
88
+ readonly type: "ephemeral";
89
+ readonly ttl?: string | undefined;
90
+ } | undefined;
91
+ }[];
92
+ } | {
93
+ readonly [x: string]: unknown;
94
+ readonly role: "assistant";
95
+ readonly content: string | readonly {
96
+ readonly type: "text";
97
+ readonly text: string;
98
+ readonly cache_control?: {
99
+ readonly type: "ephemeral";
100
+ readonly ttl?: string | undefined;
101
+ } | undefined;
102
+ }[] | null;
103
+ readonly tool_calls?: readonly ({
104
+ readonly id: string;
105
+ readonly type: "custom";
106
+ readonly custom: {
107
+ readonly name: string;
108
+ readonly input: string;
109
+ };
110
+ } | {
111
+ readonly id: string;
112
+ readonly type: "function";
113
+ readonly function: {
114
+ readonly name: string;
115
+ readonly arguments: string;
116
+ };
117
+ readonly extra_content?: {
118
+ readonly google: {
119
+ readonly thought_signature: string;
120
+ };
121
+ } | undefined;
122
+ })[] | undefined;
123
+ readonly reasoning_content?: string | undefined;
124
+ readonly reasoning?: string | undefined;
125
+ readonly reasoning_text?: string | undefined;
126
+ readonly reasoning_details?: unknown;
127
+ readonly reasoning_opaque?: string | undefined;
128
+ })[];
129
+ readonly tools?: readonly ({
130
+ readonly type: "function";
131
+ readonly function: {
132
+ readonly name: string;
133
+ readonly description: string;
134
+ readonly parameters: {
135
+ readonly [x: string]: unknown;
136
+ };
137
+ readonly strict?: boolean | undefined;
138
+ };
139
+ readonly cache_control?: {
140
+ readonly type: "ephemeral";
141
+ readonly ttl?: string | undefined;
142
+ } | undefined;
143
+ } | {
144
+ readonly type: "custom";
145
+ readonly custom: {
146
+ readonly name: string;
147
+ readonly description: string;
148
+ readonly format: {
149
+ readonly type: "text";
150
+ } | {
151
+ readonly type: "grammar";
152
+ readonly grammar: {
153
+ readonly syntax: "lark" | "regex";
154
+ readonly definition: string;
155
+ };
156
+ };
157
+ };
158
+ readonly cache_control?: {
159
+ readonly type: "ephemeral";
160
+ readonly ttl?: string | undefined;
161
+ } | undefined;
162
+ })[] | undefined;
163
+ readonly tool_choice?: "auto" | "none" | "required" | {
164
+ readonly type: "function";
165
+ readonly function: {
166
+ readonly name: string;
167
+ };
168
+ } | {
169
+ readonly type: "custom";
170
+ readonly custom: {
171
+ readonly name: string;
172
+ };
173
+ } | undefined;
174
+ readonly stream: true;
175
+ readonly stream_options?: {
176
+ readonly include_usage: boolean;
177
+ } | undefined;
178
+ readonly store?: boolean | undefined;
179
+ readonly prompt_cache_key?: string | undefined;
180
+ readonly prompt_cache_retention?: string | undefined;
181
+ readonly prompt_cache_options?: {
182
+ readonly ttl?: string | undefined;
183
+ } | undefined;
184
+ readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
185
+ readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
186
+ readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
187
+ readonly metadata?: {
188
+ readonly [x: string]: string;
189
+ } | undefined;
190
+ readonly safety_identifier?: string | undefined;
191
+ readonly tool_stream?: boolean | undefined;
192
+ readonly max_completion_tokens?: number | undefined;
193
+ readonly max_tokens?: number | undefined;
194
+ readonly temperature?: number | undefined;
195
+ readonly top_p?: number | undefined;
196
+ readonly frequency_penalty?: number | undefined;
197
+ readonly presence_penalty?: number | undefined;
198
+ readonly seed?: number | undefined;
199
+ readonly stop?: readonly string[] | undefined;
200
+ readonly enable_thinking?: boolean | undefined;
201
+ readonly thinking_budget?: number | undefined;
202
+ readonly preserve_thinking?: boolean | undefined;
203
+ readonly clear_thinking?: boolean | undefined;
204
+ readonly thinking?: {
205
+ readonly type: import("../schema/options.js").OpenString<"adaptive" | "disabled">;
206
+ } | undefined;
207
+ readonly parallel_tool_calls?: boolean | undefined;
208
+ readonly repetition_penalty?: number | undefined;
209
+ readonly top_k?: number | undefined;
210
+ readonly response_format?: {
211
+ readonly type: import("../schema/options.js").OpenString<"json_object" | "json_schema" | "text">;
212
+ readonly json_schema?: {
213
+ readonly [x: string]: unknown;
214
+ } | undefined;
215
+ } | undefined;
216
+ readonly enable_search?: boolean | undefined;
217
+ readonly search_options?: {
218
+ readonly forced_search?: boolean | undefined;
219
+ readonly search_strategy?: import("../schema/options.js").OpenString<"agent" | "agent_max" | "max" | "turbo"> | undefined;
220
+ readonly enable_search_extension?: boolean | undefined;
221
+ } | undefined;
222
+ }, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | Route<{
223
+ readonly context_management?: {
224
+ readonly edits: readonly {
225
+ readonly type: "compact_20260112";
226
+ readonly trigger?: {
227
+ readonly type: "input_tokens";
228
+ readonly value: number;
229
+ } | undefined;
230
+ readonly pause_after_compaction?: boolean | undefined;
231
+ readonly instructions?: string | undefined;
232
+ }[];
233
+ } | undefined;
234
+ readonly model: string;
235
+ readonly system?: readonly {
236
+ readonly type: "text";
237
+ readonly text: string;
238
+ readonly cache_control?: {
239
+ readonly type: "ephemeral";
240
+ readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
241
+ } | undefined;
242
+ }[] | undefined;
243
+ readonly messages: readonly ({
244
+ readonly role: "user";
245
+ readonly content: readonly ({
246
+ readonly type: "text";
247
+ readonly text: string;
248
+ readonly cache_control?: {
249
+ readonly type: "ephemeral";
250
+ readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
251
+ } | undefined;
252
+ } | {
253
+ readonly type: "image";
254
+ readonly source: {
255
+ readonly type: "base64";
256
+ readonly media_type: string;
257
+ readonly data: string;
258
+ } | {
259
+ readonly type: "url";
260
+ readonly url: string;
261
+ } | {
262
+ readonly type: "file";
263
+ readonly file_id: string;
264
+ };
265
+ readonly cache_control?: {
266
+ readonly type: "ephemeral";
267
+ readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
268
+ } | undefined;
269
+ readonly transformations?: {
270
+ readonly oversized_image?: "downsize" | "error" | undefined;
271
+ } | undefined;
272
+ } | {
273
+ readonly type: "video";
274
+ readonly source: {
275
+ readonly type: "base64";
276
+ readonly media_type: string;
277
+ readonly data: string;
278
+ } | {
279
+ readonly type: "url";
280
+ readonly url: string;
281
+ } | {
282
+ readonly type: "file";
283
+ readonly file_id: string;
284
+ };
285
+ readonly cache_control?: {
286
+ readonly type: "ephemeral";
287
+ readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
288
+ } | undefined;
289
+ } | {
290
+ readonly type: "document";
291
+ readonly source: {
292
+ readonly type: "base64";
293
+ readonly media_type: "application/pdf";
294
+ readonly data: string;
295
+ } | {
296
+ readonly type: "text";
297
+ readonly media_type: "text/plain";
298
+ readonly data: string;
299
+ } | {
300
+ readonly type: "url";
301
+ readonly url: string;
302
+ } | {
303
+ readonly type: "file";
304
+ readonly file_id: string;
305
+ };
306
+ readonly cache_control?: {
307
+ readonly type: "ephemeral";
308
+ readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
309
+ } | undefined;
310
+ readonly title?: string | undefined;
311
+ readonly context?: string | undefined;
312
+ readonly citations?: {
313
+ readonly enabled: boolean;
314
+ } | undefined;
315
+ } | {
316
+ readonly type: "tool_result";
317
+ readonly tool_use_id: string;
318
+ readonly content: string | readonly ({
319
+ readonly type: "text";
320
+ readonly text: string;
321
+ readonly cache_control?: {
322
+ readonly type: "ephemeral";
323
+ readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
324
+ } | undefined;
325
+ } | {
326
+ readonly type: "image";
327
+ readonly source: {
328
+ readonly type: "base64";
329
+ readonly media_type: string;
330
+ readonly data: string;
331
+ } | {
332
+ readonly type: "url";
333
+ readonly url: string;
334
+ } | {
335
+ readonly type: "file";
336
+ readonly file_id: string;
337
+ };
338
+ readonly cache_control?: {
339
+ readonly type: "ephemeral";
340
+ readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
341
+ } | undefined;
342
+ readonly transformations?: {
343
+ readonly oversized_image?: "downsize" | "error" | undefined;
344
+ } | undefined;
345
+ } | {
346
+ readonly type: "video";
347
+ readonly source: {
348
+ readonly type: "base64";
349
+ readonly media_type: string;
350
+ readonly data: string;
351
+ } | {
352
+ readonly type: "url";
353
+ readonly url: string;
354
+ } | {
355
+ readonly type: "file";
356
+ readonly file_id: string;
357
+ };
358
+ readonly cache_control?: {
359
+ readonly type: "ephemeral";
360
+ readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
361
+ } | undefined;
362
+ } | {
363
+ readonly type: "document";
364
+ readonly source: {
365
+ readonly type: "base64";
366
+ readonly media_type: "application/pdf";
367
+ readonly data: string;
368
+ } | {
369
+ readonly type: "text";
370
+ readonly media_type: "text/plain";
371
+ readonly data: string;
372
+ } | {
373
+ readonly type: "url";
374
+ readonly url: string;
375
+ } | {
376
+ readonly type: "file";
377
+ readonly file_id: string;
378
+ };
379
+ readonly cache_control?: {
380
+ readonly type: "ephemeral";
381
+ readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
382
+ } | undefined;
383
+ readonly title?: string | undefined;
384
+ readonly context?: string | undefined;
385
+ readonly citations?: {
386
+ readonly enabled: boolean;
387
+ } | undefined;
388
+ })[];
389
+ readonly is_error?: boolean | undefined;
390
+ readonly cache_control?: {
391
+ readonly type: "ephemeral";
392
+ readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
393
+ } | undefined;
394
+ })[];
395
+ } | {
396
+ readonly role: "assistant";
397
+ readonly content: readonly ({
398
+ readonly type: "compaction";
399
+ readonly content: string | null;
400
+ } | {
401
+ readonly type: "text";
402
+ readonly text: string;
403
+ readonly cache_control?: {
404
+ readonly type: "ephemeral";
405
+ readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
406
+ } | undefined;
407
+ } | {
408
+ readonly type: "thinking";
409
+ readonly thinking: string;
410
+ readonly signature: string;
411
+ readonly cache_control?: {
412
+ readonly type: "ephemeral";
413
+ readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
414
+ } | undefined;
415
+ } | {
416
+ readonly type: "redacted_thinking";
417
+ readonly data: string;
418
+ readonly cache_control?: {
419
+ readonly type: "ephemeral";
420
+ readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
421
+ } | undefined;
422
+ } | {
423
+ readonly type: "tool_use";
424
+ readonly id: string;
425
+ readonly name: string;
426
+ readonly input: unknown;
427
+ readonly cache_control?: {
428
+ readonly type: "ephemeral";
429
+ readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
430
+ } | undefined;
431
+ } | {
432
+ readonly type: "server_tool_use";
433
+ readonly id: string;
434
+ readonly name: string;
435
+ readonly input: unknown;
436
+ readonly cache_control?: {
437
+ readonly type: "ephemeral";
438
+ readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
439
+ } | undefined;
440
+ } | {
441
+ readonly type: "code_execution_tool_result" | "web_fetch_tool_result" | "web_search_tool_result";
442
+ readonly tool_use_id: string;
443
+ readonly content: unknown;
444
+ readonly cache_control?: {
445
+ readonly type: "ephemeral";
446
+ readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
447
+ } | undefined;
448
+ })[];
449
+ } | {
450
+ readonly role: "system";
451
+ readonly content: readonly ({
452
+ readonly type: "tool_addition";
453
+ readonly tool: {
454
+ readonly type: "tool_definition";
455
+ readonly definition: {
456
+ readonly name: string;
457
+ readonly description: string;
458
+ readonly input_schema: {
459
+ readonly [x: string]: unknown;
460
+ };
461
+ readonly cache_control?: {
462
+ readonly type: "ephemeral";
463
+ readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
464
+ } | undefined;
465
+ };
466
+ };
467
+ } | {
468
+ readonly type: "tool_removal";
469
+ readonly tool: {
470
+ readonly type: "tool_reference";
471
+ readonly name: string;
472
+ };
473
+ } | {
474
+ readonly type: "text";
475
+ readonly text: string;
476
+ readonly cache_control?: {
477
+ readonly type: "ephemeral";
478
+ readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
479
+ } | undefined;
480
+ })[];
481
+ readonly output_config?: {
482
+ readonly effort: string;
483
+ } | undefined;
484
+ })[];
485
+ readonly tools?: readonly {
486
+ readonly name: string;
487
+ readonly description: string;
488
+ readonly input_schema: {
489
+ readonly [x: string]: unknown;
490
+ };
491
+ readonly cache_control?: {
492
+ readonly type: "ephemeral";
493
+ readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
494
+ } | undefined;
495
+ }[] | undefined;
496
+ readonly tool_choice?: {
497
+ readonly type: "any" | "auto" | "none";
498
+ readonly disable_parallel_tool_use?: boolean | undefined;
499
+ } | {
500
+ readonly type: "tool";
501
+ readonly name: string;
502
+ readonly disable_parallel_tool_use?: boolean | undefined;
503
+ } | undefined;
504
+ readonly stream: true;
505
+ readonly max_tokens: number;
506
+ readonly temperature?: number | undefined;
507
+ readonly top_p?: number | undefined;
508
+ readonly top_k?: number | undefined;
509
+ readonly stop_sequences?: readonly string[] | undefined;
510
+ readonly output_config?: {
511
+ readonly effort?: string | undefined;
512
+ readonly format?: {
513
+ readonly type: "json_schema";
514
+ readonly schema: {
515
+ readonly [x: string]: unknown;
516
+ };
517
+ } | null | undefined;
518
+ } | undefined;
519
+ readonly cache_control?: {
520
+ readonly type: "ephemeral";
521
+ readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
522
+ } | undefined;
523
+ readonly container?: string | {
524
+ readonly id?: string | null | undefined;
525
+ readonly skills?: readonly {
526
+ readonly [x: string]: unknown;
527
+ }[] | null | undefined;
528
+ } | null | undefined;
529
+ readonly inference_geo?: string | null | undefined;
530
+ readonly metadata?: {
531
+ readonly user_id?: string | null | undefined;
532
+ } | undefined;
533
+ readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "standard_only"> | undefined;
534
+ readonly speed?: import("../schema/options.js").OpenString<"fast" | "standard"> | undefined;
535
+ readonly thinking?: {
536
+ readonly type: string;
537
+ readonly budget_tokens?: number | undefined;
538
+ } | undefined;
539
+ }, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | Route<{
540
+ readonly model: string;
541
+ readonly input: readonly ({
542
+ readonly type: "configuration_update";
543
+ readonly reasoning: {
544
+ readonly effort: import("../schema/options.js").ReasoningEffort;
545
+ };
546
+ } | {
547
+ readonly type: "additional_tools";
548
+ readonly role: "developer";
549
+ readonly tools: readonly ({
550
+ readonly type: "custom";
551
+ readonly name: string;
552
+ readonly description: string;
553
+ readonly format: {
554
+ readonly type: "text";
555
+ } | {
556
+ readonly type: "grammar";
557
+ readonly syntax: "lark" | "regex";
558
+ readonly definition: string;
559
+ };
560
+ } | {
561
+ readonly type: "function";
562
+ readonly name: string;
563
+ readonly description: string;
564
+ readonly parameters: {
565
+ readonly [x: string]: unknown;
566
+ };
567
+ readonly strict?: boolean | undefined;
568
+ } | {
569
+ readonly [x: string]: unknown;
570
+ readonly type: string;
571
+ })[];
572
+ } | {
573
+ readonly type: "message";
574
+ readonly role: "system";
575
+ readonly content: string;
576
+ } | {
577
+ readonly type: "message";
578
+ readonly role: "developer";
579
+ readonly content: string;
580
+ } | {
581
+ readonly type: "custom_tool_call_output" | "function_call_output";
582
+ readonly call_id: string;
583
+ readonly output: string | readonly ({
584
+ readonly type: "input_text";
585
+ readonly text: string;
586
+ } | {
587
+ readonly type: "input_video";
588
+ readonly video_url: string;
589
+ } | {
590
+ readonly type: "input_image";
591
+ readonly image_url: string;
592
+ readonly detail?: string | undefined;
593
+ } | {
594
+ readonly type: "input_file";
595
+ readonly filename?: string | undefined;
596
+ readonly detail?: string | undefined;
597
+ readonly file_data?: string | undefined;
598
+ readonly file_url?: string | undefined;
599
+ })[];
600
+ } | {
601
+ readonly type: "reasoning";
602
+ readonly id?: string | undefined;
603
+ readonly summary: readonly {
604
+ readonly type: "summary_text";
605
+ readonly text: string;
606
+ }[];
607
+ readonly encrypted_content?: string | null | undefined;
608
+ } | {
609
+ readonly type: "compaction";
610
+ readonly id?: string | null | undefined;
611
+ readonly encrypted_content: string;
612
+ } | {
613
+ readonly type: "message";
614
+ readonly role: "user";
615
+ readonly content: readonly ({
616
+ readonly type: "input_text";
617
+ readonly text: string;
618
+ } | {
619
+ readonly type: "input_video";
620
+ readonly video_url: string;
621
+ } | {
622
+ readonly type: "input_image";
623
+ readonly image_url: string;
624
+ readonly detail?: string | undefined;
625
+ } | {
626
+ readonly type: "input_file";
627
+ readonly filename?: string | undefined;
628
+ readonly detail?: string | undefined;
629
+ readonly file_data?: string | undefined;
630
+ readonly file_url?: string | undefined;
631
+ })[];
632
+ readonly id?: string | undefined;
633
+ readonly status?: string | undefined;
634
+ } | {
635
+ readonly type: "message";
636
+ readonly id?: string | undefined;
637
+ readonly role: "assistant";
638
+ readonly content: readonly {
639
+ readonly type: "output_text";
640
+ readonly text: string;
641
+ }[];
642
+ readonly phase?: "commentary" | "final_answer" | null | undefined;
643
+ readonly status?: string | undefined;
644
+ } | {
645
+ readonly type: "function_call";
646
+ readonly id?: string | undefined;
647
+ readonly call_id: string;
648
+ readonly name: string;
649
+ readonly namespace?: string | undefined;
650
+ readonly arguments: string;
651
+ } | {
652
+ readonly type: "custom_tool_call";
653
+ readonly id?: string | undefined;
654
+ readonly call_id: string;
655
+ readonly name: string;
656
+ readonly input: string;
657
+ } | {
658
+ readonly [x: string]: unknown;
659
+ readonly type: "web_search_call";
660
+ readonly id: string;
661
+ readonly status?: string | undefined;
662
+ readonly action?: {
663
+ readonly [x: string]: unknown;
664
+ } | null | undefined;
665
+ } | {
666
+ readonly [x: string]: unknown;
667
+ readonly type: "file_search_call";
668
+ readonly id: string;
669
+ readonly status?: string | undefined;
670
+ readonly queries?: readonly string[] | undefined;
671
+ readonly results?: readonly {
672
+ readonly [x: string]: unknown;
673
+ }[] | null | undefined;
674
+ } | {
675
+ readonly [x: string]: unknown;
676
+ readonly type: "code_interpreter_call";
677
+ readonly id: string;
678
+ readonly status?: string | undefined;
679
+ readonly code?: string | null | undefined;
680
+ readonly container_id?: string | null | undefined;
681
+ readonly outputs?: readonly {
682
+ readonly [x: string]: unknown;
683
+ }[] | null | undefined;
684
+ } | {
685
+ readonly [x: string]: unknown;
686
+ readonly type: "mcp_call";
687
+ readonly id: string;
688
+ readonly status?: string | undefined;
689
+ readonly server_label?: string | undefined;
690
+ readonly name?: string | undefined;
691
+ readonly arguments?: string | undefined;
692
+ readonly output?: string | null | undefined;
693
+ readonly error?: unknown;
694
+ } | {
695
+ readonly [x: string]: unknown;
696
+ readonly type: string;
697
+ readonly id: string;
698
+ })[];
699
+ readonly instructions?: string | undefined;
700
+ readonly tools?: readonly ({
701
+ readonly type: "custom";
702
+ readonly name: string;
703
+ readonly description: string;
704
+ readonly format: {
705
+ readonly type: "text";
706
+ } | {
707
+ readonly type: "grammar";
708
+ readonly syntax: "lark" | "regex";
709
+ readonly definition: string;
710
+ };
711
+ } | {
712
+ readonly type: "function";
713
+ readonly name: string;
714
+ readonly description: string;
715
+ readonly parameters: {
716
+ readonly [x: string]: unknown;
717
+ };
718
+ readonly strict?: boolean | undefined;
719
+ } | {
720
+ readonly [x: string]: unknown;
721
+ readonly type: string;
722
+ })[] | undefined;
723
+ readonly tool_choice?: "auto" | "none" | "required" | {
724
+ readonly type: "custom" | "function";
725
+ readonly name: string;
726
+ } | {
727
+ readonly type: "allowed_tools";
728
+ readonly mode: "auto" | "none" | "required";
729
+ readonly tools: readonly {
730
+ readonly type: "custom" | "function";
731
+ readonly name: string;
732
+ }[];
733
+ } | undefined;
734
+ readonly store?: boolean | undefined;
735
+ readonly metadata?: {
736
+ readonly [x: string]: string;
737
+ } | undefined;
738
+ readonly safety_identifier?: string | undefined;
739
+ readonly stream_options?: {
740
+ readonly include_obfuscation?: boolean | undefined;
741
+ } | undefined;
742
+ readonly top_logprobs?: number | undefined;
743
+ readonly truncation?: "auto" | "disabled" | undefined;
744
+ readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
745
+ readonly prompt_cache_key?: string | undefined;
746
+ readonly include?: readonly import("../schema/options.js").OpenString<"code_interpreter_call.outputs" | "computer_call_output.output.image_url" | "file_search_call.results" | "message.input_image.image_url" | "message.output_text.logprobs" | "reasoning.encrypted_content" | "web_search_call.action.sources" | "web_search_call.results">[] | undefined;
747
+ readonly reasoning?: {
748
+ readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
749
+ readonly summary?: "auto" | "concise" | "detailed" | undefined;
750
+ } | undefined;
751
+ readonly text?: {
752
+ readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
753
+ } | undefined;
754
+ readonly max_output_tokens?: number | undefined;
755
+ readonly max_tool_calls?: number | undefined;
756
+ readonly parallel_tool_calls?: boolean | undefined;
757
+ readonly temperature?: number | undefined;
758
+ readonly top_p?: number | undefined;
759
+ readonly presence_penalty?: number | undefined;
760
+ readonly frequency_penalty?: number | undefined;
761
+ readonly enable_thinking?: boolean | undefined;
762
+ readonly previous_response_id?: string | undefined;
763
+ readonly conversation?: string | undefined;
764
+ readonly stream: true;
765
+ }, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>)[];
766
+ export declare const configure: (input: Config) => {
767
+ id: string & import("effect/Brand").Brand<"AI.ProviderID">;
768
+ model: (id: string | ModelID) => import("../schema/options.js").LanguageModel<{
769
+ readonly reasoningEffort?: import("../schema/options.js").ReasoningEffort | undefined;
770
+ readonly enableThinking?: boolean | undefined;
771
+ readonly thinkingBudget?: number | undefined;
772
+ readonly preserveThinking?: boolean | undefined;
773
+ readonly clearThinking?: boolean | undefined;
774
+ readonly thinking?: {
775
+ readonly type: import("../schema/options.js").OpenString<"adaptive" | "disabled">;
776
+ } | undefined;
777
+ readonly toolStream?: boolean | undefined;
778
+ readonly parallelToolCalls?: boolean | undefined;
779
+ readonly repetitionPenalty?: number | undefined;
780
+ readonly responseFormat?: {
781
+ readonly type: import("../schema/options.js").OpenString<"json_object" | "json_schema" | "text">;
782
+ readonly json_schema?: {
783
+ readonly [x: string]: unknown;
784
+ } | undefined;
785
+ } | undefined;
786
+ readonly enableSearch?: boolean | undefined;
787
+ readonly searchOptions?: {
788
+ readonly forced_search?: boolean | undefined;
789
+ readonly search_strategy?: import("../schema/options.js").OpenString<"agent" | "agent_max" | "max" | "turbo"> | undefined;
790
+ readonly enable_search_extension?: boolean | undefined;
791
+ } | undefined;
792
+ }, import("../route/client.js").CompactionOperations | undefined>;
793
+ chat: (id: string | ModelID) => import("../schema/options.js").LanguageModel<{
794
+ readonly reasoningEffort?: import("../schema/options.js").ReasoningEffort | undefined;
795
+ readonly enableThinking?: boolean | undefined;
796
+ readonly thinkingBudget?: number | undefined;
797
+ readonly preserveThinking?: boolean | undefined;
798
+ readonly clearThinking?: boolean | undefined;
799
+ readonly thinking?: {
800
+ readonly type: import("../schema/options.js").OpenString<"adaptive" | "disabled">;
801
+ } | undefined;
802
+ readonly toolStream?: boolean | undefined;
803
+ readonly parallelToolCalls?: boolean | undefined;
804
+ readonly repetitionPenalty?: number | undefined;
805
+ readonly responseFormat?: {
806
+ readonly type: import("../schema/options.js").OpenString<"json_object" | "json_schema" | "text">;
807
+ readonly json_schema?: {
808
+ readonly [x: string]: unknown;
809
+ } | undefined;
810
+ } | undefined;
811
+ readonly enableSearch?: boolean | undefined;
812
+ readonly searchOptions?: {
813
+ readonly forced_search?: boolean | undefined;
814
+ readonly search_strategy?: import("../schema/options.js").OpenString<"agent" | "agent_max" | "max" | "turbo"> | undefined;
815
+ readonly enable_search_extension?: boolean | undefined;
816
+ } | undefined;
817
+ }, import("../route/client.js").CompactionOperations | undefined>;
818
+ messages: (id: string | ModelID) => import("../schema/options.js").LanguageModel<AlibabaMessages.OptionsInput, import("../route/client.js").CompactionOperations | undefined>;
819
+ responses: (id: string | ModelID) => import("../schema/options.js").LanguageModel<{
820
+ readonly reasoningEffort?: import("../schema/options.js").ReasoningEffort | undefined;
821
+ readonly enableThinking?: boolean | undefined;
822
+ readonly store?: boolean | undefined;
823
+ readonly previousResponseId?: string | undefined;
824
+ readonly conversation?: string | undefined;
825
+ }, import("../route/client.js").CompactionOperations | undefined>;
826
+ image: (id: string | ModelID, providerOptions?: ProviderOptions) => import("../image.js").ImageModel<import("./alibaba.js").AlibabaImageOptions>;
827
+ embedding: (id: string | ModelID, providerOptions?: ProviderOptions) => import("../embedding.js").EmbeddingModel<import("../embedding.js").EmbeddingOptions>;
828
+ configure: typeof configure;
829
+ };
830
+ export declare const provider: {
831
+ id: string & import("effect/Brand").Brand<"AI.ProviderID">;
832
+ configure: typeof configure;
833
+ };
834
+ export declare const model: ProviderPackage.Model<Settings, ChatOptionsInput>;
835
+ export declare const messagesModel: ProviderPackage.Model<Settings<MessagesOptionsInput>, MessagesOptionsInput>;
836
+ export declare const responsesModel: ProviderPackage.Model<Settings<ResponsesOptionsInput>, ResponsesOptionsInput>;
837
+ export declare const chat: ProviderPackage.Model<Settings<{
838
+ readonly reasoningEffort?: import("../schema/options.js").ReasoningEffort | undefined;
839
+ readonly enableThinking?: boolean | undefined;
840
+ readonly thinkingBudget?: number | undefined;
841
+ readonly preserveThinking?: boolean | undefined;
842
+ readonly clearThinking?: boolean | undefined;
843
+ readonly thinking?: {
844
+ readonly type: import("../schema/options.js").OpenString<"adaptive" | "disabled">;
845
+ } | undefined;
846
+ readonly toolStream?: boolean | undefined;
847
+ readonly parallelToolCalls?: boolean | undefined;
848
+ readonly repetitionPenalty?: number | undefined;
849
+ readonly responseFormat?: {
850
+ readonly type: import("../schema/options.js").OpenString<"json_object" | "json_schema" | "text">;
851
+ readonly json_schema?: {
852
+ readonly [x: string]: unknown;
853
+ } | undefined;
854
+ } | undefined;
855
+ readonly enableSearch?: boolean | undefined;
856
+ readonly searchOptions?: {
857
+ readonly forced_search?: boolean | undefined;
858
+ readonly search_strategy?: import("../schema/options.js").OpenString<"agent" | "agent_max" | "max" | "turbo"> | undefined;
859
+ readonly enable_search_extension?: boolean | undefined;
860
+ } | undefined;
861
+ }>, {
862
+ readonly reasoningEffort?: import("../schema/options.js").ReasoningEffort | undefined;
863
+ readonly enableThinking?: boolean | undefined;
864
+ readonly thinkingBudget?: number | undefined;
865
+ readonly preserveThinking?: boolean | undefined;
866
+ readonly clearThinking?: boolean | undefined;
867
+ readonly thinking?: {
868
+ readonly type: import("../schema/options.js").OpenString<"adaptive" | "disabled">;
869
+ } | undefined;
870
+ readonly toolStream?: boolean | undefined;
871
+ readonly parallelToolCalls?: boolean | undefined;
872
+ readonly repetitionPenalty?: number | undefined;
873
+ readonly responseFormat?: {
874
+ readonly type: import("../schema/options.js").OpenString<"json_object" | "json_schema" | "text">;
875
+ readonly json_schema?: {
876
+ readonly [x: string]: unknown;
877
+ } | undefined;
878
+ } | undefined;
879
+ readonly enableSearch?: boolean | undefined;
880
+ readonly searchOptions?: {
881
+ readonly forced_search?: boolean | undefined;
882
+ readonly search_strategy?: import("../schema/options.js").OpenString<"agent" | "agent_max" | "max" | "turbo"> | undefined;
883
+ readonly enable_search_extension?: boolean | undefined;
884
+ } | undefined;
885
+ }, import("../route/client.js").CompactionOperations | undefined>;
886
+ export declare const messages: ProviderPackage.Model<Settings<AlibabaMessages.OptionsInput>, AlibabaMessages.OptionsInput, import("../route/client.js").CompactionOperations | undefined>;
887
+ export declare const responses: ProviderPackage.Model<Settings<{
888
+ readonly reasoningEffort?: import("../schema/options.js").ReasoningEffort | undefined;
889
+ readonly enableThinking?: boolean | undefined;
890
+ readonly store?: boolean | undefined;
891
+ readonly previousResponseId?: string | undefined;
892
+ readonly conversation?: string | undefined;
893
+ }>, {
894
+ readonly reasoningEffort?: import("../schema/options.js").ReasoningEffort | undefined;
895
+ readonly enableThinking?: boolean | undefined;
896
+ readonly store?: boolean | undefined;
897
+ readonly previousResponseId?: string | undefined;
898
+ readonly conversation?: string | undefined;
899
+ }, import("../route/client.js").CompactionOperations | undefined>;
900
+ export declare const imageModel: (id: string, settings: Settings) => import("../image.js").ImageModel<import("./alibaba.js").AlibabaImageOptions>;
901
+ export declare const embeddingModel: (id: string, settings: Settings) => import("../embedding.js").EmbeddingModel<import("../embedding.js").EmbeddingOptions>;
902
+ export declare const webSearch: () => ToolDefinition;
903
+ export declare const webExtractor: () => ToolDefinition;
904
+ export declare const codeInterpreter: () => ToolDefinition;
905
+ export * as Alibaba from "./alibaba.js";