@mastra/react 1.7.3-alpha.2 → 1.8.0-alpha.4

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 (510) hide show
  1. package/dist/accumulator-B1MuNX3j.js +1668 -0
  2. package/dist/accumulator-B1MuNX3j.js.map +1 -0
  3. package/dist/accumulator-CsUGDUHk.cjs +1709 -0
  4. package/dist/accumulator-CsUGDUHk.cjs.map +1 -0
  5. package/dist/agent/hooks.d.ts.map +1 -1
  6. package/dist/agent/user-message.d.ts +4 -0
  7. package/dist/agent/user-message.d.ts.map +1 -0
  8. package/dist/chat/index.cjs +3 -0
  9. package/dist/chat/index.d.ts +3 -0
  10. package/dist/chat/index.d.ts.map +1 -0
  11. package/dist/chat/index.js +2 -0
  12. package/dist/feedback-refetch-interval-DLHzQoVV.js +12 -0
  13. package/dist/feedback-refetch-interval-DLHzQoVV.js.map +1 -0
  14. package/dist/feedback-refetch-interval-XD5FVc2k.cjs +17 -0
  15. package/dist/feedback-refetch-interval-XD5FVc2k.cjs.map +1 -0
  16. package/dist/hooks/agents/index.cjs +988 -0
  17. package/dist/hooks/agents/index.cjs.map +1 -0
  18. package/dist/hooks/agents/index.d.ts +19 -0
  19. package/dist/hooks/agents/index.d.ts.map +1 -0
  20. package/dist/hooks/agents/index.js +952 -0
  21. package/dist/hooks/agents/index.js.map +1 -0
  22. package/dist/hooks/agents/is-model-not-allowed.d.ts +15 -0
  23. package/dist/hooks/agents/is-model-not-allowed.d.ts.map +1 -0
  24. package/dist/hooks/agents/use-agent-messages.d.ts +18 -0
  25. package/dist/hooks/agents/use-agent-messages.d.ts.map +1 -0
  26. package/dist/hooks/agents/use-agent-plan.d.ts +14 -0
  27. package/dist/hooks/agents/use-agent-plan.d.ts.map +1 -0
  28. package/dist/hooks/agents/use-agent-skills.d.ts +2021 -0
  29. package/dist/hooks/agents/use-agent-skills.d.ts.map +1 -0
  30. package/dist/hooks/agents/use-agent-versions.d.ts +72 -0
  31. package/dist/hooks/agents/use-agent-versions.d.ts.map +1 -0
  32. package/dist/hooks/agents/use-agent-working-memory.d.ts +11 -0
  33. package/dist/hooks/agents/use-agent-working-memory.d.ts.map +1 -0
  34. package/dist/hooks/agents/use-agent-workspace.d.ts +2022 -0
  35. package/dist/hooks/agents/use-agent-workspace.d.ts.map +1 -0
  36. package/dist/hooks/agents/use-agent.d.ts +12 -0
  37. package/dist/hooks/agents/use-agent.d.ts.map +1 -0
  38. package/dist/hooks/agents/use-agents-model-providers.d.ts +9 -0
  39. package/dist/hooks/agents/use-agents-model-providers.d.ts.map +1 -0
  40. package/dist/hooks/agents/use-agents.d.ts +28 -0
  41. package/dist/hooks/agents/use-agents.d.ts.map +1 -0
  42. package/dist/hooks/agents/use-background-tasks.d.ts +51 -0
  43. package/dist/hooks/agents/use-background-tasks.d.ts.map +1 -0
  44. package/dist/hooks/agents/use-browser-session-probe.d.ts +34 -0
  45. package/dist/hooks/agents/use-browser-session-probe.d.ts.map +1 -0
  46. package/dist/hooks/agents/use-channels.d.ts +34 -0
  47. package/dist/hooks/agents/use-channels.d.ts.map +1 -0
  48. package/dist/hooks/agents/use-close-browser.d.ts +17 -0
  49. package/dist/hooks/agents/use-close-browser.d.ts.map +1 -0
  50. package/dist/hooks/agents/use-execute-agent-tool.d.ts +14 -0
  51. package/dist/hooks/agents/use-execute-agent-tool.d.ts.map +1 -0
  52. package/dist/hooks/agents/use-preview-instructions.d.ts +20 -0
  53. package/dist/hooks/agents/use-preview-instructions.d.ts.map +1 -0
  54. package/dist/hooks/agents/use-stored-agents.d.ts +8023 -0
  55. package/dist/hooks/agents/use-stored-agents.d.ts.map +1 -0
  56. package/dist/hooks/agents/use-stored-skills.d.ts +8 -0
  57. package/dist/hooks/agents/use-stored-skills.d.ts.map +1 -0
  58. package/dist/hooks/auth/fetch-with-refresh.d.ts +28 -0
  59. package/dist/hooks/auth/fetch-with-refresh.d.ts.map +1 -0
  60. package/dist/hooks/auth/get-client-query-key.d.ts +7 -0
  61. package/dist/hooks/auth/get-client-query-key.d.ts.map +1 -0
  62. package/dist/hooks/auth/index.cjs +492 -0
  63. package/dist/hooks/auth/index.cjs.map +1 -0
  64. package/dist/hooks/auth/index.d.ts +11 -0
  65. package/dist/hooks/auth/index.d.ts.map +1 -0
  66. package/dist/hooks/auth/index.js +474 -0
  67. package/dist/hooks/auth/index.js.map +1 -0
  68. package/dist/hooks/auth/sso-login.d.ts +8 -0
  69. package/dist/hooks/auth/sso-login.d.ts.map +1 -0
  70. package/dist/hooks/auth/types.d.ts +107 -0
  71. package/dist/hooks/auth/types.d.ts.map +1 -0
  72. package/dist/hooks/auth/use-auth-actions.d.ts +99 -0
  73. package/dist/hooks/auth/use-auth-actions.d.ts.map +1 -0
  74. package/dist/hooks/auth/use-auth-capabilities.d.ts +43 -0
  75. package/dist/hooks/auth/use-auth-capabilities.d.ts.map +1 -0
  76. package/dist/hooks/auth/use-credentials-login.d.ts +63 -0
  77. package/dist/hooks/auth/use-credentials-login.d.ts.map +1 -0
  78. package/dist/hooks/auth/use-credentials-signup.d.ts +66 -0
  79. package/dist/hooks/auth/use-credentials-signup.d.ts.map +1 -0
  80. package/dist/hooks/auth/use-current-user.d.ts +40 -0
  81. package/dist/hooks/auth/use-current-user.d.ts.map +1 -0
  82. package/dist/hooks/auth/use-permission-patterns.d.ts +24 -0
  83. package/dist/hooks/auth/use-permission-patterns.d.ts.map +1 -0
  84. package/dist/hooks/capabilities/index.cjs +47 -0
  85. package/dist/hooks/capabilities/index.cjs.map +1 -0
  86. package/dist/hooks/capabilities/index.d.ts +4 -0
  87. package/dist/hooks/capabilities/index.d.ts.map +1 -0
  88. package/dist/hooks/capabilities/index.js +44 -0
  89. package/dist/hooks/capabilities/index.js.map +1 -0
  90. package/dist/hooks/capabilities/use-feedback-available.d.ts +9 -0
  91. package/dist/hooks/capabilities/use-feedback-available.d.ts.map +1 -0
  92. package/dist/hooks/capabilities/use-observability-capabilities.d.ts +9 -0
  93. package/dist/hooks/capabilities/use-observability-capabilities.d.ts.map +1 -0
  94. package/dist/hooks/capabilities/use-trace-query-available.d.ts +9 -0
  95. package/dist/hooks/capabilities/use-trace-query-available.d.ts.map +1 -0
  96. package/dist/hooks/configuration/index.cjs +18 -0
  97. package/dist/hooks/configuration/index.cjs.map +1 -0
  98. package/dist/hooks/configuration/index.d.ts +2 -0
  99. package/dist/hooks/configuration/index.d.ts.map +1 -0
  100. package/dist/hooks/configuration/index.js +17 -0
  101. package/dist/hooks/configuration/index.js.map +1 -0
  102. package/dist/hooks/configuration/use-mastra-packages.d.ts +9 -0
  103. package/dist/hooks/configuration/use-mastra-packages.d.ts.map +1 -0
  104. package/dist/hooks/datasets/index.cjs +615 -0
  105. package/dist/hooks/datasets/index.cjs.map +1 -0
  106. package/dist/hooks/datasets/index.d.ts +10 -0
  107. package/dist/hooks/datasets/index.d.ts.map +1 -0
  108. package/dist/hooks/datasets/index.js +600 -0
  109. package/dist/hooks/datasets/index.js.map +1 -0
  110. package/dist/hooks/datasets/use-compare-experiments.d.ts +23 -0
  111. package/dist/hooks/datasets/use-compare-experiments.d.ts.map +1 -0
  112. package/dist/hooks/datasets/use-dataset-experiments.d.ts +49 -0
  113. package/dist/hooks/datasets/use-dataset-experiments.d.ts.map +1 -0
  114. package/dist/hooks/datasets/use-dataset-item-versions.d.ts +31 -0
  115. package/dist/hooks/datasets/use-dataset-item-versions.d.ts.map +1 -0
  116. package/dist/hooks/datasets/use-dataset-items.d.ts +38 -0
  117. package/dist/hooks/datasets/use-dataset-items.d.ts.map +1 -0
  118. package/dist/hooks/datasets/use-dataset-mutations.d.ts +362 -0
  119. package/dist/hooks/datasets/use-dataset-mutations.d.ts.map +1 -0
  120. package/dist/hooks/datasets/use-dataset-versions.d.ts +23 -0
  121. package/dist/hooks/datasets/use-dataset-versions.d.ts.map +1 -0
  122. package/dist/hooks/datasets/use-datasets.d.ts +44 -0
  123. package/dist/hooks/datasets/use-datasets.d.ts.map +1 -0
  124. package/dist/hooks/datasets/use-experiments.d.ts +16 -0
  125. package/dist/hooks/datasets/use-experiments.d.ts.map +1 -0
  126. package/dist/hooks/datasets/use-workflow-schema.d.ts +16 -0
  127. package/dist/hooks/datasets/use-workflow-schema.d.ts.map +1 -0
  128. package/dist/hooks/embedders/index.cjs +19 -0
  129. package/dist/hooks/embedders/index.cjs.map +1 -0
  130. package/dist/hooks/embedders/index.d.ts +2 -0
  131. package/dist/hooks/embedders/index.d.ts.map +1 -0
  132. package/dist/hooks/embedders/index.js +18 -0
  133. package/dist/hooks/embedders/index.js.map +1 -0
  134. package/dist/hooks/embedders/use-embedders.d.ts +17 -0
  135. package/dist/hooks/embedders/use-embedders.d.ts.map +1 -0
  136. package/dist/hooks/experiments/index.cjs +152 -0
  137. package/dist/hooks/experiments/index.cjs.map +1 -0
  138. package/dist/hooks/experiments/index.d.ts +5 -0
  139. package/dist/hooks/experiments/index.d.ts.map +1 -0
  140. package/dist/hooks/experiments/index.js +146 -0
  141. package/dist/hooks/experiments/index.js.map +1 -0
  142. package/dist/hooks/experiments/use-experiment-metrics.d.ts +30 -0
  143. package/dist/hooks/experiments/use-experiment-metrics.d.ts.map +1 -0
  144. package/dist/hooks/experiments/use-experiment-trace.d.ts +13 -0
  145. package/dist/hooks/experiments/use-experiment-trace.d.ts.map +1 -0
  146. package/dist/hooks/experiments/use-experiments-for-dataset-filter.d.ts +22 -0
  147. package/dist/hooks/experiments/use-experiments-for-dataset-filter.d.ts.map +1 -0
  148. package/dist/hooks/experiments/use-infinite-experiments.d.ts +22 -0
  149. package/dist/hooks/experiments/use-infinite-experiments.d.ts.map +1 -0
  150. package/dist/hooks/feedback/feedback-refetch-interval.d.ts +7 -0
  151. package/dist/hooks/feedback/feedback-refetch-interval.d.ts.map +1 -0
  152. package/dist/hooks/feedback/index.cjs +22 -0
  153. package/dist/hooks/feedback/index.cjs.map +1 -0
  154. package/dist/hooks/feedback/index.d.ts +3 -0
  155. package/dist/hooks/feedback/index.d.ts.map +1 -0
  156. package/dist/hooks/feedback/index.js +20 -0
  157. package/dist/hooks/feedback/index.js.map +1 -0
  158. package/dist/hooks/feedback/use-feedback.d.ts +56 -0
  159. package/dist/hooks/feedback/use-feedback.d.ts.map +1 -0
  160. package/dist/hooks/llm/index.cjs +17 -0
  161. package/dist/hooks/llm/index.cjs.map +1 -0
  162. package/dist/hooks/llm/index.d.ts +2 -0
  163. package/dist/hooks/llm/index.d.ts.map +1 -0
  164. package/dist/hooks/llm/index.js +16 -0
  165. package/dist/hooks/llm/index.js.map +1 -0
  166. package/dist/hooks/llm/use-llm-providers.d.ts +7 -0
  167. package/dist/hooks/llm/use-llm-providers.d.ts.map +1 -0
  168. package/dist/hooks/logs/index.cjs +84 -0
  169. package/dist/hooks/logs/index.cjs.map +1 -0
  170. package/dist/hooks/logs/index.d.ts +4 -0
  171. package/dist/hooks/logs/index.d.ts.map +1 -0
  172. package/dist/hooks/logs/index.js +82 -0
  173. package/dist/hooks/logs/index.js.map +1 -0
  174. package/dist/hooks/logs/types.d.ts +36 -0
  175. package/dist/hooks/logs/types.d.ts.map +1 -0
  176. package/dist/hooks/logs/use-logs.d.ts +79 -0
  177. package/dist/hooks/logs/use-logs.d.ts.map +1 -0
  178. package/dist/hooks/mcps/index.cjs +215 -0
  179. package/dist/hooks/mcps/index.cjs.map +1 -0
  180. package/dist/hooks/mcps/index.d.ts +7 -0
  181. package/dist/hooks/mcps/index.d.ts.map +1 -0
  182. package/dist/hooks/mcps/index.js +208 -0
  183. package/dist/hooks/mcps/index.js.map +1 -0
  184. package/dist/hooks/mcps/use-mcp-app-tools.d.ts +21 -0
  185. package/dist/hooks/mcps/use-mcp-app-tools.d.ts.map +1 -0
  186. package/dist/hooks/mcps/use-mcp-server-tool.d.ts +25 -0
  187. package/dist/hooks/mcps/use-mcp-server-tool.d.ts.map +1 -0
  188. package/dist/hooks/mcps/use-mcp-server-tools-by-id.d.ts +13 -0
  189. package/dist/hooks/mcps/use-mcp-server-tools-by-id.d.ts.map +1 -0
  190. package/dist/hooks/mcps/use-mcp-server-tools.d.ts +9 -0
  191. package/dist/hooks/mcps/use-mcp-server-tools.d.ts.map +1 -0
  192. package/dist/hooks/mcps/use-mcp-servers.d.ts +8 -0
  193. package/dist/hooks/mcps/use-mcp-servers.d.ts.map +1 -0
  194. package/dist/hooks/mcps/use-try-connect-mcp.d.ts +15 -0
  195. package/dist/hooks/mcps/use-try-connect-mcp.d.ts.map +1 -0
  196. package/dist/hooks/memory/index.cjs +328 -0
  197. package/dist/hooks/memory/index.cjs.map +1 -0
  198. package/dist/hooks/memory/index.d.ts +5 -0
  199. package/dist/hooks/memory/index.d.ts.map +1 -0
  200. package/dist/hooks/memory/index.js +312 -0
  201. package/dist/hooks/memory/index.js.map +1 -0
  202. package/dist/hooks/memory/use-memory-status.d.ts +12 -0
  203. package/dist/hooks/memory/use-memory-status.d.ts.map +1 -0
  204. package/dist/hooks/memory/use-memory-thread-messages.d.ts +13 -0
  205. package/dist/hooks/memory/use-memory-thread-messages.d.ts.map +1 -0
  206. package/dist/hooks/memory/use-memory.d.ts +159 -0
  207. package/dist/hooks/memory/use-memory.d.ts.map +1 -0
  208. package/dist/hooks/memory/use-observational-memory.d.ts +13 -0
  209. package/dist/hooks/memory/use-observational-memory.d.ts.map +1 -0
  210. package/dist/hooks/metrics/index.cjs +997 -0
  211. package/dist/hooks/metrics/index.cjs.map +1 -0
  212. package/dist/hooks/metrics/index.d.ts +16 -0
  213. package/dist/hooks/metrics/index.d.ts.map +1 -0
  214. package/dist/hooks/metrics/index.js +981 -0
  215. package/dist/hooks/metrics/index.js.map +1 -0
  216. package/dist/hooks/metrics/metrics-interval.d.ts +8 -0
  217. package/dist/hooks/metrics/metrics-interval.d.ts.map +1 -0
  218. package/dist/hooks/metrics/metrics-query-filters.d.ts +62 -0
  219. package/dist/hooks/metrics/metrics-query-filters.d.ts.map +1 -0
  220. package/dist/hooks/metrics/use-active-resources-kpi-metrics.d.ts +12 -0
  221. package/dist/hooks/metrics/use-active-resources-kpi-metrics.d.ts.map +1 -0
  222. package/dist/hooks/metrics/use-active-threads-kpi-metrics.d.ts +12 -0
  223. package/dist/hooks/metrics/use-active-threads-kpi-metrics.d.ts.map +1 -0
  224. package/dist/hooks/metrics/use-agent-runs-kpi-metrics.d.ts +9 -0
  225. package/dist/hooks/metrics/use-agent-runs-kpi-metrics.d.ts.map +1 -0
  226. package/dist/hooks/metrics/use-latency-metrics.d.ts +23 -0
  227. package/dist/hooks/metrics/use-latency-metrics.d.ts.map +1 -0
  228. package/dist/hooks/metrics/use-model-cost-kpi-metrics.d.ts +14 -0
  229. package/dist/hooks/metrics/use-model-cost-kpi-metrics.d.ts.map +1 -0
  230. package/dist/hooks/metrics/use-model-usage-cost-metrics.d.ts +16 -0
  231. package/dist/hooks/metrics/use-model-usage-cost-metrics.d.ts.map +1 -0
  232. package/dist/hooks/metrics/use-scores-metrics.d.ts +24 -0
  233. package/dist/hooks/metrics/use-scores-metrics.d.ts.map +1 -0
  234. package/dist/hooks/metrics/use-token-usage-by-agent-metrics.d.ts +15 -0
  235. package/dist/hooks/metrics/use-token-usage-by-agent-metrics.d.ts.map +1 -0
  236. package/dist/hooks/metrics/use-token-usage-timeseries.d.ts +22 -0
  237. package/dist/hooks/metrics/use-token-usage-timeseries.d.ts.map +1 -0
  238. package/dist/hooks/metrics/use-top-active-threads-metrics.d.ts +21 -0
  239. package/dist/hooks/metrics/use-top-active-threads-metrics.d.ts.map +1 -0
  240. package/dist/hooks/metrics/use-top-resources-by-threads-metrics.d.ts +20 -0
  241. package/dist/hooks/metrics/use-top-resources-by-threads-metrics.d.ts.map +1 -0
  242. package/dist/hooks/metrics/use-total-tokens-kpi-metrics.d.ts +13 -0
  243. package/dist/hooks/metrics/use-total-tokens-kpi-metrics.d.ts.map +1 -0
  244. package/dist/hooks/metrics/use-trace-volume-metrics.d.ts +17 -0
  245. package/dist/hooks/metrics/use-trace-volume-metrics.d.ts.map +1 -0
  246. package/dist/hooks/processors/index.cjs +43 -0
  247. package/dist/hooks/processors/index.cjs.map +1 -0
  248. package/dist/hooks/processors/index.d.ts +2 -0
  249. package/dist/hooks/processors/index.d.ts.map +1 -0
  250. package/dist/hooks/processors/index.js +40 -0
  251. package/dist/hooks/processors/index.js.map +1 -0
  252. package/dist/hooks/processors/use-processors.d.ts +64 -0
  253. package/dist/hooks/processors/use-processors.d.ts.map +1 -0
  254. package/dist/hooks/prompt-blocks/index.cjs +181 -0
  255. package/dist/hooks/prompt-blocks/index.cjs.map +1 -0
  256. package/dist/hooks/prompt-blocks/index.d.ts +3 -0
  257. package/dist/hooks/prompt-blocks/index.d.ts.map +1 -0
  258. package/dist/hooks/prompt-blocks/index.js +172 -0
  259. package/dist/hooks/prompt-blocks/index.js.map +1 -0
  260. package/dist/hooks/prompt-blocks/use-prompt-block-versions.d.ts +59 -0
  261. package/dist/hooks/prompt-blocks/use-prompt-block-versions.d.ts.map +1 -0
  262. package/dist/hooks/prompt-blocks/use-stored-prompt-blocks.d.ts +180 -0
  263. package/dist/hooks/prompt-blocks/use-stored-prompt-blocks.d.ts.map +1 -0
  264. package/dist/hooks/query/index.cjs +34 -0
  265. package/dist/hooks/query/index.cjs.map +1 -0
  266. package/dist/hooks/query/index.d.ts +4 -0
  267. package/dist/hooks/query/index.d.ts.map +1 -0
  268. package/dist/hooks/query/index.js +25 -0
  269. package/dist/hooks/query/index.js.map +1 -0
  270. package/dist/hooks/query/query-client-provider.d.ts +8 -0
  271. package/dist/hooks/query/query-client-provider.d.ts.map +1 -0
  272. package/dist/hooks/query/query-utils.d.ts +48 -0
  273. package/dist/hooks/query/query-utils.d.ts.map +1 -0
  274. package/dist/hooks/review/index.cjs +89 -0
  275. package/dist/hooks/review/index.cjs.map +1 -0
  276. package/dist/hooks/review/index.d.ts +4 -0
  277. package/dist/hooks/review/index.d.ts.map +1 -0
  278. package/dist/hooks/review/index.js +86 -0
  279. package/dist/hooks/review/index.js.map +1 -0
  280. package/dist/hooks/review/types.d.ts +21 -0
  281. package/dist/hooks/review/types.d.ts.map +1 -0
  282. package/dist/hooks/review/use-dataset-review-items.d.ts +19 -0
  283. package/dist/hooks/review/use-dataset-review-items.d.ts.map +1 -0
  284. package/dist/hooks/review/use-review-summary.d.ts +9 -0
  285. package/dist/hooks/review/use-review-summary.d.ts.map +1 -0
  286. package/dist/hooks/schedules/index.cjs +110 -0
  287. package/dist/hooks/schedules/index.cjs.map +1 -0
  288. package/dist/hooks/schedules/index.d.ts +5 -0
  289. package/dist/hooks/schedules/index.d.ts.map +1 -0
  290. package/dist/hooks/schedules/index.js +106 -0
  291. package/dist/hooks/schedules/index.js.map +1 -0
  292. package/dist/hooks/schedules/use-schedule-triggers.d.ts +18 -0
  293. package/dist/hooks/schedules/use-schedule-triggers.d.ts.map +1 -0
  294. package/dist/hooks/schedules/use-schedule.d.ts +11 -0
  295. package/dist/hooks/schedules/use-schedule.d.ts.map +1 -0
  296. package/dist/hooks/schedules/use-schedules.d.ts +7 -0
  297. package/dist/hooks/schedules/use-schedules.d.ts.map +1 -0
  298. package/dist/hooks/schedules/use-toggle-schedule.d.ts +13 -0
  299. package/dist/hooks/schedules/use-toggle-schedule.d.ts.map +1 -0
  300. package/dist/hooks/scores/index.cjs +339 -0
  301. package/dist/hooks/scores/index.cjs.map +1 -0
  302. package/dist/hooks/scores/index.d.ts +6 -0
  303. package/dist/hooks/scores/index.d.ts.map +1 -0
  304. package/dist/hooks/scores/index.js +323 -0
  305. package/dist/hooks/scores/index.js.map +1 -0
  306. package/dist/hooks/scores/use-scorer-versions.d.ts +71 -0
  307. package/dist/hooks/scores/use-scorer-versions.d.ts.map +1 -0
  308. package/dist/hooks/scores/use-scorers.d.ts +34 -0
  309. package/dist/hooks/scores/use-scorers.d.ts.map +1 -0
  310. package/dist/hooks/scores/use-stored-scorers.d.ts +151 -0
  311. package/dist/hooks/scores/use-stored-scorers.d.ts.map +1 -0
  312. package/dist/hooks/scores/use-trace-span-scores.d.ts +20 -0
  313. package/dist/hooks/scores/use-trace-span-scores.d.ts.map +1 -0
  314. package/dist/hooks/scores/use-trigger-scorer.d.ts +17 -0
  315. package/dist/hooks/scores/use-trigger-scorer.d.ts.map +1 -0
  316. package/dist/hooks/shared/cost.d.ts +7 -0
  317. package/dist/hooks/shared/cost.d.ts.map +1 -0
  318. package/dist/hooks/shared/date-format.d.ts +30 -0
  319. package/dist/hooks/shared/date-format.d.ts.map +1 -0
  320. package/dist/hooks/shared/map.d.ts +2 -0
  321. package/dist/hooks/shared/map.d.ts.map +1 -0
  322. package/dist/hooks/shared/query-options.d.ts +19 -0
  323. package/dist/hooks/shared/query-options.d.ts.map +1 -0
  324. package/dist/hooks/shared/use-in-view.d.ts +23 -0
  325. package/dist/hooks/shared/use-in-view.d.ts.map +1 -0
  326. package/dist/hooks/templates/index.cjs +464 -0
  327. package/dist/hooks/templates/index.cjs.map +1 -0
  328. package/dist/hooks/templates/index.d.ts +2 -0
  329. package/dist/hooks/templates/index.d.ts.map +1 -0
  330. package/dist/hooks/templates/index.js +456 -0
  331. package/dist/hooks/templates/index.js.map +1 -0
  332. package/dist/hooks/templates/use-templates.d.ts +139 -0
  333. package/dist/hooks/templates/use-templates.d.ts.map +1 -0
  334. package/dist/hooks/tool-providers/index.cjs +342 -0
  335. package/dist/hooks/tool-providers/index.cjs.map +1 -0
  336. package/dist/hooks/tool-providers/index.d.ts +10 -0
  337. package/dist/hooks/tool-providers/index.d.ts.map +1 -0
  338. package/dist/hooks/tool-providers/index.js +332 -0
  339. package/dist/hooks/tool-providers/index.js.map +1 -0
  340. package/dist/hooks/tool-providers/use-all-connections.d.ts +41 -0
  341. package/dist/hooks/tool-providers/use-all-connections.d.ts.map +1 -0
  342. package/dist/hooks/tool-providers/use-all-provider-tools.d.ts +25 -0
  343. package/dist/hooks/tool-providers/use-all-provider-tools.d.ts.map +1 -0
  344. package/dist/hooks/tool-providers/use-authorize.d.ts +45 -0
  345. package/dist/hooks/tool-providers/use-authorize.d.ts.map +1 -0
  346. package/dist/hooks/tool-providers/use-disconnect-connection.d.ts +24 -0
  347. package/dist/hooks/tool-providers/use-disconnect-connection.d.ts.map +1 -0
  348. package/dist/hooks/tool-providers/use-existing-connections.d.ts +33 -0
  349. package/dist/hooks/tool-providers/use-existing-connections.d.ts.map +1 -0
  350. package/dist/hooks/tool-providers/use-provider-tools.d.ts +17 -0
  351. package/dist/hooks/tool-providers/use-provider-tools.d.ts.map +1 -0
  352. package/dist/hooks/tool-providers/use-tool-providers.d.ts +23 -0
  353. package/dist/hooks/tool-providers/use-tool-providers.d.ts.map +1 -0
  354. package/dist/hooks/tool-providers/use-toolkits.d.ts +13 -0
  355. package/dist/hooks/tool-providers/use-toolkits.d.ts.map +1 -0
  356. package/dist/hooks/tool-providers/use-update-connection.d.ts +24 -0
  357. package/dist/hooks/tool-providers/use-update-connection.d.ts.map +1 -0
  358. package/dist/hooks/tools/index.cjs +49 -0
  359. package/dist/hooks/tools/index.cjs.map +1 -0
  360. package/dist/hooks/tools/index.d.ts +3 -0
  361. package/dist/hooks/tools/index.d.ts.map +1 -0
  362. package/dist/hooks/tools/index.js +46 -0
  363. package/dist/hooks/tools/index.js.map +1 -0
  364. package/dist/hooks/tools/use-all-tools.d.ts +16 -0
  365. package/dist/hooks/tools/use-all-tools.d.ts.map +1 -0
  366. package/dist/hooks/tools/use-execute-tool.d.ts +13 -0
  367. package/dist/hooks/tools/use-execute-tool.d.ts.map +1 -0
  368. package/dist/hooks/traces/discovery-cache.d.ts +12 -0
  369. package/dist/hooks/traces/discovery-cache.d.ts.map +1 -0
  370. package/dist/hooks/traces/index.cjs +1168 -0
  371. package/dist/hooks/traces/index.cjs.map +1 -0
  372. package/dist/hooks/traces/index.d.ts +22 -0
  373. package/dist/hooks/traces/index.d.ts.map +1 -0
  374. package/dist/hooks/traces/index.js +1129 -0
  375. package/dist/hooks/traces/index.js.map +1 -0
  376. package/dist/hooks/traces/types.d.ts +20 -0
  377. package/dist/hooks/traces/types.d.ts.map +1 -0
  378. package/dist/hooks/traces/use-branch.d.ts +18 -0
  379. package/dist/hooks/traces/use-branch.d.ts.map +1 -0
  380. package/dist/hooks/traces/use-create-feedback.d.ts +21 -0
  381. package/dist/hooks/traces/use-create-feedback.d.ts.map +1 -0
  382. package/dist/hooks/traces/use-delete-feedback.d.ts +21 -0
  383. package/dist/hooks/traces/use-delete-feedback.d.ts.map +1 -0
  384. package/dist/hooks/traces/use-entity-names.d.ts +14 -0
  385. package/dist/hooks/traces/use-entity-names.d.ts.map +1 -0
  386. package/dist/hooks/traces/use-environments.d.ts +10 -0
  387. package/dist/hooks/traces/use-environments.d.ts.map +1 -0
  388. package/dist/hooks/traces/use-service-names.d.ts +10 -0
  389. package/dist/hooks/traces/use-service-names.d.ts.map +1 -0
  390. package/dist/hooks/traces/use-span-detail.d.ts +14 -0
  391. package/dist/hooks/traces/use-span-detail.d.ts.map +1 -0
  392. package/dist/hooks/traces/use-span-feedback.d.ts +19 -0
  393. package/dist/hooks/traces/use-span-feedback.d.ts.map +1 -0
  394. package/dist/hooks/traces/use-tags.d.ts +10 -0
  395. package/dist/hooks/traces/use-tags.d.ts.map +1 -0
  396. package/dist/hooks/traces/use-thread-has-other-traces.d.ts +17 -0
  397. package/dist/hooks/traces/use-thread-has-other-traces.d.ts.map +1 -0
  398. package/dist/hooks/traces/use-trace-column-preferences-storage-key.d.ts +6 -0
  399. package/dist/hooks/traces/use-trace-column-preferences-storage-key.d.ts.map +1 -0
  400. package/dist/hooks/traces/use-trace-feedback.d.ts +16 -0
  401. package/dist/hooks/traces/use-trace-feedback.d.ts.map +1 -0
  402. package/dist/hooks/traces/use-trace-light-spans.d.ts +16 -0
  403. package/dist/hooks/traces/use-trace-light-spans.d.ts.map +1 -0
  404. package/dist/hooks/traces/use-trace-metadata-filter-fields.d.ts +36 -0
  405. package/dist/hooks/traces/use-trace-metadata-filter-fields.d.ts.map +1 -0
  406. package/dist/hooks/traces/use-trace-or-branch-spans.d.ts +39 -0
  407. package/dist/hooks/traces/use-trace-or-branch-spans.d.ts.map +1 -0
  408. package/dist/hooks/traces/use-trace-query.d.ts +57 -0
  409. package/dist/hooks/traces/use-trace-query.d.ts.map +1 -0
  410. package/dist/hooks/traces/use-trace-spans.d.ts +46 -0
  411. package/dist/hooks/traces/use-trace-spans.d.ts.map +1 -0
  412. package/dist/hooks/traces/use-trace-usage.d.ts +10 -0
  413. package/dist/hooks/traces/use-trace-usage.d.ts.map +1 -0
  414. package/dist/hooks/traces/use-traces.d.ts +292 -0
  415. package/dist/hooks/traces/use-traces.d.ts.map +1 -0
  416. package/dist/hooks/vectors/index.cjs +19 -0
  417. package/dist/hooks/vectors/index.cjs.map +1 -0
  418. package/dist/hooks/vectors/index.d.ts +2 -0
  419. package/dist/hooks/vectors/index.d.ts.map +1 -0
  420. package/dist/hooks/vectors/index.js +18 -0
  421. package/dist/hooks/vectors/index.js.map +1 -0
  422. package/dist/hooks/vectors/use-vectors.d.ts +14 -0
  423. package/dist/hooks/vectors/use-vectors.d.ts.map +1 -0
  424. package/dist/hooks/voice/index.cjs +87 -0
  425. package/dist/hooks/voice/index.cjs.map +1 -0
  426. package/dist/hooks/voice/index.d.ts +2 -0
  427. package/dist/hooks/voice/index.d.ts.map +1 -0
  428. package/dist/hooks/voice/index.js +86 -0
  429. package/dist/hooks/voice/index.js.map +1 -0
  430. package/dist/hooks/voice/use-read-aloud.d.ts +20 -0
  431. package/dist/hooks/voice/use-read-aloud.d.ts.map +1 -0
  432. package/dist/hooks/workflows/index.cjs +173 -0
  433. package/dist/hooks/workflows/index.cjs.map +1 -0
  434. package/dist/hooks/workflows/index.d.ts +7 -0
  435. package/dist/hooks/workflows/index.d.ts.map +1 -0
  436. package/dist/hooks/workflows/index.js +157 -0
  437. package/dist/hooks/workflows/index.js.map +1 -0
  438. package/dist/hooks/workflows/use-workflow-runs.d.ts +51 -0
  439. package/dist/hooks/workflows/use-workflow-runs.d.ts.map +1 -0
  440. package/dist/hooks/workflows/use-workflow.d.ts +14 -0
  441. package/dist/hooks/workflows/use-workflow.d.ts.map +1 -0
  442. package/dist/hooks/workflows/use-workflows-run-counts.d.ts +25 -0
  443. package/dist/hooks/workflows/use-workflows-run-counts.d.ts.map +1 -0
  444. package/dist/hooks/workflows/use-workflows.d.ts +10 -0
  445. package/dist/hooks/workflows/use-workflows.d.ts.map +1 -0
  446. package/dist/hooks/workspace/client-utils.d.ts +5 -0
  447. package/dist/hooks/workspace/client-utils.d.ts.map +1 -0
  448. package/dist/hooks/workspace/compatibility.d.ts +22 -0
  449. package/dist/hooks/workspace/compatibility.d.ts.map +1 -0
  450. package/dist/hooks/workspace/file-type.d.ts +7 -0
  451. package/dist/hooks/workspace/file-type.d.ts.map +1 -0
  452. package/dist/hooks/workspace/index.cjs +624 -0
  453. package/dist/hooks/workspace/index.cjs.map +1 -0
  454. package/dist/hooks/workspace/index.d.ts +11 -0
  455. package/dist/hooks/workspace/index.d.ts.map +1 -0
  456. package/dist/hooks/workspace/index.js +594 -0
  457. package/dist/hooks/workspace/index.js.map +1 -0
  458. package/dist/hooks/workspace/types.d.ts +199 -0
  459. package/dist/hooks/workspace/types.d.ts.map +1 -0
  460. package/dist/hooks/workspace/use-skills-sh.d.ts +104 -0
  461. package/dist/hooks/workspace/use-skills-sh.d.ts.map +1 -0
  462. package/dist/hooks/workspace/use-stored-workspaces.d.ts +12 -0
  463. package/dist/hooks/workspace/use-stored-workspaces.d.ts.map +1 -0
  464. package/dist/hooks/workspace/use-workspace-directory.d.ts +13 -0
  465. package/dist/hooks/workspace/use-workspace-directory.d.ts.map +1 -0
  466. package/dist/hooks/workspace/use-workspace-file-content.d.ts +15 -0
  467. package/dist/hooks/workspace/use-workspace-file-content.d.ts.map +1 -0
  468. package/dist/hooks/workspace/use-workspace-search.d.ts +20 -0
  469. package/dist/hooks/workspace/use-workspace-search.d.ts.map +1 -0
  470. package/dist/hooks/workspace/use-workspace-skills.d.ts +23 -0
  471. package/dist/hooks/workspace/use-workspace-skills.d.ts.map +1 -0
  472. package/dist/hooks/workspace/use-workspace.d.ts +56 -0
  473. package/dist/hooks/workspace/use-workspace.d.ts.map +1 -0
  474. package/dist/hooks-BFQK_s4g.js +1231 -0
  475. package/dist/hooks-BFQK_s4g.js.map +1 -0
  476. package/dist/hooks-CMjizg6y.cjs +1248 -0
  477. package/dist/hooks-CMjizg6y.cjs.map +1 -0
  478. package/dist/hooks-CjULNHpJ.js +252 -0
  479. package/dist/hooks-CjULNHpJ.js.map +1 -0
  480. package/dist/hooks-DsDYaJ3T.cjs +269 -0
  481. package/dist/hooks-DsDYaJ3T.cjs.map +1 -0
  482. package/dist/index.cjs +21 -3434
  483. package/dist/index.cjs.map +1 -1
  484. package/dist/index.d.ts +1 -0
  485. package/dist/index.d.ts.map +1 -1
  486. package/dist/index.js +6 -3419
  487. package/dist/index.js.map +1 -1
  488. package/dist/lib/mastra-db/fromCoreUserMessage.d.ts +3 -4
  489. package/dist/lib/mastra-db/fromCoreUserMessage.d.ts.map +1 -1
  490. package/dist/map-CDv4fbu4.js +12 -0
  491. package/dist/map-CDv4fbu4.js.map +1 -0
  492. package/dist/map-wjmL1y5O.cjs +17 -0
  493. package/dist/map-wjmL1y5O.cjs.map +1 -0
  494. package/dist/mastra-client-context-Bx_g84YB.js +50 -0
  495. package/dist/mastra-client-context-Bx_g84YB.js.map +1 -0
  496. package/dist/mastra-client-context-DzX3f0RF.cjs +61 -0
  497. package/dist/mastra-client-context-DzX3f0RF.cjs.map +1 -0
  498. package/dist/query-utils-CcrChYgz.cjs +174 -0
  499. package/dist/query-utils-CcrChYgz.cjs.map +1 -0
  500. package/dist/query-utils-D1NgFnWU.js +127 -0
  501. package/dist/query-utils-D1NgFnWU.js.map +1 -0
  502. package/dist/use-in-view-B6eJO9Zi.cjs +37 -0
  503. package/dist/use-in-view-B6eJO9Zi.cjs.map +1 -0
  504. package/dist/use-in-view-C9sYPGRm.js +32 -0
  505. package/dist/use-in-view-C9sYPGRm.js.map +1 -0
  506. package/dist/voice-BOtUdMi8.cjs +281 -0
  507. package/dist/voice-BOtUdMi8.cjs.map +1 -0
  508. package/dist/voice-DgirjEyH.js +264 -0
  509. package/dist/voice-DgirjEyH.js.map +1 -0
  510. package/package.json +32 -3
@@ -0,0 +1,2022 @@
1
+ import type { StoredAgentResponse, StoredWorkspaceRef } from '@mastra/client-js';
2
+ import type { MastraMutationOptions } from '../shared/query-options.js';
3
+ /**
4
+ * Hook to read and mutate the workspace reference for a stored agent.
5
+ *
6
+ * The workspace ref is part of the agent snapshot config and can be:
7
+ * - `{ type: 'id', workspaceId }` — references a stored workspace by ID
8
+ * - `{ type: 'inline', config }` — inline workspace config
9
+ * - `undefined` — no workspace assigned
10
+ */
11
+ export declare function useAgentWorkspace({ agentId, requestContext, queryOptions, }?: {
12
+ agentId?: string;
13
+ requestContext?: Record<string, any>;
14
+ queryOptions?: {
15
+ updateWorkspace?: MastraMutationOptions<StoredAgentResponse, StoredWorkspaceRef | undefined>;
16
+ };
17
+ }): {
18
+ workspace: StoredWorkspaceRef | undefined;
19
+ updateWorkspace: import("@tanstack/react-query").UseMutationResult<{
20
+ id: string;
21
+ status: string;
22
+ activeVersionId?: string | undefined;
23
+ authorId?: string | undefined;
24
+ author?: {
25
+ id: string;
26
+ name?: string | undefined;
27
+ email?: string | undefined;
28
+ avatarUrl?: string | undefined;
29
+ } | undefined;
30
+ metadata?: {
31
+ [key: string]: unknown;
32
+ } | undefined;
33
+ visibility?: ('private' | 'public') | undefined;
34
+ favoriteCount?: number | undefined;
35
+ isFavorited?: boolean | undefined;
36
+ createdAt: string;
37
+ updatedAt: string;
38
+ name: string;
39
+ description?: string | undefined;
40
+ instructions: string | ({
41
+ type: 'text';
42
+ content: string;
43
+ } | {
44
+ type: 'prompt_block_ref';
45
+ id: string;
46
+ } | {
47
+ type: 'prompt_block';
48
+ content: string;
49
+ rules?: {
50
+ operator: 'AND' | 'OR';
51
+ conditions: ({
52
+ field: string;
53
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
54
+ value?: unknown | undefined;
55
+ } | {
56
+ operator: 'AND' | 'OR';
57
+ conditions: ({
58
+ field: string;
59
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
60
+ value?: unknown | undefined;
61
+ } | {
62
+ operator: 'AND' | 'OR';
63
+ conditions: {
64
+ field: string;
65
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
66
+ value?: unknown | undefined;
67
+ }[];
68
+ })[];
69
+ })[];
70
+ } | undefined;
71
+ })[];
72
+ model: {
73
+ [x: string]: unknown;
74
+ provider: string;
75
+ name: string;
76
+ } | {
77
+ value: {
78
+ [x: string]: unknown;
79
+ provider: string;
80
+ name: string;
81
+ };
82
+ rules?: {
83
+ operator: 'AND' | 'OR';
84
+ conditions: ({
85
+ field: string;
86
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
87
+ value?: unknown | undefined;
88
+ } | {
89
+ operator: 'AND' | 'OR';
90
+ conditions: ({
91
+ field: string;
92
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
93
+ value?: unknown | undefined;
94
+ } | {
95
+ operator: 'AND' | 'OR';
96
+ conditions: {
97
+ field: string;
98
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
99
+ value?: unknown | undefined;
100
+ }[];
101
+ })[];
102
+ })[];
103
+ } | undefined;
104
+ }[];
105
+ tools?: ({
106
+ [key: string]: {
107
+ description?: string | undefined;
108
+ rules?: {
109
+ operator: 'AND' | 'OR';
110
+ conditions: ({
111
+ field: string;
112
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
113
+ value?: unknown | undefined;
114
+ } | {
115
+ operator: 'AND' | 'OR';
116
+ conditions: ({
117
+ field: string;
118
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
119
+ value?: unknown | undefined;
120
+ } | {
121
+ operator: 'AND' | 'OR';
122
+ conditions: {
123
+ field: string;
124
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
125
+ value?: unknown | undefined;
126
+ }[];
127
+ })[];
128
+ })[];
129
+ } | undefined;
130
+ };
131
+ } | {
132
+ value: {
133
+ [key: string]: {
134
+ description?: string | undefined;
135
+ rules?: {
136
+ operator: 'AND' | 'OR';
137
+ conditions: ({
138
+ field: string;
139
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
140
+ value?: unknown | undefined;
141
+ } | {
142
+ operator: 'AND' | 'OR';
143
+ conditions: ({
144
+ field: string;
145
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
146
+ value?: unknown | undefined;
147
+ } | {
148
+ operator: 'AND' | 'OR';
149
+ conditions: {
150
+ field: string;
151
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
152
+ value?: unknown | undefined;
153
+ }[];
154
+ })[];
155
+ })[];
156
+ } | undefined;
157
+ };
158
+ };
159
+ rules?: {
160
+ operator: 'AND' | 'OR';
161
+ conditions: ({
162
+ field: string;
163
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
164
+ value?: unknown | undefined;
165
+ } | {
166
+ operator: 'AND' | 'OR';
167
+ conditions: ({
168
+ field: string;
169
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
170
+ value?: unknown | undefined;
171
+ } | {
172
+ operator: 'AND' | 'OR';
173
+ conditions: {
174
+ field: string;
175
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
176
+ value?: unknown | undefined;
177
+ }[];
178
+ })[];
179
+ })[];
180
+ } | undefined;
181
+ }[]) | undefined;
182
+ defaultOptions?: ({
183
+ [x: string]: unknown;
184
+ runId?: string | undefined;
185
+ savePerStep?: boolean | undefined;
186
+ maxSteps?: number | undefined;
187
+ activeTools?: string[] | undefined;
188
+ maxProcessorRetries?: number | undefined;
189
+ toolChoice?: ('auto' | 'none' | 'required' | {
190
+ type: 'tool';
191
+ toolName: string;
192
+ }) | undefined;
193
+ modelSettings?: {
194
+ temperature?: number | undefined;
195
+ maxTokens?: number | undefined;
196
+ topP?: number | undefined;
197
+ topK?: number | undefined;
198
+ frequencyPenalty?: number | undefined;
199
+ presencePenalty?: number | undefined;
200
+ stopSequences?: string[] | undefined;
201
+ seed?: number | undefined;
202
+ maxRetries?: number | undefined;
203
+ } | undefined;
204
+ returnScorerData?: boolean | undefined;
205
+ tracingOptions?: {
206
+ traceName?: string | undefined;
207
+ attributes?: {
208
+ [key: string]: unknown;
209
+ } | undefined;
210
+ spanId?: string | undefined;
211
+ traceId?: string | undefined;
212
+ } | undefined;
213
+ requireToolApproval?: boolean | undefined;
214
+ autoResumeSuspendedTools?: boolean | undefined;
215
+ eagerToolExecution?: boolean | undefined;
216
+ toolCallConcurrency?: (number | {
217
+ limit?: number | undefined;
218
+ strategy?: ('available' | 'called') | undefined;
219
+ }) | undefined;
220
+ includeRawChunks?: boolean | undefined;
221
+ } | {
222
+ value: {
223
+ [x: string]: unknown;
224
+ runId?: string | undefined;
225
+ savePerStep?: boolean | undefined;
226
+ maxSteps?: number | undefined;
227
+ activeTools?: string[] | undefined;
228
+ maxProcessorRetries?: number | undefined;
229
+ toolChoice?: ('auto' | 'none' | 'required' | {
230
+ type: 'tool';
231
+ toolName: string;
232
+ }) | undefined;
233
+ modelSettings?: {
234
+ temperature?: number | undefined;
235
+ maxTokens?: number | undefined;
236
+ topP?: number | undefined;
237
+ topK?: number | undefined;
238
+ frequencyPenalty?: number | undefined;
239
+ presencePenalty?: number | undefined;
240
+ stopSequences?: string[] | undefined;
241
+ seed?: number | undefined;
242
+ maxRetries?: number | undefined;
243
+ } | undefined;
244
+ returnScorerData?: boolean | undefined;
245
+ tracingOptions?: {
246
+ traceName?: string | undefined;
247
+ attributes?: {
248
+ [key: string]: unknown;
249
+ } | undefined;
250
+ spanId?: string | undefined;
251
+ traceId?: string | undefined;
252
+ } | undefined;
253
+ requireToolApproval?: boolean | undefined;
254
+ autoResumeSuspendedTools?: boolean | undefined;
255
+ eagerToolExecution?: boolean | undefined;
256
+ toolCallConcurrency?: (number | {
257
+ limit?: number | undefined;
258
+ strategy?: ('available' | 'called') | undefined;
259
+ }) | undefined;
260
+ includeRawChunks?: boolean | undefined;
261
+ };
262
+ rules?: {
263
+ operator: 'AND' | 'OR';
264
+ conditions: ({
265
+ field: string;
266
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
267
+ value?: unknown | undefined;
268
+ } | {
269
+ operator: 'AND' | 'OR';
270
+ conditions: ({
271
+ field: string;
272
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
273
+ value?: unknown | undefined;
274
+ } | {
275
+ operator: 'AND' | 'OR';
276
+ conditions: {
277
+ field: string;
278
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
279
+ value?: unknown | undefined;
280
+ }[];
281
+ })[];
282
+ })[];
283
+ } | undefined;
284
+ }[]) | undefined;
285
+ workflows?: ({
286
+ [key: string]: {
287
+ description?: string | undefined;
288
+ rules?: {
289
+ operator: 'AND' | 'OR';
290
+ conditions: ({
291
+ field: string;
292
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
293
+ value?: unknown | undefined;
294
+ } | {
295
+ operator: 'AND' | 'OR';
296
+ conditions: ({
297
+ field: string;
298
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
299
+ value?: unknown | undefined;
300
+ } | {
301
+ operator: 'AND' | 'OR';
302
+ conditions: {
303
+ field: string;
304
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
305
+ value?: unknown | undefined;
306
+ }[];
307
+ })[];
308
+ })[];
309
+ } | undefined;
310
+ };
311
+ } | {
312
+ value: {
313
+ [key: string]: {
314
+ description?: string | undefined;
315
+ rules?: {
316
+ operator: 'AND' | 'OR';
317
+ conditions: ({
318
+ field: string;
319
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
320
+ value?: unknown | undefined;
321
+ } | {
322
+ operator: 'AND' | 'OR';
323
+ conditions: ({
324
+ field: string;
325
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
326
+ value?: unknown | undefined;
327
+ } | {
328
+ operator: 'AND' | 'OR';
329
+ conditions: {
330
+ field: string;
331
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
332
+ value?: unknown | undefined;
333
+ }[];
334
+ })[];
335
+ })[];
336
+ } | undefined;
337
+ };
338
+ };
339
+ rules?: {
340
+ operator: 'AND' | 'OR';
341
+ conditions: ({
342
+ field: string;
343
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
344
+ value?: unknown | undefined;
345
+ } | {
346
+ operator: 'AND' | 'OR';
347
+ conditions: ({
348
+ field: string;
349
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
350
+ value?: unknown | undefined;
351
+ } | {
352
+ operator: 'AND' | 'OR';
353
+ conditions: {
354
+ field: string;
355
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
356
+ value?: unknown | undefined;
357
+ }[];
358
+ })[];
359
+ })[];
360
+ } | undefined;
361
+ }[]) | undefined;
362
+ agents?: ({
363
+ [key: string]: {
364
+ description?: string | undefined;
365
+ rules?: {
366
+ operator: 'AND' | 'OR';
367
+ conditions: ({
368
+ field: string;
369
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
370
+ value?: unknown | undefined;
371
+ } | {
372
+ operator: 'AND' | 'OR';
373
+ conditions: ({
374
+ field: string;
375
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
376
+ value?: unknown | undefined;
377
+ } | {
378
+ operator: 'AND' | 'OR';
379
+ conditions: {
380
+ field: string;
381
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
382
+ value?: unknown | undefined;
383
+ }[];
384
+ })[];
385
+ })[];
386
+ } | undefined;
387
+ };
388
+ } | {
389
+ value: {
390
+ [key: string]: {
391
+ description?: string | undefined;
392
+ rules?: {
393
+ operator: 'AND' | 'OR';
394
+ conditions: ({
395
+ field: string;
396
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
397
+ value?: unknown | undefined;
398
+ } | {
399
+ operator: 'AND' | 'OR';
400
+ conditions: ({
401
+ field: string;
402
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
403
+ value?: unknown | undefined;
404
+ } | {
405
+ operator: 'AND' | 'OR';
406
+ conditions: {
407
+ field: string;
408
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
409
+ value?: unknown | undefined;
410
+ }[];
411
+ })[];
412
+ })[];
413
+ } | undefined;
414
+ };
415
+ };
416
+ rules?: {
417
+ operator: 'AND' | 'OR';
418
+ conditions: ({
419
+ field: string;
420
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
421
+ value?: unknown | undefined;
422
+ } | {
423
+ operator: 'AND' | 'OR';
424
+ conditions: ({
425
+ field: string;
426
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
427
+ value?: unknown | undefined;
428
+ } | {
429
+ operator: 'AND' | 'OR';
430
+ conditions: {
431
+ field: string;
432
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
433
+ value?: unknown | undefined;
434
+ }[];
435
+ })[];
436
+ })[];
437
+ } | undefined;
438
+ }[]) | undefined;
439
+ integrationTools?: ({
440
+ [key: string]: {
441
+ tools?: {
442
+ [key: string]: {
443
+ description?: string | undefined;
444
+ rules?: {
445
+ operator: 'AND' | 'OR';
446
+ conditions: ({
447
+ field: string;
448
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
449
+ value?: unknown | undefined;
450
+ } | {
451
+ operator: 'AND' | 'OR';
452
+ conditions: ({
453
+ field: string;
454
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
455
+ value?: unknown | undefined;
456
+ } | {
457
+ operator: 'AND' | 'OR';
458
+ conditions: {
459
+ field: string;
460
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
461
+ value?: unknown | undefined;
462
+ }[];
463
+ })[];
464
+ })[];
465
+ } | undefined;
466
+ };
467
+ } | undefined;
468
+ };
469
+ } | {
470
+ value: {
471
+ [key: string]: {
472
+ tools?: {
473
+ [key: string]: {
474
+ description?: string | undefined;
475
+ rules?: {
476
+ operator: 'AND' | 'OR';
477
+ conditions: ({
478
+ field: string;
479
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
480
+ value?: unknown | undefined;
481
+ } | {
482
+ operator: 'AND' | 'OR';
483
+ conditions: ({
484
+ field: string;
485
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
486
+ value?: unknown | undefined;
487
+ } | {
488
+ operator: 'AND' | 'OR';
489
+ conditions: {
490
+ field: string;
491
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
492
+ value?: unknown | undefined;
493
+ }[];
494
+ })[];
495
+ })[];
496
+ } | undefined;
497
+ };
498
+ } | undefined;
499
+ };
500
+ };
501
+ rules?: {
502
+ operator: 'AND' | 'OR';
503
+ conditions: ({
504
+ field: string;
505
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
506
+ value?: unknown | undefined;
507
+ } | {
508
+ operator: 'AND' | 'OR';
509
+ conditions: ({
510
+ field: string;
511
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
512
+ value?: unknown | undefined;
513
+ } | {
514
+ operator: 'AND' | 'OR';
515
+ conditions: {
516
+ field: string;
517
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
518
+ value?: unknown | undefined;
519
+ }[];
520
+ })[];
521
+ })[];
522
+ } | undefined;
523
+ }[]) | undefined;
524
+ toolProviders?: ({
525
+ [key: string]: {
526
+ tools: {
527
+ [key: string]: {
528
+ toolkit?: string | undefined;
529
+ description?: string | undefined;
530
+ };
531
+ };
532
+ connections: {
533
+ [key: string]: {
534
+ kind: 'author' | 'invoker' | 'platform';
535
+ toolkit: string;
536
+ connectionId: string;
537
+ label?: string | undefined;
538
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
539
+ }[];
540
+ };
541
+ };
542
+ } | {
543
+ value: {
544
+ [key: string]: {
545
+ tools: {
546
+ [key: string]: {
547
+ toolkit?: string | undefined;
548
+ description?: string | undefined;
549
+ };
550
+ };
551
+ connections: {
552
+ [key: string]: {
553
+ kind: 'author' | 'invoker' | 'platform';
554
+ toolkit: string;
555
+ connectionId: string;
556
+ label?: string | undefined;
557
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
558
+ }[];
559
+ };
560
+ };
561
+ };
562
+ rules?: {
563
+ operator: 'AND' | 'OR';
564
+ conditions: ({
565
+ field: string;
566
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
567
+ value?: unknown | undefined;
568
+ } | {
569
+ operator: 'AND' | 'OR';
570
+ conditions: ({
571
+ field: string;
572
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
573
+ value?: unknown | undefined;
574
+ } | {
575
+ operator: 'AND' | 'OR';
576
+ conditions: {
577
+ field: string;
578
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
579
+ value?: unknown | undefined;
580
+ }[];
581
+ })[];
582
+ })[];
583
+ } | undefined;
584
+ }[]) | undefined;
585
+ mcpClients?: ({
586
+ [key: string]: {
587
+ tools?: {
588
+ [key: string]: {
589
+ description?: string | undefined;
590
+ rules?: {
591
+ operator: 'AND' | 'OR';
592
+ conditions: ({
593
+ field: string;
594
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
595
+ value?: unknown | undefined;
596
+ } | {
597
+ operator: 'AND' | 'OR';
598
+ conditions: ({
599
+ field: string;
600
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
601
+ value?: unknown | undefined;
602
+ } | {
603
+ operator: 'AND' | 'OR';
604
+ conditions: {
605
+ field: string;
606
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
607
+ value?: unknown | undefined;
608
+ }[];
609
+ })[];
610
+ })[];
611
+ } | undefined;
612
+ };
613
+ } | undefined;
614
+ };
615
+ } | {
616
+ value: {
617
+ [key: string]: {
618
+ tools?: {
619
+ [key: string]: {
620
+ description?: string | undefined;
621
+ rules?: {
622
+ operator: 'AND' | 'OR';
623
+ conditions: ({
624
+ field: string;
625
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
626
+ value?: unknown | undefined;
627
+ } | {
628
+ operator: 'AND' | 'OR';
629
+ conditions: ({
630
+ field: string;
631
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
632
+ value?: unknown | undefined;
633
+ } | {
634
+ operator: 'AND' | 'OR';
635
+ conditions: {
636
+ field: string;
637
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
638
+ value?: unknown | undefined;
639
+ }[];
640
+ })[];
641
+ })[];
642
+ } | undefined;
643
+ };
644
+ } | undefined;
645
+ };
646
+ };
647
+ rules?: {
648
+ operator: 'AND' | 'OR';
649
+ conditions: ({
650
+ field: string;
651
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
652
+ value?: unknown | undefined;
653
+ } | {
654
+ operator: 'AND' | 'OR';
655
+ conditions: ({
656
+ field: string;
657
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
658
+ value?: unknown | undefined;
659
+ } | {
660
+ operator: 'AND' | 'OR';
661
+ conditions: {
662
+ field: string;
663
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
664
+ value?: unknown | undefined;
665
+ }[];
666
+ })[];
667
+ })[];
668
+ } | undefined;
669
+ }[]) | undefined;
670
+ inputProcessors?: ({
671
+ value: {
672
+ steps: ({
673
+ type: 'step';
674
+ step: {
675
+ id: string;
676
+ providerId: string;
677
+ config: {
678
+ [key: string]: unknown;
679
+ };
680
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
681
+ };
682
+ } | {
683
+ type: 'parallel';
684
+ branches: ({
685
+ type: 'conditional';
686
+ conditions: {
687
+ steps: {
688
+ type: 'step';
689
+ step: {
690
+ id: string;
691
+ providerId: string;
692
+ config: {
693
+ [key: string]: unknown;
694
+ };
695
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
696
+ };
697
+ }[];
698
+ rules?: {
699
+ operator: 'AND' | 'OR';
700
+ conditions: ({
701
+ field: string;
702
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
703
+ value?: unknown | undefined;
704
+ } | {
705
+ operator: 'AND' | 'OR';
706
+ conditions: ({
707
+ field: string;
708
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
709
+ value?: unknown | undefined;
710
+ } | {
711
+ operator: 'AND' | 'OR';
712
+ conditions: {
713
+ field: string;
714
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
715
+ value?: unknown | undefined;
716
+ }[];
717
+ })[];
718
+ })[];
719
+ } | undefined;
720
+ }[];
721
+ } | {
722
+ type: 'step';
723
+ step: {
724
+ id: string;
725
+ providerId: string;
726
+ config: {
727
+ [key: string]: unknown;
728
+ };
729
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
730
+ };
731
+ } | {
732
+ type: 'parallel';
733
+ branches: {
734
+ type: 'step';
735
+ step: {
736
+ id: string;
737
+ providerId: string;
738
+ config: {
739
+ [key: string]: unknown;
740
+ };
741
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
742
+ };
743
+ }[][];
744
+ })[][];
745
+ } | {
746
+ type: 'conditional';
747
+ conditions: {
748
+ steps: ({
749
+ type: 'conditional';
750
+ conditions: {
751
+ steps: {
752
+ type: 'step';
753
+ step: {
754
+ id: string;
755
+ providerId: string;
756
+ config: {
757
+ [key: string]: unknown;
758
+ };
759
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
760
+ };
761
+ }[];
762
+ rules?: {
763
+ operator: 'AND' | 'OR';
764
+ conditions: ({
765
+ field: string;
766
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
767
+ value?: unknown | undefined;
768
+ } | {
769
+ operator: 'AND' | 'OR';
770
+ conditions: ({
771
+ field: string;
772
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
773
+ value?: unknown | undefined;
774
+ } | {
775
+ operator: 'AND' | 'OR';
776
+ conditions: {
777
+ field: string;
778
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
779
+ value?: unknown | undefined;
780
+ }[];
781
+ })[];
782
+ })[];
783
+ } | undefined;
784
+ }[];
785
+ } | {
786
+ type: 'step';
787
+ step: {
788
+ id: string;
789
+ providerId: string;
790
+ config: {
791
+ [key: string]: unknown;
792
+ };
793
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
794
+ };
795
+ } | {
796
+ type: 'parallel';
797
+ branches: {
798
+ type: 'step';
799
+ step: {
800
+ id: string;
801
+ providerId: string;
802
+ config: {
803
+ [key: string]: unknown;
804
+ };
805
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
806
+ };
807
+ }[][];
808
+ })[];
809
+ rules?: {
810
+ operator: 'AND' | 'OR';
811
+ conditions: ({
812
+ field: string;
813
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
814
+ value?: unknown | undefined;
815
+ } | {
816
+ operator: 'AND' | 'OR';
817
+ conditions: ({
818
+ field: string;
819
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
820
+ value?: unknown | undefined;
821
+ } | {
822
+ operator: 'AND' | 'OR';
823
+ conditions: {
824
+ field: string;
825
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
826
+ value?: unknown | undefined;
827
+ }[];
828
+ })[];
829
+ })[];
830
+ } | undefined;
831
+ }[];
832
+ })[];
833
+ };
834
+ rules?: {
835
+ operator: 'AND' | 'OR';
836
+ conditions: ({
837
+ field: string;
838
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
839
+ value?: unknown | undefined;
840
+ } | {
841
+ operator: 'AND' | 'OR';
842
+ conditions: ({
843
+ field: string;
844
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
845
+ value?: unknown | undefined;
846
+ } | {
847
+ operator: 'AND' | 'OR';
848
+ conditions: {
849
+ field: string;
850
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
851
+ value?: unknown | undefined;
852
+ }[];
853
+ })[];
854
+ })[];
855
+ } | undefined;
856
+ }[] | {
857
+ steps: ({
858
+ type: 'step';
859
+ step: {
860
+ id: string;
861
+ providerId: string;
862
+ config: {
863
+ [key: string]: unknown;
864
+ };
865
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
866
+ };
867
+ } | {
868
+ type: 'parallel';
869
+ branches: ({
870
+ type: 'conditional';
871
+ conditions: {
872
+ steps: {
873
+ type: 'step';
874
+ step: {
875
+ id: string;
876
+ providerId: string;
877
+ config: {
878
+ [key: string]: unknown;
879
+ };
880
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
881
+ };
882
+ }[];
883
+ rules?: {
884
+ operator: 'AND' | 'OR';
885
+ conditions: ({
886
+ field: string;
887
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
888
+ value?: unknown | undefined;
889
+ } | {
890
+ operator: 'AND' | 'OR';
891
+ conditions: ({
892
+ field: string;
893
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
894
+ value?: unknown | undefined;
895
+ } | {
896
+ operator: 'AND' | 'OR';
897
+ conditions: {
898
+ field: string;
899
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
900
+ value?: unknown | undefined;
901
+ }[];
902
+ })[];
903
+ })[];
904
+ } | undefined;
905
+ }[];
906
+ } | {
907
+ type: 'step';
908
+ step: {
909
+ id: string;
910
+ providerId: string;
911
+ config: {
912
+ [key: string]: unknown;
913
+ };
914
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
915
+ };
916
+ } | {
917
+ type: 'parallel';
918
+ branches: {
919
+ type: 'step';
920
+ step: {
921
+ id: string;
922
+ providerId: string;
923
+ config: {
924
+ [key: string]: unknown;
925
+ };
926
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
927
+ };
928
+ }[][];
929
+ })[][];
930
+ } | {
931
+ type: 'conditional';
932
+ conditions: {
933
+ steps: ({
934
+ type: 'conditional';
935
+ conditions: {
936
+ steps: {
937
+ type: 'step';
938
+ step: {
939
+ id: string;
940
+ providerId: string;
941
+ config: {
942
+ [key: string]: unknown;
943
+ };
944
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
945
+ };
946
+ }[];
947
+ rules?: {
948
+ operator: 'AND' | 'OR';
949
+ conditions: ({
950
+ field: string;
951
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
952
+ value?: unknown | undefined;
953
+ } | {
954
+ operator: 'AND' | 'OR';
955
+ conditions: ({
956
+ field: string;
957
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
958
+ value?: unknown | undefined;
959
+ } | {
960
+ operator: 'AND' | 'OR';
961
+ conditions: {
962
+ field: string;
963
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
964
+ value?: unknown | undefined;
965
+ }[];
966
+ })[];
967
+ })[];
968
+ } | undefined;
969
+ }[];
970
+ } | {
971
+ type: 'step';
972
+ step: {
973
+ id: string;
974
+ providerId: string;
975
+ config: {
976
+ [key: string]: unknown;
977
+ };
978
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
979
+ };
980
+ } | {
981
+ type: 'parallel';
982
+ branches: {
983
+ type: 'step';
984
+ step: {
985
+ id: string;
986
+ providerId: string;
987
+ config: {
988
+ [key: string]: unknown;
989
+ };
990
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
991
+ };
992
+ }[][];
993
+ })[];
994
+ rules?: {
995
+ operator: 'AND' | 'OR';
996
+ conditions: ({
997
+ field: string;
998
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
999
+ value?: unknown | undefined;
1000
+ } | {
1001
+ operator: 'AND' | 'OR';
1002
+ conditions: ({
1003
+ field: string;
1004
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1005
+ value?: unknown | undefined;
1006
+ } | {
1007
+ operator: 'AND' | 'OR';
1008
+ conditions: {
1009
+ field: string;
1010
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1011
+ value?: unknown | undefined;
1012
+ }[];
1013
+ })[];
1014
+ })[];
1015
+ } | undefined;
1016
+ }[];
1017
+ })[];
1018
+ }) | undefined;
1019
+ outputProcessors?: ({
1020
+ value: {
1021
+ steps: ({
1022
+ type: 'step';
1023
+ step: {
1024
+ id: string;
1025
+ providerId: string;
1026
+ config: {
1027
+ [key: string]: unknown;
1028
+ };
1029
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
1030
+ };
1031
+ } | {
1032
+ type: 'parallel';
1033
+ branches: ({
1034
+ type: 'conditional';
1035
+ conditions: {
1036
+ steps: {
1037
+ type: 'step';
1038
+ step: {
1039
+ id: string;
1040
+ providerId: string;
1041
+ config: {
1042
+ [key: string]: unknown;
1043
+ };
1044
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
1045
+ };
1046
+ }[];
1047
+ rules?: {
1048
+ operator: 'AND' | 'OR';
1049
+ conditions: ({
1050
+ field: string;
1051
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1052
+ value?: unknown | undefined;
1053
+ } | {
1054
+ operator: 'AND' | 'OR';
1055
+ conditions: ({
1056
+ field: string;
1057
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1058
+ value?: unknown | undefined;
1059
+ } | {
1060
+ operator: 'AND' | 'OR';
1061
+ conditions: {
1062
+ field: string;
1063
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1064
+ value?: unknown | undefined;
1065
+ }[];
1066
+ })[];
1067
+ })[];
1068
+ } | undefined;
1069
+ }[];
1070
+ } | {
1071
+ type: 'step';
1072
+ step: {
1073
+ id: string;
1074
+ providerId: string;
1075
+ config: {
1076
+ [key: string]: unknown;
1077
+ };
1078
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
1079
+ };
1080
+ } | {
1081
+ type: 'parallel';
1082
+ branches: {
1083
+ type: 'step';
1084
+ step: {
1085
+ id: string;
1086
+ providerId: string;
1087
+ config: {
1088
+ [key: string]: unknown;
1089
+ };
1090
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
1091
+ };
1092
+ }[][];
1093
+ })[][];
1094
+ } | {
1095
+ type: 'conditional';
1096
+ conditions: {
1097
+ steps: ({
1098
+ type: 'conditional';
1099
+ conditions: {
1100
+ steps: {
1101
+ type: 'step';
1102
+ step: {
1103
+ id: string;
1104
+ providerId: string;
1105
+ config: {
1106
+ [key: string]: unknown;
1107
+ };
1108
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
1109
+ };
1110
+ }[];
1111
+ rules?: {
1112
+ operator: 'AND' | 'OR';
1113
+ conditions: ({
1114
+ field: string;
1115
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1116
+ value?: unknown | undefined;
1117
+ } | {
1118
+ operator: 'AND' | 'OR';
1119
+ conditions: ({
1120
+ field: string;
1121
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1122
+ value?: unknown | undefined;
1123
+ } | {
1124
+ operator: 'AND' | 'OR';
1125
+ conditions: {
1126
+ field: string;
1127
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1128
+ value?: unknown | undefined;
1129
+ }[];
1130
+ })[];
1131
+ })[];
1132
+ } | undefined;
1133
+ }[];
1134
+ } | {
1135
+ type: 'step';
1136
+ step: {
1137
+ id: string;
1138
+ providerId: string;
1139
+ config: {
1140
+ [key: string]: unknown;
1141
+ };
1142
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
1143
+ };
1144
+ } | {
1145
+ type: 'parallel';
1146
+ branches: {
1147
+ type: 'step';
1148
+ step: {
1149
+ id: string;
1150
+ providerId: string;
1151
+ config: {
1152
+ [key: string]: unknown;
1153
+ };
1154
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
1155
+ };
1156
+ }[][];
1157
+ })[];
1158
+ rules?: {
1159
+ operator: 'AND' | 'OR';
1160
+ conditions: ({
1161
+ field: string;
1162
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1163
+ value?: unknown | undefined;
1164
+ } | {
1165
+ operator: 'AND' | 'OR';
1166
+ conditions: ({
1167
+ field: string;
1168
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1169
+ value?: unknown | undefined;
1170
+ } | {
1171
+ operator: 'AND' | 'OR';
1172
+ conditions: {
1173
+ field: string;
1174
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1175
+ value?: unknown | undefined;
1176
+ }[];
1177
+ })[];
1178
+ })[];
1179
+ } | undefined;
1180
+ }[];
1181
+ })[];
1182
+ };
1183
+ rules?: {
1184
+ operator: 'AND' | 'OR';
1185
+ conditions: ({
1186
+ field: string;
1187
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1188
+ value?: unknown | undefined;
1189
+ } | {
1190
+ operator: 'AND' | 'OR';
1191
+ conditions: ({
1192
+ field: string;
1193
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1194
+ value?: unknown | undefined;
1195
+ } | {
1196
+ operator: 'AND' | 'OR';
1197
+ conditions: {
1198
+ field: string;
1199
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1200
+ value?: unknown | undefined;
1201
+ }[];
1202
+ })[];
1203
+ })[];
1204
+ } | undefined;
1205
+ }[] | {
1206
+ steps: ({
1207
+ type: 'step';
1208
+ step: {
1209
+ id: string;
1210
+ providerId: string;
1211
+ config: {
1212
+ [key: string]: unknown;
1213
+ };
1214
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
1215
+ };
1216
+ } | {
1217
+ type: 'parallel';
1218
+ branches: ({
1219
+ type: 'conditional';
1220
+ conditions: {
1221
+ steps: {
1222
+ type: 'step';
1223
+ step: {
1224
+ id: string;
1225
+ providerId: string;
1226
+ config: {
1227
+ [key: string]: unknown;
1228
+ };
1229
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
1230
+ };
1231
+ }[];
1232
+ rules?: {
1233
+ operator: 'AND' | 'OR';
1234
+ conditions: ({
1235
+ field: string;
1236
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1237
+ value?: unknown | undefined;
1238
+ } | {
1239
+ operator: 'AND' | 'OR';
1240
+ conditions: ({
1241
+ field: string;
1242
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1243
+ value?: unknown | undefined;
1244
+ } | {
1245
+ operator: 'AND' | 'OR';
1246
+ conditions: {
1247
+ field: string;
1248
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1249
+ value?: unknown | undefined;
1250
+ }[];
1251
+ })[];
1252
+ })[];
1253
+ } | undefined;
1254
+ }[];
1255
+ } | {
1256
+ type: 'step';
1257
+ step: {
1258
+ id: string;
1259
+ providerId: string;
1260
+ config: {
1261
+ [key: string]: unknown;
1262
+ };
1263
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
1264
+ };
1265
+ } | {
1266
+ type: 'parallel';
1267
+ branches: {
1268
+ type: 'step';
1269
+ step: {
1270
+ id: string;
1271
+ providerId: string;
1272
+ config: {
1273
+ [key: string]: unknown;
1274
+ };
1275
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
1276
+ };
1277
+ }[][];
1278
+ })[][];
1279
+ } | {
1280
+ type: 'conditional';
1281
+ conditions: {
1282
+ steps: ({
1283
+ type: 'conditional';
1284
+ conditions: {
1285
+ steps: {
1286
+ type: 'step';
1287
+ step: {
1288
+ id: string;
1289
+ providerId: string;
1290
+ config: {
1291
+ [key: string]: unknown;
1292
+ };
1293
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
1294
+ };
1295
+ }[];
1296
+ rules?: {
1297
+ operator: 'AND' | 'OR';
1298
+ conditions: ({
1299
+ field: string;
1300
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1301
+ value?: unknown | undefined;
1302
+ } | {
1303
+ operator: 'AND' | 'OR';
1304
+ conditions: ({
1305
+ field: string;
1306
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1307
+ value?: unknown | undefined;
1308
+ } | {
1309
+ operator: 'AND' | 'OR';
1310
+ conditions: {
1311
+ field: string;
1312
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1313
+ value?: unknown | undefined;
1314
+ }[];
1315
+ })[];
1316
+ })[];
1317
+ } | undefined;
1318
+ }[];
1319
+ } | {
1320
+ type: 'step';
1321
+ step: {
1322
+ id: string;
1323
+ providerId: string;
1324
+ config: {
1325
+ [key: string]: unknown;
1326
+ };
1327
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
1328
+ };
1329
+ } | {
1330
+ type: 'parallel';
1331
+ branches: {
1332
+ type: 'step';
1333
+ step: {
1334
+ id: string;
1335
+ providerId: string;
1336
+ config: {
1337
+ [key: string]: unknown;
1338
+ };
1339
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
1340
+ };
1341
+ }[][];
1342
+ })[];
1343
+ rules?: {
1344
+ operator: 'AND' | 'OR';
1345
+ conditions: ({
1346
+ field: string;
1347
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1348
+ value?: unknown | undefined;
1349
+ } | {
1350
+ operator: 'AND' | 'OR';
1351
+ conditions: ({
1352
+ field: string;
1353
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1354
+ value?: unknown | undefined;
1355
+ } | {
1356
+ operator: 'AND' | 'OR';
1357
+ conditions: {
1358
+ field: string;
1359
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1360
+ value?: unknown | undefined;
1361
+ }[];
1362
+ })[];
1363
+ })[];
1364
+ } | undefined;
1365
+ }[];
1366
+ })[];
1367
+ }) | undefined;
1368
+ memory?: (({
1369
+ vector?: (string | false) | undefined;
1370
+ options?: {
1371
+ readOnly?: boolean | undefined;
1372
+ lastMessages?: (number | false) | undefined;
1373
+ messageHistory?: {
1374
+ maxTokens: number;
1375
+ atMaxRemoveTokens?: number | undefined;
1376
+ } | undefined;
1377
+ semanticRecall?: (boolean | {
1378
+ topK: number;
1379
+ messageRange: number | {
1380
+ before: number;
1381
+ after: number;
1382
+ };
1383
+ scope?: ('thread' | 'resource') | undefined;
1384
+ threshold?: number | undefined;
1385
+ indexName?: string | undefined;
1386
+ }) | undefined;
1387
+ generateTitle?: (boolean | {
1388
+ model?: string | undefined;
1389
+ instructions?: string | undefined;
1390
+ minMessages?: number | undefined;
1391
+ emitEvent?: boolean | undefined;
1392
+ }) | undefined;
1393
+ } | undefined;
1394
+ embedder?: string | undefined;
1395
+ embedderOptions?: {
1396
+ [key: string]: unknown;
1397
+ } | undefined;
1398
+ observationalMemory?: (boolean | {
1399
+ model?: string | undefined;
1400
+ scope?: ('resource' | 'thread') | undefined;
1401
+ shareTokenBudget?: boolean | undefined;
1402
+ observation?: {
1403
+ model?: string | undefined;
1404
+ messageTokens?: number | undefined;
1405
+ modelSettings?: {
1406
+ [key: string]: unknown;
1407
+ } | undefined;
1408
+ providerOptions?: {
1409
+ [key: string]: {
1410
+ [key: string]: unknown;
1411
+ } | undefined;
1412
+ } | undefined;
1413
+ maxTokensPerBatch?: number | undefined;
1414
+ bufferTokens?: (number | false) | undefined;
1415
+ bufferActivation?: number | undefined;
1416
+ blockAfter?: number | undefined;
1417
+ } | undefined;
1418
+ reflection?: {
1419
+ model?: string | undefined;
1420
+ observationTokens?: number | undefined;
1421
+ modelSettings?: {
1422
+ [key: string]: unknown;
1423
+ } | undefined;
1424
+ providerOptions?: {
1425
+ [key: string]: {
1426
+ [key: string]: unknown;
1427
+ } | undefined;
1428
+ } | undefined;
1429
+ blockAfter?: number | undefined;
1430
+ bufferActivation?: number | undefined;
1431
+ } | undefined;
1432
+ }) | undefined;
1433
+ type?: never | undefined;
1434
+ } | {
1435
+ type: 'id';
1436
+ memoryId: string;
1437
+ } | {
1438
+ type: 'inline';
1439
+ config: {
1440
+ vector?: (string | false) | undefined;
1441
+ options?: {
1442
+ readOnly?: boolean | undefined;
1443
+ lastMessages?: (number | false) | undefined;
1444
+ messageHistory?: {
1445
+ maxTokens: number;
1446
+ atMaxRemoveTokens?: number | undefined;
1447
+ } | undefined;
1448
+ semanticRecall?: (boolean | {
1449
+ topK: number;
1450
+ messageRange: number | {
1451
+ before: number;
1452
+ after: number;
1453
+ };
1454
+ scope?: ('thread' | 'resource') | undefined;
1455
+ threshold?: number | undefined;
1456
+ indexName?: string | undefined;
1457
+ }) | undefined;
1458
+ generateTitle?: (boolean | {
1459
+ model?: string | undefined;
1460
+ instructions?: string | undefined;
1461
+ minMessages?: number | undefined;
1462
+ emitEvent?: boolean | undefined;
1463
+ }) | undefined;
1464
+ } | undefined;
1465
+ embedder?: string | undefined;
1466
+ embedderOptions?: {
1467
+ [key: string]: unknown;
1468
+ } | undefined;
1469
+ observationalMemory?: (boolean | {
1470
+ model?: string | undefined;
1471
+ scope?: ('resource' | 'thread') | undefined;
1472
+ shareTokenBudget?: boolean | undefined;
1473
+ observation?: {
1474
+ model?: string | undefined;
1475
+ messageTokens?: number | undefined;
1476
+ modelSettings?: {
1477
+ [key: string]: unknown;
1478
+ } | undefined;
1479
+ providerOptions?: {
1480
+ [key: string]: {
1481
+ [key: string]: unknown;
1482
+ } | undefined;
1483
+ } | undefined;
1484
+ maxTokensPerBatch?: number | undefined;
1485
+ bufferTokens?: (number | false) | undefined;
1486
+ bufferActivation?: number | undefined;
1487
+ blockAfter?: number | undefined;
1488
+ } | undefined;
1489
+ reflection?: {
1490
+ model?: string | undefined;
1491
+ observationTokens?: number | undefined;
1492
+ modelSettings?: {
1493
+ [key: string]: unknown;
1494
+ } | undefined;
1495
+ providerOptions?: {
1496
+ [key: string]: {
1497
+ [key: string]: unknown;
1498
+ } | undefined;
1499
+ } | undefined;
1500
+ blockAfter?: number | undefined;
1501
+ bufferActivation?: number | undefined;
1502
+ } | undefined;
1503
+ }) | undefined;
1504
+ };
1505
+ }) | {
1506
+ value: {
1507
+ vector?: (string | false) | undefined;
1508
+ options?: {
1509
+ readOnly?: boolean | undefined;
1510
+ lastMessages?: (number | false) | undefined;
1511
+ messageHistory?: {
1512
+ maxTokens: number;
1513
+ atMaxRemoveTokens?: number | undefined;
1514
+ } | undefined;
1515
+ semanticRecall?: (boolean | {
1516
+ topK: number;
1517
+ messageRange: number | {
1518
+ before: number;
1519
+ after: number;
1520
+ };
1521
+ scope?: ('thread' | 'resource') | undefined;
1522
+ threshold?: number | undefined;
1523
+ indexName?: string | undefined;
1524
+ }) | undefined;
1525
+ generateTitle?: (boolean | {
1526
+ model?: string | undefined;
1527
+ instructions?: string | undefined;
1528
+ minMessages?: number | undefined;
1529
+ emitEvent?: boolean | undefined;
1530
+ }) | undefined;
1531
+ } | undefined;
1532
+ embedder?: string | undefined;
1533
+ embedderOptions?: {
1534
+ [key: string]: unknown;
1535
+ } | undefined;
1536
+ observationalMemory?: (boolean | {
1537
+ model?: string | undefined;
1538
+ scope?: ('resource' | 'thread') | undefined;
1539
+ shareTokenBudget?: boolean | undefined;
1540
+ observation?: {
1541
+ model?: string | undefined;
1542
+ messageTokens?: number | undefined;
1543
+ modelSettings?: {
1544
+ [key: string]: unknown;
1545
+ } | undefined;
1546
+ providerOptions?: {
1547
+ [key: string]: {
1548
+ [key: string]: unknown;
1549
+ } | undefined;
1550
+ } | undefined;
1551
+ maxTokensPerBatch?: number | undefined;
1552
+ bufferTokens?: (number | false) | undefined;
1553
+ bufferActivation?: number | undefined;
1554
+ blockAfter?: number | undefined;
1555
+ } | undefined;
1556
+ reflection?: {
1557
+ model?: string | undefined;
1558
+ observationTokens?: number | undefined;
1559
+ modelSettings?: {
1560
+ [key: string]: unknown;
1561
+ } | undefined;
1562
+ providerOptions?: {
1563
+ [key: string]: {
1564
+ [key: string]: unknown;
1565
+ } | undefined;
1566
+ } | undefined;
1567
+ blockAfter?: number | undefined;
1568
+ bufferActivation?: number | undefined;
1569
+ } | undefined;
1570
+ }) | undefined;
1571
+ type?: never | undefined;
1572
+ } | {
1573
+ type: 'id';
1574
+ memoryId: string;
1575
+ } | {
1576
+ type: 'inline';
1577
+ config: {
1578
+ vector?: (string | false) | undefined;
1579
+ options?: {
1580
+ readOnly?: boolean | undefined;
1581
+ lastMessages?: (number | false) | undefined;
1582
+ messageHistory?: {
1583
+ maxTokens: number;
1584
+ atMaxRemoveTokens?: number | undefined;
1585
+ } | undefined;
1586
+ semanticRecall?: (boolean | {
1587
+ topK: number;
1588
+ messageRange: number | {
1589
+ before: number;
1590
+ after: number;
1591
+ };
1592
+ scope?: ('thread' | 'resource') | undefined;
1593
+ threshold?: number | undefined;
1594
+ indexName?: string | undefined;
1595
+ }) | undefined;
1596
+ generateTitle?: (boolean | {
1597
+ model?: string | undefined;
1598
+ instructions?: string | undefined;
1599
+ minMessages?: number | undefined;
1600
+ emitEvent?: boolean | undefined;
1601
+ }) | undefined;
1602
+ } | undefined;
1603
+ embedder?: string | undefined;
1604
+ embedderOptions?: {
1605
+ [key: string]: unknown;
1606
+ } | undefined;
1607
+ observationalMemory?: (boolean | {
1608
+ model?: string | undefined;
1609
+ scope?: ('resource' | 'thread') | undefined;
1610
+ shareTokenBudget?: boolean | undefined;
1611
+ observation?: {
1612
+ model?: string | undefined;
1613
+ messageTokens?: number | undefined;
1614
+ modelSettings?: {
1615
+ [key: string]: unknown;
1616
+ } | undefined;
1617
+ providerOptions?: {
1618
+ [key: string]: {
1619
+ [key: string]: unknown;
1620
+ } | undefined;
1621
+ } | undefined;
1622
+ maxTokensPerBatch?: number | undefined;
1623
+ bufferTokens?: (number | false) | undefined;
1624
+ bufferActivation?: number | undefined;
1625
+ blockAfter?: number | undefined;
1626
+ } | undefined;
1627
+ reflection?: {
1628
+ model?: string | undefined;
1629
+ observationTokens?: number | undefined;
1630
+ modelSettings?: {
1631
+ [key: string]: unknown;
1632
+ } | undefined;
1633
+ providerOptions?: {
1634
+ [key: string]: {
1635
+ [key: string]: unknown;
1636
+ } | undefined;
1637
+ } | undefined;
1638
+ blockAfter?: number | undefined;
1639
+ bufferActivation?: number | undefined;
1640
+ } | undefined;
1641
+ }) | undefined;
1642
+ };
1643
+ };
1644
+ rules?: {
1645
+ operator: 'AND' | 'OR';
1646
+ conditions: ({
1647
+ field: string;
1648
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1649
+ value?: unknown | undefined;
1650
+ } | {
1651
+ operator: 'AND' | 'OR';
1652
+ conditions: ({
1653
+ field: string;
1654
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1655
+ value?: unknown | undefined;
1656
+ } | {
1657
+ operator: 'AND' | 'OR';
1658
+ conditions: {
1659
+ field: string;
1660
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1661
+ value?: unknown | undefined;
1662
+ }[];
1663
+ })[];
1664
+ })[];
1665
+ } | undefined;
1666
+ }[]) | undefined;
1667
+ scorers?: ({
1668
+ [key: string]: {
1669
+ description?: string | undefined;
1670
+ sampling?: ({
1671
+ type: 'none';
1672
+ } | {
1673
+ type: 'ratio';
1674
+ rate: number;
1675
+ }) | undefined;
1676
+ rules?: {
1677
+ operator: 'AND' | 'OR';
1678
+ conditions: ({
1679
+ field: string;
1680
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1681
+ value?: unknown | undefined;
1682
+ } | {
1683
+ operator: 'AND' | 'OR';
1684
+ conditions: ({
1685
+ field: string;
1686
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1687
+ value?: unknown | undefined;
1688
+ } | {
1689
+ operator: 'AND' | 'OR';
1690
+ conditions: {
1691
+ field: string;
1692
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1693
+ value?: unknown | undefined;
1694
+ }[];
1695
+ })[];
1696
+ })[];
1697
+ } | undefined;
1698
+ };
1699
+ } | {
1700
+ value: {
1701
+ [key: string]: {
1702
+ description?: string | undefined;
1703
+ sampling?: ({
1704
+ type: 'none';
1705
+ } | {
1706
+ type: 'ratio';
1707
+ rate: number;
1708
+ }) | undefined;
1709
+ rules?: {
1710
+ operator: 'AND' | 'OR';
1711
+ conditions: ({
1712
+ field: string;
1713
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1714
+ value?: unknown | undefined;
1715
+ } | {
1716
+ operator: 'AND' | 'OR';
1717
+ conditions: ({
1718
+ field: string;
1719
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1720
+ value?: unknown | undefined;
1721
+ } | {
1722
+ operator: 'AND' | 'OR';
1723
+ conditions: {
1724
+ field: string;
1725
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1726
+ value?: unknown | undefined;
1727
+ }[];
1728
+ })[];
1729
+ })[];
1730
+ } | undefined;
1731
+ };
1732
+ };
1733
+ rules?: {
1734
+ operator: 'AND' | 'OR';
1735
+ conditions: ({
1736
+ field: string;
1737
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1738
+ value?: unknown | undefined;
1739
+ } | {
1740
+ operator: 'AND' | 'OR';
1741
+ conditions: ({
1742
+ field: string;
1743
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1744
+ value?: unknown | undefined;
1745
+ } | {
1746
+ operator: 'AND' | 'OR';
1747
+ conditions: {
1748
+ field: string;
1749
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1750
+ value?: unknown | undefined;
1751
+ }[];
1752
+ })[];
1753
+ })[];
1754
+ } | undefined;
1755
+ }[]) | undefined;
1756
+ skills?: ({
1757
+ [key: string]: {
1758
+ description?: string | undefined;
1759
+ instructions?: string | undefined;
1760
+ pin?: string | undefined;
1761
+ strategy?: ('latest' | 'live') | undefined;
1762
+ };
1763
+ } | {
1764
+ value: {
1765
+ [key: string]: {
1766
+ description?: string | undefined;
1767
+ instructions?: string | undefined;
1768
+ pin?: string | undefined;
1769
+ strategy?: ('latest' | 'live') | undefined;
1770
+ };
1771
+ };
1772
+ rules?: {
1773
+ operator: 'AND' | 'OR';
1774
+ conditions: ({
1775
+ field: string;
1776
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1777
+ value?: unknown | undefined;
1778
+ } | {
1779
+ operator: 'AND' | 'OR';
1780
+ conditions: ({
1781
+ field: string;
1782
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1783
+ value?: unknown | undefined;
1784
+ } | {
1785
+ operator: 'AND' | 'OR';
1786
+ conditions: {
1787
+ field: string;
1788
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1789
+ value?: unknown | undefined;
1790
+ }[];
1791
+ })[];
1792
+ })[];
1793
+ } | undefined;
1794
+ }[]) | undefined;
1795
+ workspace?: (({
1796
+ type: 'id';
1797
+ workspaceId: string;
1798
+ } | {
1799
+ type: 'inline';
1800
+ config: {
1801
+ name: string;
1802
+ description?: string | undefined;
1803
+ filesystem?: {
1804
+ provider: string;
1805
+ config: {
1806
+ [key: string]: unknown;
1807
+ };
1808
+ } | undefined;
1809
+ sandbox?: {
1810
+ provider: string;
1811
+ config: {
1812
+ [key: string]: unknown;
1813
+ };
1814
+ } | undefined;
1815
+ mounts?: {
1816
+ [key: string]: {
1817
+ provider: string;
1818
+ config: {
1819
+ [key: string]: unknown;
1820
+ };
1821
+ };
1822
+ } | undefined;
1823
+ search?: {
1824
+ vectorProvider?: string | undefined;
1825
+ vectorConfig?: {
1826
+ [key: string]: unknown;
1827
+ } | undefined;
1828
+ embedderProvider?: string | undefined;
1829
+ embedderModel?: string | undefined;
1830
+ embedderConfig?: {
1831
+ [key: string]: unknown;
1832
+ } | undefined;
1833
+ bm25?: (boolean | {
1834
+ k1?: number | undefined;
1835
+ b?: number | undefined;
1836
+ }) | undefined;
1837
+ searchIndexName?: string | undefined;
1838
+ autoIndexPaths?: string[] | undefined;
1839
+ } | undefined;
1840
+ skills?: string[] | undefined;
1841
+ tools?: {
1842
+ enabled?: boolean | undefined;
1843
+ requireApproval?: boolean | undefined;
1844
+ tools?: {
1845
+ [key: string]: {
1846
+ enabled?: boolean | undefined;
1847
+ requireApproval?: boolean | undefined;
1848
+ requireReadBeforeWrite?: boolean | undefined;
1849
+ };
1850
+ } | undefined;
1851
+ } | undefined;
1852
+ autoSync?: boolean | undefined;
1853
+ operationTimeout?: number | undefined;
1854
+ };
1855
+ } | {
1856
+ type: 'provider';
1857
+ provider: string;
1858
+ config: {
1859
+ [key: string]: unknown;
1860
+ };
1861
+ }) | {
1862
+ value: {
1863
+ type: 'id';
1864
+ workspaceId: string;
1865
+ } | {
1866
+ type: 'inline';
1867
+ config: {
1868
+ name: string;
1869
+ description?: string | undefined;
1870
+ filesystem?: {
1871
+ provider: string;
1872
+ config: {
1873
+ [key: string]: unknown;
1874
+ };
1875
+ } | undefined;
1876
+ sandbox?: {
1877
+ provider: string;
1878
+ config: {
1879
+ [key: string]: unknown;
1880
+ };
1881
+ } | undefined;
1882
+ mounts?: {
1883
+ [key: string]: {
1884
+ provider: string;
1885
+ config: {
1886
+ [key: string]: unknown;
1887
+ };
1888
+ };
1889
+ } | undefined;
1890
+ search?: {
1891
+ vectorProvider?: string | undefined;
1892
+ vectorConfig?: {
1893
+ [key: string]: unknown;
1894
+ } | undefined;
1895
+ embedderProvider?: string | undefined;
1896
+ embedderModel?: string | undefined;
1897
+ embedderConfig?: {
1898
+ [key: string]: unknown;
1899
+ } | undefined;
1900
+ bm25?: (boolean | {
1901
+ k1?: number | undefined;
1902
+ b?: number | undefined;
1903
+ }) | undefined;
1904
+ searchIndexName?: string | undefined;
1905
+ autoIndexPaths?: string[] | undefined;
1906
+ } | undefined;
1907
+ skills?: string[] | undefined;
1908
+ tools?: {
1909
+ enabled?: boolean | undefined;
1910
+ requireApproval?: boolean | undefined;
1911
+ tools?: {
1912
+ [key: string]: {
1913
+ enabled?: boolean | undefined;
1914
+ requireApproval?: boolean | undefined;
1915
+ requireReadBeforeWrite?: boolean | undefined;
1916
+ };
1917
+ } | undefined;
1918
+ } | undefined;
1919
+ autoSync?: boolean | undefined;
1920
+ operationTimeout?: number | undefined;
1921
+ };
1922
+ } | {
1923
+ type: 'provider';
1924
+ provider: string;
1925
+ config: {
1926
+ [key: string]: unknown;
1927
+ };
1928
+ };
1929
+ rules?: {
1930
+ operator: 'AND' | 'OR';
1931
+ conditions: ({
1932
+ field: string;
1933
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1934
+ value?: unknown | undefined;
1935
+ } | {
1936
+ operator: 'AND' | 'OR';
1937
+ conditions: ({
1938
+ field: string;
1939
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1940
+ value?: unknown | undefined;
1941
+ } | {
1942
+ operator: 'AND' | 'OR';
1943
+ conditions: {
1944
+ field: string;
1945
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1946
+ value?: unknown | undefined;
1947
+ }[];
1948
+ })[];
1949
+ })[];
1950
+ } | undefined;
1951
+ }[]) | undefined;
1952
+ browser?: (({
1953
+ value: {
1954
+ type: 'inline';
1955
+ config: {
1956
+ provider: string;
1957
+ headless?: boolean | undefined;
1958
+ viewport?: {
1959
+ width: number;
1960
+ height: number;
1961
+ } | undefined;
1962
+ timeout?: number | undefined;
1963
+ screencast?: {
1964
+ format?: ('jpeg' | 'png') | undefined;
1965
+ quality?: number | undefined;
1966
+ maxWidth?: number | undefined;
1967
+ maxHeight?: number | undefined;
1968
+ everyNthFrame?: number | undefined;
1969
+ } | undefined;
1970
+ };
1971
+ };
1972
+ rules?: {
1973
+ operator: 'AND' | 'OR';
1974
+ conditions: ({
1975
+ field: string;
1976
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1977
+ value?: unknown | undefined;
1978
+ } | {
1979
+ operator: 'AND' | 'OR';
1980
+ conditions: ({
1981
+ field: string;
1982
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1983
+ value?: unknown | undefined;
1984
+ } | {
1985
+ operator: 'AND' | 'OR';
1986
+ conditions: {
1987
+ field: string;
1988
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1989
+ value?: unknown | undefined;
1990
+ }[];
1991
+ })[];
1992
+ })[];
1993
+ } | undefined;
1994
+ }[] | {
1995
+ type: 'inline';
1996
+ config: {
1997
+ provider: string;
1998
+ headless?: boolean | undefined;
1999
+ viewport?: {
2000
+ width: number;
2001
+ height: number;
2002
+ } | undefined;
2003
+ timeout?: number | undefined;
2004
+ screencast?: {
2005
+ format?: ('jpeg' | 'png') | undefined;
2006
+ quality?: number | undefined;
2007
+ maxWidth?: number | undefined;
2008
+ maxHeight?: number | undefined;
2009
+ everyNthFrame?: number | undefined;
2010
+ } | undefined;
2011
+ };
2012
+ }) | boolean | null) | undefined;
2013
+ requestContextSchema?: {
2014
+ [key: string]: unknown;
2015
+ } | undefined;
2016
+ durable?: (boolean | {
2017
+ maxSteps?: number | undefined;
2018
+ cleanupTimeoutMs?: number | undefined;
2019
+ }) | undefined;
2020
+ }, Error, StoredWorkspaceRef | undefined, unknown>;
2021
+ };
2022
+ //# sourceMappingURL=use-agent-workspace.d.ts.map