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