@mastra/react 1.7.3-alpha.3 → 1.8.0-alpha.5

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