@keystrokehq/parallel 0.1.0 → 0.1.2

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 (261) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-enrichment-to-find-all-run.cjs +8 -8
  4. package/dist/actions/add-enrichment-to-find-all-run.cjs.map +1 -1
  5. package/dist/actions/add-enrichment-to-find-all-run.d.cts +50 -3
  6. package/dist/actions/add-enrichment-to-find-all-run.d.cts.map +1 -1
  7. package/dist/actions/add-enrichment-to-find-all-run.d.mts +50 -3
  8. package/dist/actions/add-enrichment-to-find-all-run.d.mts.map +1 -1
  9. package/dist/actions/add-enrichment-to-find-all-run.mjs +8 -8
  10. package/dist/actions/add-enrichment-to-find-all-run.mjs.map +1 -1
  11. package/dist/actions/add-runs-to-task-group.cjs +2 -2
  12. package/dist/actions/add-runs-to-task-group.cjs.map +1 -1
  13. package/dist/actions/add-runs-to-task-group.d.cts +54 -3
  14. package/dist/actions/add-runs-to-task-group.d.cts.map +1 -1
  15. package/dist/actions/add-runs-to-task-group.d.mts +54 -3
  16. package/dist/actions/add-runs-to-task-group.d.mts.map +1 -1
  17. package/dist/actions/add-runs-to-task-group.mjs +2 -2
  18. package/dist/actions/add-runs-to-task-group.mjs.map +1 -1
  19. package/dist/actions/cancel-find-all-run.cjs.map +1 -1
  20. package/dist/actions/cancel-find-all-run.d.cts +7 -3
  21. package/dist/actions/cancel-find-all-run.d.cts.map +1 -1
  22. package/dist/actions/cancel-find-all-run.d.mts +7 -3
  23. package/dist/actions/cancel-find-all-run.d.mts.map +1 -1
  24. package/dist/actions/cancel-find-all-run.mjs.map +1 -1
  25. package/dist/actions/create-chat-completions.cjs +10 -10
  26. package/dist/actions/create-chat-completions.cjs.map +1 -1
  27. package/dist/actions/create-chat-completions.d.cts +86 -3
  28. package/dist/actions/create-chat-completions.d.cts.map +1 -1
  29. package/dist/actions/create-chat-completions.d.mts +86 -3
  30. package/dist/actions/create-chat-completions.d.mts.map +1 -1
  31. package/dist/actions/create-chat-completions.mjs +10 -10
  32. package/dist/actions/create-chat-completions.mjs.map +1 -1
  33. package/dist/actions/create-monitor.cjs +4 -4
  34. package/dist/actions/create-monitor.cjs.map +1 -1
  35. package/dist/actions/create-monitor.d.cts +56 -3
  36. package/dist/actions/create-monitor.d.cts.map +1 -1
  37. package/dist/actions/create-monitor.d.mts +56 -3
  38. package/dist/actions/create-monitor.d.mts.map +1 -1
  39. package/dist/actions/create-monitor.mjs +4 -4
  40. package/dist/actions/create-monitor.mjs.map +1 -1
  41. package/dist/actions/create-task-group.cjs +3 -3
  42. package/dist/actions/create-task-group.cjs.map +1 -1
  43. package/dist/actions/create-task-group.d.cts +18 -3
  44. package/dist/actions/create-task-group.d.cts.map +1 -1
  45. package/dist/actions/create-task-group.d.mts +18 -3
  46. package/dist/actions/create-task-group.d.mts.map +1 -1
  47. package/dist/actions/create-task-group.mjs +3 -3
  48. package/dist/actions/create-task-group.mjs.map +1 -1
  49. package/dist/actions/create-task-run.cjs +6 -6
  50. package/dist/actions/create-task-run.cjs.map +1 -1
  51. package/dist/actions/create-task-run.d.cts +62 -3
  52. package/dist/actions/create-task-run.d.cts.map +1 -1
  53. package/dist/actions/create-task-run.d.mts +62 -3
  54. package/dist/actions/create-task-run.d.mts.map +1 -1
  55. package/dist/actions/create-task-run.mjs +6 -6
  56. package/dist/actions/create-task-run.mjs.map +1 -1
  57. package/dist/actions/delete-monitor.cjs +1 -1
  58. package/dist/actions/delete-monitor.cjs.map +1 -1
  59. package/dist/actions/delete-monitor.d.cts +31 -3
  60. package/dist/actions/delete-monitor.d.cts.map +1 -1
  61. package/dist/actions/delete-monitor.d.mts +31 -3
  62. package/dist/actions/delete-monitor.d.mts.map +1 -1
  63. package/dist/actions/delete-monitor.mjs +1 -1
  64. package/dist/actions/delete-monitor.mjs.map +1 -1
  65. package/dist/actions/extend-find-all-run.cjs +4 -4
  66. package/dist/actions/extend-find-all-run.cjs.map +1 -1
  67. package/dist/actions/extend-find-all-run.d.cts +24 -3
  68. package/dist/actions/extend-find-all-run.d.cts.map +1 -1
  69. package/dist/actions/extend-find-all-run.d.mts +24 -3
  70. package/dist/actions/extend-find-all-run.d.mts.map +1 -1
  71. package/dist/actions/extend-find-all-run.mjs +4 -4
  72. package/dist/actions/extend-find-all-run.mjs.map +1 -1
  73. package/dist/actions/extract.cjs +7 -7
  74. package/dist/actions/extract.cjs.map +1 -1
  75. package/dist/actions/extract.d.cts +63 -3
  76. package/dist/actions/extract.d.cts.map +1 -1
  77. package/dist/actions/extract.d.mts +63 -3
  78. package/dist/actions/extract.d.mts.map +1 -1
  79. package/dist/actions/extract.mjs +7 -7
  80. package/dist/actions/extract.mjs.map +1 -1
  81. package/dist/actions/fetch-task-group-runs.cjs +18 -18
  82. package/dist/actions/fetch-task-group-runs.cjs.map +1 -1
  83. package/dist/actions/fetch-task-group-runs.d.cts +91 -3
  84. package/dist/actions/fetch-task-group-runs.d.cts.map +1 -1
  85. package/dist/actions/fetch-task-group-runs.d.mts +91 -3
  86. package/dist/actions/fetch-task-group-runs.d.mts.map +1 -1
  87. package/dist/actions/fetch-task-group-runs.mjs +18 -18
  88. package/dist/actions/fetch-task-group-runs.mjs.map +1 -1
  89. package/dist/actions/find-all.cjs +6 -6
  90. package/dist/actions/find-all.cjs.map +1 -1
  91. package/dist/actions/find-all.d.cts +70 -3
  92. package/dist/actions/find-all.d.cts.map +1 -1
  93. package/dist/actions/find-all.d.mts +70 -3
  94. package/dist/actions/find-all.d.mts.map +1 -1
  95. package/dist/actions/find-all.mjs +6 -6
  96. package/dist/actions/find-all.mjs.map +1 -1
  97. package/dist/actions/get-find-all-run-result.cjs +10 -10
  98. package/dist/actions/get-find-all-run-result.cjs.map +1 -1
  99. package/dist/actions/get-find-all-run-result.d.cts +68 -3
  100. package/dist/actions/get-find-all-run-result.d.cts.map +1 -1
  101. package/dist/actions/get-find-all-run-result.d.mts +68 -3
  102. package/dist/actions/get-find-all-run-result.d.mts.map +1 -1
  103. package/dist/actions/get-find-all-run-result.mjs +10 -10
  104. package/dist/actions/get-find-all-run-result.mjs.map +1 -1
  105. package/dist/actions/get-find-all-run-schema.cjs +4 -4
  106. package/dist/actions/get-find-all-run-schema.cjs.map +1 -1
  107. package/dist/actions/get-find-all-run-schema.d.cts +22 -3
  108. package/dist/actions/get-find-all-run-schema.d.cts.map +1 -1
  109. package/dist/actions/get-find-all-run-schema.d.mts +22 -3
  110. package/dist/actions/get-find-all-run-schema.d.mts.map +1 -1
  111. package/dist/actions/get-find-all-run-schema.mjs +4 -4
  112. package/dist/actions/get-find-all-run-schema.mjs.map +1 -1
  113. package/dist/actions/ingest-find-all-run.cjs +4 -4
  114. package/dist/actions/ingest-find-all-run.cjs.map +1 -1
  115. package/dist/actions/ingest-find-all-run.d.cts +22 -3
  116. package/dist/actions/ingest-find-all-run.d.cts.map +1 -1
  117. package/dist/actions/ingest-find-all-run.d.mts +22 -3
  118. package/dist/actions/ingest-find-all-run.d.mts.map +1 -1
  119. package/dist/actions/ingest-find-all-run.mjs +4 -4
  120. package/dist/actions/ingest-find-all-run.mjs.map +1 -1
  121. package/dist/actions/list-monitor-events.cjs +6 -6
  122. package/dist/actions/list-monitor-events.cjs.map +1 -1
  123. package/dist/actions/list-monitor-events.d.cts +26 -3
  124. package/dist/actions/list-monitor-events.d.cts.map +1 -1
  125. package/dist/actions/list-monitor-events.d.mts +26 -3
  126. package/dist/actions/list-monitor-events.d.mts.map +1 -1
  127. package/dist/actions/list-monitor-events.mjs +6 -6
  128. package/dist/actions/list-monitor-events.mjs.map +1 -1
  129. package/dist/actions/list-monitors.cjs +4 -4
  130. package/dist/actions/list-monitors.cjs.map +1 -1
  131. package/dist/actions/list-monitors.d.cts +35 -3
  132. package/dist/actions/list-monitors.d.cts.map +1 -1
  133. package/dist/actions/list-monitors.d.mts +35 -3
  134. package/dist/actions/list-monitors.d.mts.map +1 -1
  135. package/dist/actions/list-monitors.mjs +4 -4
  136. package/dist/actions/list-monitors.mjs.map +1 -1
  137. package/dist/actions/retrieve-event-group.cjs +6 -6
  138. package/dist/actions/retrieve-event-group.cjs.map +1 -1
  139. package/dist/actions/retrieve-event-group.d.cts +26 -3
  140. package/dist/actions/retrieve-event-group.d.cts.map +1 -1
  141. package/dist/actions/retrieve-event-group.d.mts +26 -3
  142. package/dist/actions/retrieve-event-group.d.mts.map +1 -1
  143. package/dist/actions/retrieve-event-group.mjs +6 -6
  144. package/dist/actions/retrieve-event-group.mjs.map +1 -1
  145. package/dist/actions/retrieve-find-all-run-status.cjs +4 -4
  146. package/dist/actions/retrieve-find-all-run-status.cjs.map +1 -1
  147. package/dist/actions/retrieve-find-all-run-status.d.cts +34 -3
  148. package/dist/actions/retrieve-find-all-run-status.d.cts.map +1 -1
  149. package/dist/actions/retrieve-find-all-run-status.d.mts +34 -3
  150. package/dist/actions/retrieve-find-all-run-status.d.mts.map +1 -1
  151. package/dist/actions/retrieve-find-all-run-status.mjs +4 -4
  152. package/dist/actions/retrieve-find-all-run-status.mjs.map +1 -1
  153. package/dist/actions/retrieve-monitor.cjs +4 -4
  154. package/dist/actions/retrieve-monitor.cjs.map +1 -1
  155. package/dist/actions/retrieve-monitor.d.cts +31 -3
  156. package/dist/actions/retrieve-monitor.d.cts.map +1 -1
  157. package/dist/actions/retrieve-monitor.d.mts +31 -3
  158. package/dist/actions/retrieve-monitor.d.mts.map +1 -1
  159. package/dist/actions/retrieve-monitor.mjs +4 -4
  160. package/dist/actions/retrieve-monitor.mjs.map +1 -1
  161. package/dist/actions/retrieve-task-group-run.cjs +7 -7
  162. package/dist/actions/retrieve-task-group-run.cjs.map +1 -1
  163. package/dist/actions/retrieve-task-group-run.d.cts +33 -3
  164. package/dist/actions/retrieve-task-group-run.d.cts.map +1 -1
  165. package/dist/actions/retrieve-task-group-run.d.mts +33 -3
  166. package/dist/actions/retrieve-task-group-run.d.mts.map +1 -1
  167. package/dist/actions/retrieve-task-group-run.mjs +7 -7
  168. package/dist/actions/retrieve-task-group-run.mjs.map +1 -1
  169. package/dist/actions/retrieve-task-group.cjs +5 -5
  170. package/dist/actions/retrieve-task-group.cjs.map +1 -1
  171. package/dist/actions/retrieve-task-group.d.cts +18 -3
  172. package/dist/actions/retrieve-task-group.d.cts.map +1 -1
  173. package/dist/actions/retrieve-task-group.d.mts +18 -3
  174. package/dist/actions/retrieve-task-group.d.mts.map +1 -1
  175. package/dist/actions/retrieve-task-group.mjs +5 -5
  176. package/dist/actions/retrieve-task-group.mjs.map +1 -1
  177. package/dist/actions/retrieve-task-run-input.cjs +1 -1
  178. package/dist/actions/retrieve-task-run-input.cjs.map +1 -1
  179. package/dist/actions/retrieve-task-run-input.d.cts +21 -3
  180. package/dist/actions/retrieve-task-run-input.d.cts.map +1 -1
  181. package/dist/actions/retrieve-task-run-input.d.mts +21 -3
  182. package/dist/actions/retrieve-task-run-input.d.mts.map +1 -1
  183. package/dist/actions/retrieve-task-run-input.mjs +1 -1
  184. package/dist/actions/retrieve-task-run-input.mjs.map +1 -1
  185. package/dist/actions/retrieve-task-run-result.cjs +7 -7
  186. package/dist/actions/retrieve-task-run-result.cjs.map +1 -1
  187. package/dist/actions/retrieve-task-run-result.d.cts +29 -3
  188. package/dist/actions/retrieve-task-run-result.d.cts.map +1 -1
  189. package/dist/actions/retrieve-task-run-result.d.mts +29 -3
  190. package/dist/actions/retrieve-task-run-result.d.mts.map +1 -1
  191. package/dist/actions/retrieve-task-run-result.mjs +7 -7
  192. package/dist/actions/retrieve-task-run-result.mjs.map +1 -1
  193. package/dist/actions/retrieve-task-run.cjs +8 -8
  194. package/dist/actions/retrieve-task-run.cjs.map +1 -1
  195. package/dist/actions/retrieve-task-run.d.cts +35 -3
  196. package/dist/actions/retrieve-task-run.d.cts.map +1 -1
  197. package/dist/actions/retrieve-task-run.d.mts +35 -3
  198. package/dist/actions/retrieve-task-run.d.mts.map +1 -1
  199. package/dist/actions/retrieve-task-run.mjs +8 -8
  200. package/dist/actions/retrieve-task-run.mjs.map +1 -1
  201. package/dist/actions/search.cjs +3 -3
  202. package/dist/actions/search.cjs.map +1 -1
  203. package/dist/actions/search.d.cts +15 -3
  204. package/dist/actions/search.d.cts.map +1 -1
  205. package/dist/actions/search.d.mts +15 -3
  206. package/dist/actions/search.d.mts.map +1 -1
  207. package/dist/actions/search.mjs +3 -3
  208. package/dist/actions/search.mjs.map +1 -1
  209. package/dist/actions/simulate-event.cjs.map +1 -1
  210. package/dist/actions/simulate-event.d.cts +15 -3
  211. package/dist/actions/simulate-event.d.cts.map +1 -1
  212. package/dist/actions/simulate-event.d.mts +15 -3
  213. package/dist/actions/simulate-event.d.mts.map +1 -1
  214. package/dist/actions/simulate-event.mjs.map +1 -1
  215. package/dist/actions/stream-find-all-events.cjs +28 -28
  216. package/dist/actions/stream-find-all-events.cjs.map +1 -1
  217. package/dist/actions/stream-find-all-events.d.cts +104 -3
  218. package/dist/actions/stream-find-all-events.d.cts.map +1 -1
  219. package/dist/actions/stream-find-all-events.d.mts +104 -3
  220. package/dist/actions/stream-find-all-events.d.mts.map +1 -1
  221. package/dist/actions/stream-find-all-events.mjs +28 -28
  222. package/dist/actions/stream-find-all-events.mjs.map +1 -1
  223. package/dist/actions/stream-task-group-events.cjs +17 -17
  224. package/dist/actions/stream-task-group-events.cjs.map +1 -1
  225. package/dist/actions/stream-task-group-events.d.cts +44 -3
  226. package/dist/actions/stream-task-group-events.d.cts.map +1 -1
  227. package/dist/actions/stream-task-group-events.d.mts +44 -3
  228. package/dist/actions/stream-task-group-events.d.mts.map +1 -1
  229. package/dist/actions/stream-task-group-events.mjs +17 -17
  230. package/dist/actions/stream-task-group-events.mjs.map +1 -1
  231. package/dist/actions/stream-task-run-events.cjs +13 -13
  232. package/dist/actions/stream-task-run-events.cjs.map +1 -1
  233. package/dist/actions/stream-task-run-events.d.cts +45 -3
  234. package/dist/actions/stream-task-run-events.d.cts.map +1 -1
  235. package/dist/actions/stream-task-run-events.d.mts +45 -3
  236. package/dist/actions/stream-task-run-events.d.mts.map +1 -1
  237. package/dist/actions/stream-task-run-events.mjs +13 -13
  238. package/dist/actions/stream-task-run-events.mjs.map +1 -1
  239. package/dist/actions/suggest-task.cjs +1 -1
  240. package/dist/actions/suggest-task.cjs.map +1 -1
  241. package/dist/actions/suggest-task.d.cts +12 -3
  242. package/dist/actions/suggest-task.d.cts.map +1 -1
  243. package/dist/actions/suggest-task.d.mts +12 -3
  244. package/dist/actions/suggest-task.d.mts.map +1 -1
  245. package/dist/actions/suggest-task.mjs +1 -1
  246. package/dist/actions/suggest-task.mjs.map +1 -1
  247. package/dist/actions/update-monitor.cjs +4 -4
  248. package/dist/actions/update-monitor.cjs.map +1 -1
  249. package/dist/actions/update-monitor.d.cts +50 -3
  250. package/dist/actions/update-monitor.d.cts.map +1 -1
  251. package/dist/actions/update-monitor.d.mts +50 -3
  252. package/dist/actions/update-monitor.d.mts.map +1 -1
  253. package/dist/actions/update-monitor.mjs +4 -4
  254. package/dist/actions/update-monitor.mjs.map +1 -1
  255. package/dist/catalog.cjs +7 -1
  256. package/dist/catalog.cjs.map +1 -1
  257. package/dist/catalog.d.cts +8 -0
  258. package/dist/catalog.d.mts +8 -0
  259. package/dist/catalog.mjs +7 -1
  260. package/dist/catalog.mjs.map +1 -1
  261. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"extract.mjs","names":[],"sources":["../../src/actions/extract.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelExtractInput: z.ZodTypeAny = z.object({\n urls: z.array(z.string()).describe(\"List of URLs to extract content from\"),\n excerpts: z.union([z.boolean(), z.object({\n max_chars_total: z.number().int().nullable().optional(),\n max_chars_per_result: z.number().int().nullable().optional(),\n}).describe(\"Settings for excerpt extraction.\")]).optional(),\n objective: z.string().describe(\"If provided, focuses extracted content on the specified search objective\").optional(),\n fetch_policy: z.object({\n max_age_seconds: z.number().int().describe(\"Maximum age in seconds for cached content to be considered valid\").optional(),\n timeout_seconds: z.number().int().describe(\"Timeout in seconds for fetching live content\").optional(),\n disable_cache_fallback: z.boolean().describe(\"If true, disables fallback to cached content when live fetch fails\").optional(),\n}).describe(\"Fetch policy configuration for cache and timeout settings.\").optional(),\n full_content: z.union([z.boolean(), z.object({\n max_chars_per_result: z.number().int().nullable().optional(),\n}).describe(\"Settings for full content extraction.\")]).optional(),\n search_queries: z.array(z.string()).describe(\"If provided, focuses extracted content on the specified keyword search queries\").optional(),\n}).describe(\"Request model for extracting content from URLs.\");\nconst ParallelExtract_UsageItemSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"SKU identifier (e.g., sku_extract_excerpts)\"),\n count: z.number().int().describe(\"Quantity consumed\"),\n}).describe(\"Usage metrics for a single SKU.\");\nconst ParallelExtract_ExtractErrorSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"The URL that failed to extract\"),\n content: z.string().describe(\"Error details from server responses\").nullable().optional(),\n error_type: z.string().describe(\"Type of error that occurred\"),\n http_status_code: z.number().int().describe(\"HTTP status code if applicable\").nullable().optional(),\n}).describe(\"Extract error details for a failed URL.\");\nconst ParallelExtract_ExtractResultSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"The URL that was extracted\"),\n title: z.string().describe(\"Title of the web page\").nullable().optional(),\n excerpts: z.array(z.string()).describe(\"Relevant excerpts from the URL\").nullable().optional(),\n full_content: z.string().describe(\"Full content from the URL\").nullable().optional(),\n publish_date: z.string().describe(\"Publication date of the content\").nullable().optional(),\n}).describe(\"Extract result for a single URL.\");\nconst ParallelExtract_WarningTypeSchema: z.ZodTypeAny = z.enum([\"spec_validation_warning\", \"input_validation_warning\", \"warning\"]).describe(\"Type of warning returned by the extract API.\");\nconst ParallelExtract_WarningSchema: z.ZodTypeAny = z.object({\n type: ParallelExtract_WarningTypeSchema.nullable(),\n detail: z.record(z.string(), z.unknown()).describe(\"Supporting context as key-value pairs\").nullable().optional(),\n message: z.string().describe(\"Human-readable warning message\"),\n}).describe(\"Warning message from the extract API.\");\nexport const ParallelExtractOutput: z.ZodTypeAny = z.object({\n usage: z.array(ParallelExtract_UsageItemSchema).describe(\"Usage metrics for the extract request\").nullable().optional(),\n errors: z.array(ParallelExtract_ExtractErrorSchema).describe(\"Extract errors: requested URLs not in the results\"),\n results: z.array(ParallelExtract_ExtractResultSchema).describe(\"Successful extract results\"),\n warnings: z.array(ParallelExtract_WarningSchema).describe(\"Warnings for the extract request, if any\").nullable().optional(),\n extract_id: z.string().describe(\"Extract request ID, e.g. extract_cad0a6d2dec046bd95ae900527d880e7\"),\n}).describe(\"Response model for extract operation.\");\n\nexport const parallelExtract = action(\"PARALLEL_EXTRACT\", {\n slug: \"parallel-extract\",\n name: \"Extract Content from URLs\",\n description: \"Tool to extract relevant content from specific web URLs. Use when you need to fetch and extract content from known URLs with optional focusing on specific objectives or search queries.\",\n input: ParallelExtractInput,\n output: ParallelExtractOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqC,EAAE,OAAO;CACzD,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sCAAsC;CACzE,UAAU,EAAE,MAAM,CAAC,EAAE,QAAQ,GAAG,EAAE,OAAO;EACzC,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtD,sBAAsB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7D,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,CAAC,CAAC,SAAS;CACzD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACpH,cAAc,EAAE,OAAO;EACvB,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EACxH,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,C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src/actions/extract.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelExtractInput = z.object({\n urls: z.array(z.string()).describe(\"List of URLs to extract content from\"),\n excerpts: z.union([z.boolean(), z.object({\n max_chars_total: z.number().int().nullable().optional(),\n max_chars_per_result: z.number().int().nullable().optional(),\n}).describe(\"Settings for excerpt extraction.\")]).optional(),\n objective: z.string().describe(\"If provided, focuses extracted content on the specified search objective\").optional(),\n fetch_policy: z.object({\n max_age_seconds: z.number().int().describe(\"Maximum age in seconds for cached content to be considered valid\").optional(),\n timeout_seconds: z.number().int().describe(\"Timeout in seconds for fetching live content\").optional(),\n disable_cache_fallback: z.boolean().describe(\"If true, disables fallback to cached content when live fetch fails\").optional(),\n}).describe(\"Fetch policy configuration for cache and timeout settings.\").optional(),\n full_content: z.union([z.boolean(), z.object({\n max_chars_per_result: z.number().int().nullable().optional(),\n}).describe(\"Settings for full content extraction.\")]).optional(),\n search_queries: z.array(z.string()).describe(\"If provided, focuses extracted content on the specified keyword search queries\").optional(),\n}).describe(\"Request model for extracting content from URLs.\");\nconst ParallelExtract_UsageItemSchema = z.object({\n name: z.string().describe(\"SKU identifier (e.g., sku_extract_excerpts)\").nullable(),\n count: z.number().int().describe(\"Quantity consumed\").nullable(),\n}).describe(\"Usage metrics for a single SKU.\");\nconst ParallelExtract_ExtractErrorSchema = z.object({\n url: z.string().describe(\"The URL that failed to extract\").nullable(),\n content: z.string().describe(\"Error details from server responses\").nullable().optional(),\n error_type: z.string().describe(\"Type of error that occurred\").nullable(),\n http_status_code: z.number().int().describe(\"HTTP status code if applicable\").nullable().optional(),\n}).describe(\"Extract error details for a failed URL.\");\nconst ParallelExtract_ExtractResultSchema = z.object({\n url: z.string().describe(\"The URL that was extracted\").nullable(),\n title: z.string().describe(\"Title of the web page\").nullable().optional(),\n excerpts: z.array(z.string()).describe(\"Relevant excerpts from the URL\").nullable().optional(),\n full_content: z.string().describe(\"Full content from the URL\").nullable().optional(),\n publish_date: z.string().describe(\"Publication date of the content\").nullable().optional(),\n}).describe(\"Extract result for a single URL.\");\nconst ParallelExtract_WarningTypeSchema = z.enum([\"spec_validation_warning\", \"input_validation_warning\", \"warning\"]).describe(\"Type of warning returned by the extract API.\");\nconst ParallelExtract_WarningSchema = z.object({\n type: ParallelExtract_WarningTypeSchema.nullable(),\n detail: z.record(z.string(), z.unknown()).describe(\"Supporting context as key-value pairs\").nullable().optional(),\n message: z.string().describe(\"Human-readable warning message\").nullable(),\n}).describe(\"Warning message from the extract API.\");\nexport const ParallelExtractOutput = z.object({\n usage: z.array(ParallelExtract_UsageItemSchema).describe(\"Usage metrics for the extract request\").nullable().optional(),\n errors: z.array(ParallelExtract_ExtractErrorSchema).describe(\"Extract errors: requested URLs not in the results\"),\n results: z.array(ParallelExtract_ExtractResultSchema).describe(\"Successful extract results\"),\n warnings: z.array(ParallelExtract_WarningSchema).describe(\"Warnings for the extract request, if any\").nullable().optional(),\n extract_id: z.string().describe(\"Extract request ID, e.g. extract_cad0a6d2dec046bd95ae900527d880e7\").nullable(),\n}).describe(\"Response model for extract operation.\");\n\nexport const parallelExtract = action(\"PARALLEL_EXTRACT\", {\n slug: \"parallel-extract\",\n name: \"Extract Content from URLs\",\n description: \"Tool to extract relevant content from specific web URLs. Use when you need to fetch and extract content from known URLs with optional focusing on specific objectives or search queries.\",\n input: ParallelExtractInput,\n output: ParallelExtractOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuB,EAAE,OAAO;CAC3C,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sCAAsC;CACzE,UAAU,EAAE,MAAM,CAAC,EAAE,QAAQ,GAAG,EAAE,OAAO;EACzC,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtD,sBAAsB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7D,CAAC,CAA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,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtH,QAAQ,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,mDAAmD;EAChH,SAAS,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,4BAA4B;EAC3F,UAAU,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAChH,CAAC,CAAC,CAAC,SAAS,uCAOF;AACV,CAAC"}
@@ -10,17 +10,17 @@ const ParallelFetchTaskGroupRunsInput = zod.z.object({
10
10
  }).describe("Request model for fetching task runs from a Task Group.");
11
11
  const ParallelFetchTaskGroupRuns_ErrorSchema = zod.z.object({
12
12
  detail: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional details about the error").nullable().optional(),
13
- ref_id: zod.z.string().describe("Reference ID for the error"),
14
- message: zod.z.string().describe("Human-readable error message")
13
+ ref_id: zod.z.string().describe("Reference ID for the error").nullable(),
14
+ message: zod.z.string().describe("Human-readable error message").nullable()
15
15
  }).describe("Error associated with a task run.");
16
16
  const ParallelFetchTaskGroupRuns_WarningSchema = zod.z.object({
17
17
  detail: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional details about the warning").nullable().optional(),
18
- ref_id: zod.z.string().describe("Reference ID for the warning"),
19
- message: zod.z.string().describe("Human-readable warning message")
18
+ ref_id: zod.z.string().describe("Reference ID for the warning").nullable(),
19
+ message: zod.z.string().describe("Human-readable warning message").nullable()
20
20
  }).describe("Warning associated with a task run.");
21
21
  const ParallelFetchTaskGroupRuns_TaskRunSchema = zod.z.object({
22
22
  error: ParallelFetchTaskGroupRuns_ErrorSchema.nullable().optional(),
23
- run_id: zod.z.string().describe("Unique identifier of the task run"),
23
+ run_id: zod.z.string().describe("Unique identifier of the task run").nullable(),
24
24
  status: zod.z.enum([
25
25
  "queued",
26
26
  "action_required",
@@ -29,15 +29,15 @@ const ParallelFetchTaskGroupRuns_TaskRunSchema = zod.z.object({
29
29
  "failed",
30
30
  "cancelling",
31
31
  "cancelled"
32
- ]).describe("Current status of the task run"),
32
+ ]).describe("Current status of the task run").nullable(),
33
33
  metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom metadata for the run").nullable().optional(),
34
34
  warnings: zod.z.array(ParallelFetchTaskGroupRuns_WarningSchema).describe("List of warnings associated with the run").nullable().optional(),
35
- is_active: zod.z.boolean().describe("Whether the task run is actively processing"),
36
- processor: zod.z.string().describe("Processor used for the task run"),
37
- created_at: zod.z.string().describe("RFC 3339 timestamp when the task run was created"),
38
- modified_at: zod.z.string().describe("RFC 3339 timestamp of last modification"),
35
+ is_active: zod.z.boolean().describe("Whether the task run is actively processing").nullable(),
36
+ processor: zod.z.string().describe("Processor used for the task run").nullable(),
37
+ created_at: zod.z.string().describe("RFC 3339 timestamp when the task run was created").nullable(),
38
+ modified_at: zod.z.string().describe("RFC 3339 timestamp of last modification").nullable(),
39
39
  taskgroup_id: zod.z.string().describe("ID of the Task Group this run belongs to").nullable().optional(),
40
- interaction_id: zod.z.string().describe("Identifier linking this run to an interaction")
40
+ interaction_id: zod.z.string().describe("Identifier linking this run to an interaction").nullable()
41
41
  }).describe("Task run metadata object.");
42
42
  const ParallelFetchTaskGroupRuns_BetaTaskRunInputSchema = zod.z.object({
43
43
  query: zod.z.string().describe("Query text for the task").nullable().optional(),
@@ -50,33 +50,33 @@ const ParallelFetchTaskGroupRuns_CitationSchema = zod.z.object({
50
50
  excerpt: zod.z.string().describe("Excerpt from the cited source").nullable().optional()
51
51
  }).describe("Supporting citation for a field value.");
52
52
  const ParallelFetchTaskGroupRuns_FieldBasisSchema = zod.z.object({
53
- field: zod.z.string().describe("Output field name"),
53
+ field: zod.z.string().describe("Output field name").nullable(),
54
54
  citations: zod.z.array(ParallelFetchTaskGroupRuns_CitationSchema).describe("Supporting sources").nullable().optional(),
55
- reasoning: zod.z.string().describe("Explanation for the field value"),
55
+ reasoning: zod.z.string().describe("Explanation for the field value").nullable(),
56
56
  confidence: zod.z.string().describe("Confidence level (if available from processor)").nullable().optional()
57
57
  }).describe("Supporting citations and reasoning for an output field.");
58
58
  const ParallelFetchTaskGroupRuns_TaskRunJsonOutputSchema = zod.z.object({
59
- type: zod.z.string().describe("Output type discriminator"),
59
+ type: zod.z.string().describe("Output type discriminator").nullable(),
60
60
  basis: zod.z.array(ParallelFetchTaskGroupRuns_FieldBasisSchema).describe("Citations, reasoning, and confidence per field").nullable().optional(),
61
61
  content: zod.z.record(zod.z.string(), zod.z.unknown()).describe("JSON object matching the output schema"),
62
62
  beta_fields: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional beta fields").nullable().optional(),
63
63
  output_schema: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Schema used for the output").nullable().optional()
64
64
  }).describe("JSON output from a task run.");
65
65
  const ParallelFetchTaskGroupRuns_TaskRunTextOutputSchema = zod.z.object({
66
- type: zod.z.string().describe("Output type discriminator"),
66
+ type: zod.z.string().describe("Output type discriminator").nullable(),
67
67
  basis: zod.z.array(ParallelFetchTaskGroupRuns_FieldBasisSchema).describe("Citations and reasoning for the output").nullable().optional(),
68
- content: zod.z.string().describe("Text content of the output"),
68
+ content: zod.z.string().describe("Text content of the output").nullable(),
69
69
  beta_fields: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional beta fields").nullable().optional()
70
70
  }).describe("Text output from a task run.");
71
71
  const ParallelFetchTaskGroupRuns_TaskRunStateEventSchema = zod.z.object({
72
72
  run: ParallelFetchTaskGroupRuns_TaskRunSchema.nullable(),
73
- type: zod.z.string().describe("Event type"),
73
+ type: zod.z.string().describe("Event type").nullable(),
74
74
  input: ParallelFetchTaskGroupRuns_BetaTaskRunInputSchema.nullable().optional(),
75
75
  output: zod.z.union([ParallelFetchTaskGroupRuns_TaskRunJsonOutputSchema, ParallelFetchTaskGroupRuns_TaskRunTextOutputSchema]).nullable().optional(),
76
76
  event_id: zod.z.string().describe("Unique identifier for the event").nullable().optional()
77
77
  }).describe("Event containing a task run state update.");
78
78
  const ParallelFetchTaskGroupRuns_ErrorEventSchema = zod.z.object({
79
- type: zod.z.string().describe("Event type"),
79
+ type: zod.z.string().describe("Event type").nullable(),
80
80
  error: ParallelFetchTaskGroupRuns_ErrorSchema.nullable()
81
81
  }).describe("Event indicating an error occurred.");
82
82
  const ParallelFetchTaskGroupRunsOutput = zod.z.object({ events: zod.z.array(zod.z.union([ParallelFetchTaskGroupRuns_TaskRunStateEventSchema, ParallelFetchTaskGroupRuns_ErrorEventSchema])).describe("List of task run events received from the stream") }).describe("Response model containing list of task run events from the Task Group.");
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-task-group-runs.cjs","names":["z","action"],"sources":["../../src/actions/fetch-task-group-runs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelFetchTaskGroupRunsInput: z.ZodTypeAny = z.object({\n status: z.string().describe(\"Filter runs by status (e.g., queued, running, completed, failed, cancelled).\").optional(),\n taskgroup_id: z.string().describe(\"Unique identifier of the Task Group to fetch runs from.\"),\n include_input: z.boolean().default(false).describe(\"Whether to include task run inputs in the response. Default is False.\").optional(),\n last_event_id: z.string().describe(\"ID of the last received event to resume streaming from. Used as cursor for pagination.\").optional(),\n include_output: z.boolean().default(false).describe(\"Whether to include task run outputs in the response. Default is False.\").optional(),\n}).describe(\"Request model for fetching task runs from a Task Group.\");\nconst ParallelFetchTaskGroupRuns_ErrorSchema: z.ZodTypeAny = z.object({\n detail: z.record(z.string(), z.unknown()).describe(\"Additional details about the error\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the error\"),\n message: z.string().describe(\"Human-readable error message\"),\n}).describe(\"Error associated with a task run.\");\nconst ParallelFetchTaskGroupRuns_WarningSchema: z.ZodTypeAny = z.object({\n detail: z.record(z.string(), z.unknown()).describe(\"Additional details about the warning\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the warning\"),\n message: z.string().describe(\"Human-readable warning message\"),\n}).describe(\"Warning associated with a task run.\");\nconst ParallelFetchTaskGroupRuns_TaskRunSchema: z.ZodTypeAny = z.object({\n error: ParallelFetchTaskGroupRuns_ErrorSchema.nullable().optional(),\n run_id: z.string().describe(\"Unique identifier of the task run\"),\n status: z.enum([\"queued\", \"action_required\", \"running\", \"completed\", \"failed\", \"cancelling\", \"cancelled\"]).describe(\"Current status of the task run\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata for the run\").nullable().optional(),\n warnings: z.array(ParallelFetchTaskGroupRuns_WarningSchema).describe(\"List of warnings associated with the run\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the task run is actively processing\"),\n processor: z.string().describe(\"Processor used for the task run\"),\n created_at: z.string().describe(\"RFC 3339 timestamp when the task run was created\"),\n modified_at: z.string().describe(\"RFC 3339 timestamp of last modification\"),\n taskgroup_id: z.string().describe(\"ID of the Task Group this run belongs to\").nullable().optional(),\n interaction_id: z.string().describe(\"Identifier linking this run to an interaction\"),\n}).describe(\"Task run metadata object.\");\nconst ParallelFetchTaskGroupRuns_BetaTaskRunInputSchema: z.ZodTypeAny = z.object({\n query: z.string().describe(\"Query text for the task\").nullable().optional(),\n documents: z.array(z.record(z.string(), z.unknown())).describe(\"Documents provided as input\").nullable().optional(),\n beta_fields: z.record(z.string(), z.unknown()).describe(\"Additional beta fields\").nullable().optional(),\n}).describe(\"Input provided to a task run.\");\nconst ParallelFetchTaskGroupRuns_CitationSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the cited source\").nullable().optional(),\n title: z.string().describe(\"Title of the cited source\").nullable().optional(),\n excerpt: z.string().describe(\"Excerpt from the cited source\").nullable().optional(),\n}).describe(\"Supporting citation for a field value.\");\nconst ParallelFetchTaskGroupRuns_FieldBasisSchema: z.ZodTypeAny = z.object({\n field: z.string().describe(\"Output field name\"),\n citations: z.array(ParallelFetchTaskGroupRuns_CitationSchema).describe(\"Supporting sources\").nullable().optional(),\n reasoning: z.string().describe(\"Explanation for the field value\"),\n confidence: z.string().describe(\"Confidence level (if available from processor)\").nullable().optional(),\n}).describe(\"Supporting citations and reasoning for an output field.\");\nconst ParallelFetchTaskGroupRuns_TaskRunJsonOutputSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Output type discriminator\"),\n basis: z.array(ParallelFetchTaskGroupRuns_FieldBasisSchema).describe(\"Citations, reasoning, and confidence per field\").nullable().optional(),\n content: z.record(z.string(), z.unknown()).describe(\"JSON object matching the output schema\"),\n beta_fields: z.record(z.string(), z.unknown()).describe(\"Additional beta fields\").nullable().optional(),\n output_schema: z.record(z.string(), z.unknown()).describe(\"Schema used for the output\").nullable().optional(),\n}).describe(\"JSON output from a task run.\");\nconst ParallelFetchTaskGroupRuns_TaskRunTextOutputSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Output type discriminator\"),\n basis: z.array(ParallelFetchTaskGroupRuns_FieldBasisSchema).describe(\"Citations and reasoning for the output\").nullable().optional(),\n content: z.string().describe(\"Text content of the output\"),\n beta_fields: z.record(z.string(), z.unknown()).describe(\"Additional beta fields\").nullable().optional(),\n}).describe(\"Text output from a task run.\");\nconst ParallelFetchTaskGroupRuns_TaskRunStateEventSchema: z.ZodTypeAny = z.object({\n run: ParallelFetchTaskGroupRuns_TaskRunSchema.nullable(),\n type: z.string().describe(\"Event type\"),\n input: ParallelFetchTaskGroupRuns_BetaTaskRunInputSchema.nullable().optional(),\n output: z.union([ParallelFetchTaskGroupRuns_TaskRunJsonOutputSchema, ParallelFetchTaskGroupRuns_TaskRunTextOutputSchema]).nullable().optional(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable().optional(),\n}).describe(\"Event containing a task run state update.\");\nconst ParallelFetchTaskGroupRuns_ErrorEventSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Event type\"),\n error: ParallelFetchTaskGroupRuns_ErrorSchema.nullable(),\n}).describe(\"Event indicating an error occurred.\");\nexport const ParallelFetchTaskGroupRunsOutput: z.ZodTypeAny = z.object({\n events: z.array(z.union([ParallelFetchTaskGroupRuns_TaskRunStateEventSchema, ParallelFetchTaskGroupRuns_ErrorEventSchema])).describe(\"List of task run events received from the stream\"),\n}).describe(\"Response model containing list of task run events from the Task Group.\");\n\nexport const parallelFetchTaskGroupRuns = action(\"PARALLEL_FETCH_TASK_GROUP_RUNS\", {\n slug: \"parallel-fetch-task-group-runs\",\n name: \"Fetch Task Group Runs\",\n description: \"Tool to retrieve task runs from a Task Group as a resumable stream. Use when you need to fetch all runs within a group, optionally including their inputs and outputs. The stream can be resumed using the event_id as a cursor.\",\n input: ParallelFetchTaskGroupRunsInput,\n output: ParallelFetchTaskGroupRunsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACrH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAC3F,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CACrI,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACtI,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;AACzI,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,yCAAuDA,IAAAA,EAAE,OAAO;CACpE,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC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S,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,SAAS,8BAA8B;AAC1C,MAAM,qDAAmEA,IAAAA,EAAE,OAAO;CAChF,KAAK,yCAAyC,SAAS;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY;CACtC,OAAO,kDAAkD,SAAS,CAAC,CAAC,SAAS;CAC7E,QAAQA,IAAAA,EAAE,MAAM,CAAC,oDAAoD,kDAAkD,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAM,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY;CACtC,OAAO,uCAAuC,SAAS;AACzD,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAa,mCAAiDA,IAAAA,EAAE,OAAO,EACrE,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM,CAAC,oDAAoD,2CAA2C,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD,EACzL,CAAC,CAAC,CAAC,SAAS,wEAAwE;AAEpF,MAAa,6BAA6BC,eAAAA,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"fetch-task-group-runs.cjs","names":["z","action"],"sources":["../../src/actions/fetch-task-group-runs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelFetchTaskGroupRunsInput = z.object({\n status: z.string().describe(\"Filter runs by status (e.g., queued, running, completed, failed, cancelled).\").optional(),\n taskgroup_id: z.string().describe(\"Unique identifier of the Task Group to fetch runs from.\"),\n include_input: z.boolean().default(false).describe(\"Whether to include task run inputs in the response. Default is False.\").optional(),\n last_event_id: z.string().describe(\"ID of the last received event to resume streaming from. Used as cursor for pagination.\").optional(),\n include_output: z.boolean().default(false).describe(\"Whether to include task run outputs in the response. Default is False.\").optional(),\n}).describe(\"Request model for fetching task runs from a Task Group.\");\nconst ParallelFetchTaskGroupRuns_ErrorSchema = z.object({\n detail: z.record(z.string(), z.unknown()).describe(\"Additional details about the error\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the error\").nullable(),\n message: z.string().describe(\"Human-readable error message\").nullable(),\n}).describe(\"Error associated with a task run.\");\nconst ParallelFetchTaskGroupRuns_WarningSchema = z.object({\n detail: z.record(z.string(), z.unknown()).describe(\"Additional details about the warning\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the warning\").nullable(),\n message: z.string().describe(\"Human-readable warning message\").nullable(),\n}).describe(\"Warning associated with a task run.\");\nconst ParallelFetchTaskGroupRuns_TaskRunSchema = z.object({\n error: ParallelFetchTaskGroupRuns_ErrorSchema.nullable().optional(),\n run_id: z.string().describe(\"Unique identifier of the task run\").nullable(),\n status: z.enum([\"queued\", \"action_required\", \"running\", \"completed\", \"failed\", \"cancelling\", \"cancelled\"]).describe(\"Current status of the task run\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata for the run\").nullable().optional(),\n warnings: z.array(ParallelFetchTaskGroupRuns_WarningSchema).describe(\"List of warnings associated with the run\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the task run is actively processing\").nullable(),\n processor: z.string().describe(\"Processor used for the task run\").nullable(),\n created_at: z.string().describe(\"RFC 3339 timestamp when the task run was created\").nullable(),\n modified_at: z.string().describe(\"RFC 3339 timestamp of last modification\").nullable(),\n taskgroup_id: z.string().describe(\"ID of the Task Group this run belongs to\").nullable().optional(),\n interaction_id: z.string().describe(\"Identifier linking this run to an interaction\").nullable(),\n}).describe(\"Task run metadata object.\");\nconst ParallelFetchTaskGroupRuns_BetaTaskRunInputSchema = z.object({\n query: z.string().describe(\"Query text for the task\").nullable().optional(),\n documents: z.array(z.record(z.string(), z.unknown())).describe(\"Documents provided as input\").nullable().optional(),\n beta_fields: z.record(z.string(), z.unknown()).describe(\"Additional beta fields\").nullable().optional(),\n}).describe(\"Input provided to a task run.\");\nconst ParallelFetchTaskGroupRuns_CitationSchema = z.object({\n url: z.string().describe(\"URL of the cited source\").nullable().optional(),\n title: z.string().describe(\"Title of the cited source\").nullable().optional(),\n excerpt: z.string().describe(\"Excerpt from the cited source\").nullable().optional(),\n}).describe(\"Supporting citation for a field value.\");\nconst ParallelFetchTaskGroupRuns_FieldBasisSchema = z.object({\n field: z.string().describe(\"Output field name\").nullable(),\n citations: z.array(ParallelFetchTaskGroupRuns_CitationSchema).describe(\"Supporting sources\").nullable().optional(),\n reasoning: z.string().describe(\"Explanation for the field value\").nullable(),\n confidence: z.string().describe(\"Confidence level (if available from processor)\").nullable().optional(),\n}).describe(\"Supporting citations and reasoning for an output field.\");\nconst ParallelFetchTaskGroupRuns_TaskRunJsonOutputSchema = z.object({\n type: z.string().describe(\"Output type discriminator\").nullable(),\n basis: z.array(ParallelFetchTaskGroupRuns_FieldBasisSchema).describe(\"Citations, reasoning, and confidence per field\").nullable().optional(),\n content: z.record(z.string(), z.unknown()).describe(\"JSON object matching the output schema\"),\n beta_fields: z.record(z.string(), z.unknown()).describe(\"Additional beta fields\").nullable().optional(),\n output_schema: z.record(z.string(), z.unknown()).describe(\"Schema used for the output\").nullable().optional(),\n}).describe(\"JSON output from a task run.\");\nconst ParallelFetchTaskGroupRuns_TaskRunTextOutputSchema = z.object({\n type: z.string().describe(\"Output type discriminator\").nullable(),\n basis: z.array(ParallelFetchTaskGroupRuns_FieldBasisSchema).describe(\"Citations and reasoning for the output\").nullable().optional(),\n content: z.string().describe(\"Text content of the output\").nullable(),\n beta_fields: z.record(z.string(), z.unknown()).describe(\"Additional beta fields\").nullable().optional(),\n}).describe(\"Text output from a task run.\");\nconst ParallelFetchTaskGroupRuns_TaskRunStateEventSchema = z.object({\n run: ParallelFetchTaskGroupRuns_TaskRunSchema.nullable(),\n type: z.string().describe(\"Event type\").nullable(),\n input: ParallelFetchTaskGroupRuns_BetaTaskRunInputSchema.nullable().optional(),\n output: z.union([ParallelFetchTaskGroupRuns_TaskRunJsonOutputSchema, ParallelFetchTaskGroupRuns_TaskRunTextOutputSchema]).nullable().optional(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable().optional(),\n}).describe(\"Event containing a task run state update.\");\nconst ParallelFetchTaskGroupRuns_ErrorEventSchema = z.object({\n type: z.string().describe(\"Event type\").nullable(),\n error: ParallelFetchTaskGroupRuns_ErrorSchema.nullable(),\n}).describe(\"Event indicating an error occurred.\");\nexport const ParallelFetchTaskGroupRunsOutput = z.object({\n events: z.array(z.union([ParallelFetchTaskGroupRuns_TaskRunStateEventSchema, ParallelFetchTaskGroupRuns_ErrorEventSchema])).describe(\"List of task run events received from the stream\"),\n}).describe(\"Response model containing list of task run events from the Task Group.\");\n\nexport const parallelFetchTaskGroupRuns = action(\"PARALLEL_FETCH_TASK_GROUP_RUNS\", {\n slug: \"parallel-fetch-task-group-runs\",\n name: \"Fetch Task Group Runs\",\n description: \"Tool to retrieve task runs from a Task Group as a resumable stream. Use when you need to fetch all runs within a group, optionally including their inputs and outputs. The stream can be resumed using the event_id as a cursor.\",\n input: ParallelFetchTaskGroupRunsInput,\n output: ParallelFetchTaskGroupRunsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACrH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAC3F,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CACrI,eAAeA,IAAAA,EAAE,OAAO,CA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CA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CACjD,OAAO,uCAAuC,SAAS;AACzD,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM,CAAC,oDAAoD,2CAA2C,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD,EACzL,CAAC,CAAC,CAAC,SAAS,wEAAwE;AAEpF,MAAa,6BAA6BC,eAAAA,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,97 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/fetch-task-group-runs.d.ts
4
- declare const ParallelFetchTaskGroupRunsInput: z.ZodTypeAny;
5
- declare const ParallelFetchTaskGroupRunsOutput: z.ZodTypeAny;
6
- declare const parallelFetchTaskGroupRuns: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ParallelFetchTaskGroupRunsInput: z.ZodObject<{
5
+ status: z.ZodOptional<z.ZodString>;
6
+ taskgroup_id: z.ZodString;
7
+ include_input: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
8
+ last_event_id: z.ZodOptional<z.ZodString>;
9
+ include_output: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
10
+ }, z.core.$strip>;
11
+ declare const ParallelFetchTaskGroupRunsOutput: z.ZodObject<{
12
+ events: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
13
+ run: z.ZodNullable<z.ZodObject<{
14
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
15
+ detail: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
16
+ ref_id: z.ZodNullable<z.ZodString>;
17
+ message: z.ZodNullable<z.ZodString>;
18
+ }, z.core.$strip>>>;
19
+ run_id: z.ZodNullable<z.ZodString>;
20
+ status: z.ZodNullable<z.ZodEnum<{
21
+ queued: "queued";
22
+ running: "running";
23
+ completed: "completed";
24
+ failed: "failed";
25
+ cancelled: "cancelled";
26
+ action_required: "action_required";
27
+ cancelling: "cancelling";
28
+ }>>;
29
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
30
+ warnings: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
31
+ detail: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
32
+ ref_id: z.ZodNullable<z.ZodString>;
33
+ message: z.ZodNullable<z.ZodString>;
34
+ }, z.core.$strip>>>>;
35
+ is_active: z.ZodNullable<z.ZodBoolean>;
36
+ processor: z.ZodNullable<z.ZodString>;
37
+ created_at: z.ZodNullable<z.ZodString>;
38
+ modified_at: z.ZodNullable<z.ZodString>;
39
+ taskgroup_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ interaction_id: z.ZodNullable<z.ZodString>;
41
+ }, z.core.$strip>>;
42
+ type: z.ZodNullable<z.ZodString>;
43
+ input: z.ZodOptional<z.ZodNullable<z.ZodObject<{
44
+ query: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ documents: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
46
+ beta_fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
47
+ }, z.core.$strip>>>;
48
+ output: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
49
+ type: z.ZodNullable<z.ZodString>;
50
+ basis: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
51
+ field: z.ZodNullable<z.ZodString>;
52
+ citations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
53
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ excerpt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
+ }, z.core.$strip>>>>;
57
+ reasoning: z.ZodNullable<z.ZodString>;
58
+ confidence: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
+ }, z.core.$strip>>>>;
60
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
61
+ beta_fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
62
+ output_schema: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
63
+ }, z.core.$strip>, z.ZodObject<{
64
+ type: z.ZodNullable<z.ZodString>;
65
+ basis: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
66
+ field: z.ZodNullable<z.ZodString>;
67
+ citations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
68
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
+ excerpt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
+ }, z.core.$strip>>>>;
72
+ reasoning: z.ZodNullable<z.ZodString>;
73
+ confidence: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74
+ }, z.core.$strip>>>>;
75
+ content: z.ZodNullable<z.ZodString>;
76
+ beta_fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
77
+ }, z.core.$strip>]>>>;
78
+ event_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
+ }, z.core.$strip>, z.ZodObject<{
80
+ type: z.ZodNullable<z.ZodString>;
81
+ error: z.ZodNullable<z.ZodObject<{
82
+ detail: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
83
+ ref_id: z.ZodNullable<z.ZodString>;
84
+ message: z.ZodNullable<z.ZodString>;
85
+ }, z.core.$strip>>;
86
+ }, z.core.$strip>]>>;
87
+ }, z.core.$strip>;
88
+ declare const parallelFetchTaskGroupRuns: import("@keystrokehq/action").WorkflowActionDefinition<{
89
+ taskgroup_id: string;
90
+ status?: string | undefined;
91
+ include_input?: boolean | undefined;
92
+ last_event_id?: string | undefined;
93
+ include_output?: boolean | undefined;
94
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
95
  //#endregion
8
96
  export { parallelFetchTaskGroupRuns };
9
97
  //# sourceMappingURL=fetch-task-group-runs.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-task-group-runs.d.cts","names":[],"sources":["../../src/actions/fetch-task-group-runs.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAMsB;AAAA,cAgEzD,gCAAA,EAAkC,CAAA,CAAE,UAEoC;AAAA,cAExE,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"fetch-task-group-runs.d.cts","names":[],"sources":["../../src/actions/fetch-task-group-runs.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;cAsE/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIhC,0BAAA,gCAA0B,wBAAA"}
@@ -1,9 +1,97 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/fetch-task-group-runs.d.ts
4
- declare const ParallelFetchTaskGroupRunsInput: z.ZodTypeAny;
5
- declare const ParallelFetchTaskGroupRunsOutput: z.ZodTypeAny;
6
- declare const parallelFetchTaskGroupRuns: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ParallelFetchTaskGroupRunsInput: z.ZodObject<{
5
+ status: z.ZodOptional<z.ZodString>;
6
+ taskgroup_id: z.ZodString;
7
+ include_input: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
8
+ last_event_id: z.ZodOptional<z.ZodString>;
9
+ include_output: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
10
+ }, z.core.$strip>;
11
+ declare const ParallelFetchTaskGroupRunsOutput: z.ZodObject<{
12
+ events: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
13
+ run: z.ZodNullable<z.ZodObject<{
14
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
15
+ detail: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
16
+ ref_id: z.ZodNullable<z.ZodString>;
17
+ message: z.ZodNullable<z.ZodString>;
18
+ }, z.core.$strip>>>;
19
+ run_id: z.ZodNullable<z.ZodString>;
20
+ status: z.ZodNullable<z.ZodEnum<{
21
+ queued: "queued";
22
+ running: "running";
23
+ completed: "completed";
24
+ failed: "failed";
25
+ cancelled: "cancelled";
26
+ action_required: "action_required";
27
+ cancelling: "cancelling";
28
+ }>>;
29
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
30
+ warnings: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
31
+ detail: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
32
+ ref_id: z.ZodNullable<z.ZodString>;
33
+ message: z.ZodNullable<z.ZodString>;
34
+ }, z.core.$strip>>>>;
35
+ is_active: z.ZodNullable<z.ZodBoolean>;
36
+ processor: z.ZodNullable<z.ZodString>;
37
+ created_at: z.ZodNullable<z.ZodString>;
38
+ modified_at: z.ZodNullable<z.ZodString>;
39
+ taskgroup_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ interaction_id: z.ZodNullable<z.ZodString>;
41
+ }, z.core.$strip>>;
42
+ type: z.ZodNullable<z.ZodString>;
43
+ input: z.ZodOptional<z.ZodNullable<z.ZodObject<{
44
+ query: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ documents: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
46
+ beta_fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
47
+ }, z.core.$strip>>>;
48
+ output: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
49
+ type: z.ZodNullable<z.ZodString>;
50
+ basis: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
51
+ field: z.ZodNullable<z.ZodString>;
52
+ citations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
53
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ excerpt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
+ }, z.core.$strip>>>>;
57
+ reasoning: z.ZodNullable<z.ZodString>;
58
+ confidence: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
+ }, z.core.$strip>>>>;
60
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
61
+ beta_fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
62
+ output_schema: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
63
+ }, z.core.$strip>, z.ZodObject<{
64
+ type: z.ZodNullable<z.ZodString>;
65
+ basis: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
66
+ field: z.ZodNullable<z.ZodString>;
67
+ citations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
68
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
+ excerpt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
+ }, z.core.$strip>>>>;
72
+ reasoning: z.ZodNullable<z.ZodString>;
73
+ confidence: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74
+ }, z.core.$strip>>>>;
75
+ content: z.ZodNullable<z.ZodString>;
76
+ beta_fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
77
+ }, z.core.$strip>]>>>;
78
+ event_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
+ }, z.core.$strip>, z.ZodObject<{
80
+ type: z.ZodNullable<z.ZodString>;
81
+ error: z.ZodNullable<z.ZodObject<{
82
+ detail: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
83
+ ref_id: z.ZodNullable<z.ZodString>;
84
+ message: z.ZodNullable<z.ZodString>;
85
+ }, z.core.$strip>>;
86
+ }, z.core.$strip>]>>;
87
+ }, z.core.$strip>;
88
+ declare const parallelFetchTaskGroupRuns: import("@keystrokehq/action").WorkflowActionDefinition<{
89
+ taskgroup_id: string;
90
+ status?: string | undefined;
91
+ include_input?: boolean | undefined;
92
+ last_event_id?: string | undefined;
93
+ include_output?: boolean | undefined;
94
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
95
  //#endregion
8
96
  export { parallelFetchTaskGroupRuns };
9
97
  //# sourceMappingURL=fetch-task-group-runs.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-task-group-runs.d.mts","names":[],"sources":["../../src/actions/fetch-task-group-runs.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAMsB;AAAA,cAgEzD,gCAAA,EAAkC,CAAA,CAAE,UAEoC;AAAA,cAExE,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"fetch-task-group-runs.d.mts","names":[],"sources":["../../src/actions/fetch-task-group-runs.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;cAsE/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIhC,0BAAA,gCAA0B,wBAAA"}
@@ -10,17 +10,17 @@ const ParallelFetchTaskGroupRunsInput = z.object({
10
10
  }).describe("Request model for fetching task runs from a Task Group.");
11
11
  const ParallelFetchTaskGroupRuns_ErrorSchema = z.object({
12
12
  detail: z.record(z.string(), z.unknown()).describe("Additional details about the error").nullable().optional(),
13
- ref_id: z.string().describe("Reference ID for the error"),
14
- message: z.string().describe("Human-readable error message")
13
+ ref_id: z.string().describe("Reference ID for the error").nullable(),
14
+ message: z.string().describe("Human-readable error message").nullable()
15
15
  }).describe("Error associated with a task run.");
16
16
  const ParallelFetchTaskGroupRuns_WarningSchema = z.object({
17
17
  detail: z.record(z.string(), z.unknown()).describe("Additional details about the warning").nullable().optional(),
18
- ref_id: z.string().describe("Reference ID for the warning"),
19
- message: z.string().describe("Human-readable warning message")
18
+ ref_id: z.string().describe("Reference ID for the warning").nullable(),
19
+ message: z.string().describe("Human-readable warning message").nullable()
20
20
  }).describe("Warning associated with a task run.");
21
21
  const ParallelFetchTaskGroupRuns_TaskRunSchema = z.object({
22
22
  error: ParallelFetchTaskGroupRuns_ErrorSchema.nullable().optional(),
23
- run_id: z.string().describe("Unique identifier of the task run"),
23
+ run_id: z.string().describe("Unique identifier of the task run").nullable(),
24
24
  status: z.enum([
25
25
  "queued",
26
26
  "action_required",
@@ -29,15 +29,15 @@ const ParallelFetchTaskGroupRuns_TaskRunSchema = z.object({
29
29
  "failed",
30
30
  "cancelling",
31
31
  "cancelled"
32
- ]).describe("Current status of the task run"),
32
+ ]).describe("Current status of the task run").nullable(),
33
33
  metadata: z.record(z.string(), z.unknown()).describe("Custom metadata for the run").nullable().optional(),
34
34
  warnings: z.array(ParallelFetchTaskGroupRuns_WarningSchema).describe("List of warnings associated with the run").nullable().optional(),
35
- is_active: z.boolean().describe("Whether the task run is actively processing"),
36
- processor: z.string().describe("Processor used for the task run"),
37
- created_at: z.string().describe("RFC 3339 timestamp when the task run was created"),
38
- modified_at: z.string().describe("RFC 3339 timestamp of last modification"),
35
+ is_active: z.boolean().describe("Whether the task run is actively processing").nullable(),
36
+ processor: z.string().describe("Processor used for the task run").nullable(),
37
+ created_at: z.string().describe("RFC 3339 timestamp when the task run was created").nullable(),
38
+ modified_at: z.string().describe("RFC 3339 timestamp of last modification").nullable(),
39
39
  taskgroup_id: z.string().describe("ID of the Task Group this run belongs to").nullable().optional(),
40
- interaction_id: z.string().describe("Identifier linking this run to an interaction")
40
+ interaction_id: z.string().describe("Identifier linking this run to an interaction").nullable()
41
41
  }).describe("Task run metadata object.");
42
42
  const ParallelFetchTaskGroupRuns_BetaTaskRunInputSchema = z.object({
43
43
  query: z.string().describe("Query text for the task").nullable().optional(),
@@ -50,33 +50,33 @@ const ParallelFetchTaskGroupRuns_CitationSchema = z.object({
50
50
  excerpt: z.string().describe("Excerpt from the cited source").nullable().optional()
51
51
  }).describe("Supporting citation for a field value.");
52
52
  const ParallelFetchTaskGroupRuns_FieldBasisSchema = z.object({
53
- field: z.string().describe("Output field name"),
53
+ field: z.string().describe("Output field name").nullable(),
54
54
  citations: z.array(ParallelFetchTaskGroupRuns_CitationSchema).describe("Supporting sources").nullable().optional(),
55
- reasoning: z.string().describe("Explanation for the field value"),
55
+ reasoning: z.string().describe("Explanation for the field value").nullable(),
56
56
  confidence: z.string().describe("Confidence level (if available from processor)").nullable().optional()
57
57
  }).describe("Supporting citations and reasoning for an output field.");
58
58
  const ParallelFetchTaskGroupRuns_TaskRunJsonOutputSchema = z.object({
59
- type: z.string().describe("Output type discriminator"),
59
+ type: z.string().describe("Output type discriminator").nullable(),
60
60
  basis: z.array(ParallelFetchTaskGroupRuns_FieldBasisSchema).describe("Citations, reasoning, and confidence per field").nullable().optional(),
61
61
  content: z.record(z.string(), z.unknown()).describe("JSON object matching the output schema"),
62
62
  beta_fields: z.record(z.string(), z.unknown()).describe("Additional beta fields").nullable().optional(),
63
63
  output_schema: z.record(z.string(), z.unknown()).describe("Schema used for the output").nullable().optional()
64
64
  }).describe("JSON output from a task run.");
65
65
  const ParallelFetchTaskGroupRuns_TaskRunTextOutputSchema = z.object({
66
- type: z.string().describe("Output type discriminator"),
66
+ type: z.string().describe("Output type discriminator").nullable(),
67
67
  basis: z.array(ParallelFetchTaskGroupRuns_FieldBasisSchema).describe("Citations and reasoning for the output").nullable().optional(),
68
- content: z.string().describe("Text content of the output"),
68
+ content: z.string().describe("Text content of the output").nullable(),
69
69
  beta_fields: z.record(z.string(), z.unknown()).describe("Additional beta fields").nullable().optional()
70
70
  }).describe("Text output from a task run.");
71
71
  const ParallelFetchTaskGroupRuns_TaskRunStateEventSchema = z.object({
72
72
  run: ParallelFetchTaskGroupRuns_TaskRunSchema.nullable(),
73
- type: z.string().describe("Event type"),
73
+ type: z.string().describe("Event type").nullable(),
74
74
  input: ParallelFetchTaskGroupRuns_BetaTaskRunInputSchema.nullable().optional(),
75
75
  output: z.union([ParallelFetchTaskGroupRuns_TaskRunJsonOutputSchema, ParallelFetchTaskGroupRuns_TaskRunTextOutputSchema]).nullable().optional(),
76
76
  event_id: z.string().describe("Unique identifier for the event").nullable().optional()
77
77
  }).describe("Event containing a task run state update.");
78
78
  const ParallelFetchTaskGroupRuns_ErrorEventSchema = z.object({
79
- type: z.string().describe("Event type"),
79
+ type: z.string().describe("Event type").nullable(),
80
80
  error: ParallelFetchTaskGroupRuns_ErrorSchema.nullable()
81
81
  }).describe("Event indicating an error occurred.");
82
82
  const parallelFetchTaskGroupRuns = action("PARALLEL_FETCH_TASK_GROUP_RUNS", {
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-task-group-runs.mjs","names":[],"sources":["../../src/actions/fetch-task-group-runs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelFetchTaskGroupRunsInput: z.ZodTypeAny = z.object({\n status: z.string().describe(\"Filter runs by status (e.g., queued, running, completed, failed, cancelled).\").optional(),\n taskgroup_id: z.string().describe(\"Unique identifier of the Task Group to fetch runs from.\"),\n include_input: z.boolean().default(false).describe(\"Whether to include task run inputs in the response. Default is False.\").optional(),\n last_event_id: z.string().describe(\"ID of the last received event to resume streaming from. Used as cursor for pagination.\").optional(),\n include_output: z.boolean().default(false).describe(\"Whether to include task run outputs in the response. Default is False.\").optional(),\n}).describe(\"Request model for fetching task runs from a Task Group.\");\nconst ParallelFetchTaskGroupRuns_ErrorSchema: z.ZodTypeAny = z.object({\n detail: z.record(z.string(), z.unknown()).describe(\"Additional details about the error\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the error\"),\n message: z.string().describe(\"Human-readable error message\"),\n}).describe(\"Error associated with a task run.\");\nconst ParallelFetchTaskGroupRuns_WarningSchema: z.ZodTypeAny = z.object({\n detail: z.record(z.string(), z.unknown()).describe(\"Additional details about the warning\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the warning\"),\n message: z.string().describe(\"Human-readable warning message\"),\n}).describe(\"Warning associated with a task run.\");\nconst ParallelFetchTaskGroupRuns_TaskRunSchema: z.ZodTypeAny = z.object({\n error: ParallelFetchTaskGroupRuns_ErrorSchema.nullable().optional(),\n run_id: z.string().describe(\"Unique identifier of the task run\"),\n status: z.enum([\"queued\", \"action_required\", \"running\", \"completed\", \"failed\", \"cancelling\", \"cancelled\"]).describe(\"Current status of the task run\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata for the run\").nullable().optional(),\n warnings: z.array(ParallelFetchTaskGroupRuns_WarningSchema).describe(\"List of warnings associated with the run\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the task run is actively processing\"),\n processor: z.string().describe(\"Processor used for the task run\"),\n created_at: z.string().describe(\"RFC 3339 timestamp when the task run was created\"),\n modified_at: z.string().describe(\"RFC 3339 timestamp of last modification\"),\n taskgroup_id: z.string().describe(\"ID of the Task Group this run belongs to\").nullable().optional(),\n interaction_id: z.string().describe(\"Identifier linking this run to an interaction\"),\n}).describe(\"Task run metadata object.\");\nconst ParallelFetchTaskGroupRuns_BetaTaskRunInputSchema: z.ZodTypeAny = z.object({\n query: z.string().describe(\"Query text for the task\").nullable().optional(),\n documents: z.array(z.record(z.string(), z.unknown())).describe(\"Documents provided as input\").nullable().optional(),\n beta_fields: z.record(z.string(), z.unknown()).describe(\"Additional beta fields\").nullable().optional(),\n}).describe(\"Input provided to a task run.\");\nconst ParallelFetchTaskGroupRuns_CitationSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the cited source\").nullable().optional(),\n title: z.string().describe(\"Title of the cited source\").nullable().optional(),\n excerpt: z.string().describe(\"Excerpt from the cited source\").nullable().optional(),\n}).describe(\"Supporting citation for a field value.\");\nconst ParallelFetchTaskGroupRuns_FieldBasisSchema: z.ZodTypeAny = z.object({\n field: z.string().describe(\"Output field name\"),\n citations: z.array(ParallelFetchTaskGroupRuns_CitationSchema).describe(\"Supporting sources\").nullable().optional(),\n reasoning: z.string().describe(\"Explanation for the field value\"),\n confidence: z.string().describe(\"Confidence level (if available from processor)\").nullable().optional(),\n}).describe(\"Supporting citations and reasoning for an output field.\");\nconst ParallelFetchTaskGroupRuns_TaskRunJsonOutputSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Output type discriminator\"),\n basis: z.array(ParallelFetchTaskGroupRuns_FieldBasisSchema).describe(\"Citations, reasoning, and confidence per field\").nullable().optional(),\n content: z.record(z.string(), z.unknown()).describe(\"JSON object matching the output schema\"),\n beta_fields: z.record(z.string(), z.unknown()).describe(\"Additional beta fields\").nullable().optional(),\n output_schema: z.record(z.string(), z.unknown()).describe(\"Schema used for the output\").nullable().optional(),\n}).describe(\"JSON output from a task run.\");\nconst ParallelFetchTaskGroupRuns_TaskRunTextOutputSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Output type discriminator\"),\n basis: z.array(ParallelFetchTaskGroupRuns_FieldBasisSchema).describe(\"Citations and reasoning for the output\").nullable().optional(),\n content: z.string().describe(\"Text content of the output\"),\n beta_fields: z.record(z.string(), z.unknown()).describe(\"Additional beta fields\").nullable().optional(),\n}).describe(\"Text output from a task run.\");\nconst ParallelFetchTaskGroupRuns_TaskRunStateEventSchema: z.ZodTypeAny = z.object({\n run: ParallelFetchTaskGroupRuns_TaskRunSchema.nullable(),\n type: z.string().describe(\"Event type\"),\n input: ParallelFetchTaskGroupRuns_BetaTaskRunInputSchema.nullable().optional(),\n output: z.union([ParallelFetchTaskGroupRuns_TaskRunJsonOutputSchema, ParallelFetchTaskGroupRuns_TaskRunTextOutputSchema]).nullable().optional(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable().optional(),\n}).describe(\"Event containing a task run state update.\");\nconst ParallelFetchTaskGroupRuns_ErrorEventSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Event type\"),\n error: ParallelFetchTaskGroupRuns_ErrorSchema.nullable(),\n}).describe(\"Event indicating an error occurred.\");\nexport const ParallelFetchTaskGroupRunsOutput: z.ZodTypeAny = z.object({\n events: z.array(z.union([ParallelFetchTaskGroupRuns_TaskRunStateEventSchema, ParallelFetchTaskGroupRuns_ErrorEventSchema])).describe(\"List of task run events received from the stream\"),\n}).describe(\"Response model containing list of task run events from the Task Group.\");\n\nexport const parallelFetchTaskGroupRuns = action(\"PARALLEL_FETCH_TASK_GROUP_RUNS\", {\n slug: \"parallel-fetch-task-group-runs\",\n name: \"Fetch Task Group Runs\",\n description: \"Tool to retrieve task runs from a Task Group as a resumable stream. Use when you need to fetch all runs within a group, optionally including their inputs and outputs. The stream can be resumed using the event_id as a cursor.\",\n input: Par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AC,CAAC,SAAS,2BAA2B;CACrD,OAAO,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACzD,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,SAAS,8BAA8B;AAC1C,MAAM,qDAAmE,EAAE,OAAO;CAChF,KAAK,yCAAyC,SAAS;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY;CACtC,OAAO,kDAAkD,SAAS,CAAC,CAAC,SAAS;CAC7E,QAAQ,EAAE,MAAM,CAAC,oDAAoD,kDAAkD,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAM,8CAA4D,EAAE,OAAO;CACzE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY;CACtC,OAAO,uCAAuC,SAAS;AACzD,CAAC,CAAC,CAAC,SAAS,qCAAqC;AAKjD,MAAa,6BAA6B,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT4D,EAAE,OAAO,EACrE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,oDAAoD,2CAA2C,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD,EACzL,CAAC,CAAC,CAAC,SAAS,wEAOF;AACV,CAAC"}
1
+ {"version":3,"file":"fetch-task-group-runs.mjs","names":[],"sources":["../../src/actions/fetch-task-group-runs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelFetchTaskGroupRunsInput = z.object({\n status: z.string().describe(\"Filter runs by status (e.g., queued, running, completed, failed, cancelled).\").optional(),\n taskgroup_id: z.string().describe(\"Unique identifier of the Task Group to fetch runs from.\"),\n include_input: z.boolean().default(false).describe(\"Whether to include task run inputs in the response. Default is False.\").optional(),\n last_event_id: z.string().describe(\"ID of the last received event to resume streaming from. Used as cursor for pagination.\").optional(),\n include_output: z.boolean().default(false).describe(\"Whether to include task run outputs in the response. Default is False.\").optional(),\n}).describe(\"Request model for fetching task runs from a Task Group.\");\nconst ParallelFetchTaskGroupRuns_ErrorSchema = z.object({\n detail: z.record(z.string(), z.unknown()).describe(\"Additional details about the error\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the error\").nullable(),\n message: z.string().describe(\"Human-readable error message\").nullable(),\n}).describe(\"Error associated with a task run.\");\nconst ParallelFetchTaskGroupRuns_WarningSchema = z.object({\n detail: z.record(z.string(), z.unknown()).describe(\"Additional details about the warning\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the warning\").nullable(),\n message: z.string().describe(\"Human-readable warning message\").nullable(),\n}).describe(\"Warning associated with a task run.\");\nconst ParallelFetchTaskGroupRuns_TaskRunSchema = z.object({\n error: ParallelFetchTaskGroupRuns_ErrorSchema.nullable().optional(),\n run_id: z.string().describe(\"Unique identifier of the task run\").nullable(),\n status: z.enum([\"queued\", \"action_required\", \"running\", \"completed\", \"failed\", \"cancelling\", \"cancelled\"]).describe(\"Current status of the task run\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata for the run\").nullable().optional(),\n warnings: z.array(ParallelFetchTaskGroupRuns_WarningSchema).describe(\"List of warnings associated with the run\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the task run is actively processing\").nullable(),\n processor: z.string().describe(\"Processor used for the task run\").nullable(),\n created_at: z.string().describe(\"RFC 3339 timestamp when the task run was created\").nullable(),\n modified_at: z.string().describe(\"RFC 3339 timestamp of last modification\").nullable(),\n taskgroup_id: z.string().describe(\"ID of the Task Group this run belongs to\").nullable().optional(),\n interaction_id: z.string().describe(\"Identifier linking this run to an interaction\").nullable(),\n}).describe(\"Task run metadata object.\");\nconst ParallelFetchTaskGroupRuns_BetaTaskRunInputSchema = z.object({\n query: z.string().describe(\"Query text for the task\").nullable().optional(),\n documents: z.array(z.record(z.string(), z.unknown())).describe(\"Documents provided as input\").nullable().optional(),\n beta_fields: z.record(z.string(), z.unknown()).describe(\"Additional beta fields\").nullable().optional(),\n}).describe(\"Input provided to a task run.\");\nconst ParallelFetchTaskGroupRuns_CitationSchema = z.object({\n url: z.string().describe(\"URL of the cited source\").nullable().optional(),\n title: z.string().describe(\"Title of the cited source\").nullable().optional(),\n excerpt: z.string().describe(\"Excerpt from the cited source\").nullable().optional(),\n}).describe(\"Supporting citation for a field value.\");\nconst ParallelFetchTaskGroupRuns_FieldBasisSchema = z.object({\n field: z.string().describe(\"Output field name\").nullable(),\n citations: z.array(ParallelFetchTaskGroupRuns_CitationSchema).describe(\"Supporting sources\").nullable().optional(),\n reasoning: z.string().describe(\"Explanation for the field value\").nullable(),\n confidence: z.string().describe(\"Confidence level (if available from processor)\").nullable().optional(),\n}).describe(\"Supporting citations and reasoning for an output field.\");\nconst ParallelFetchTaskGroupRuns_TaskRunJsonOutputSchema = z.object({\n type: z.string().describe(\"Output type discriminator\").nullable(),\n basis: z.array(ParallelFetchTaskGroupRuns_FieldBasisSchema).describe(\"Citations, reasoning, and confidence per field\").nullable().optional(),\n content: z.record(z.string(), z.unknown()).describe(\"JSON object matching the output schema\"),\n beta_fields: z.record(z.string(), z.unknown()).describe(\"Additional beta fields\").nullable().optional(),\n output_schema: z.record(z.string(), z.unknown()).describe(\"Schema used for the output\").nullable().optional(),\n}).describe(\"JSON output from a task run.\");\nconst ParallelFetchTaskGroupRuns_TaskRunTextOutputSchema = z.object({\n type: z.string().describe(\"Output type discriminator\").nullable(),\n basis: z.array(ParallelFetchTaskGroupRuns_FieldBasisSchema).describe(\"Citations and reasoning for the output\").nullable().optional(),\n content: z.string().describe(\"Text content of the output\").nullable(),\n beta_fields: z.record(z.string(), z.unknown()).describe(\"Additional beta fields\").nullable().optional(),\n}).describe(\"Text output from a task run.\");\nconst ParallelFetchTaskGroupRuns_TaskRunStateEventSchema = z.object({\n run: ParallelFetchTaskGroupRuns_TaskRunSchema.nullable(),\n type: z.string().describe(\"Event type\").nullable(),\n input: ParallelFetchTaskGroupRuns_BetaTaskRunInputSchema.nullable().optional(),\n output: z.union([ParallelFetchTaskGroupRuns_TaskRunJsonOutputSchema, ParallelFetchTaskGroupRuns_TaskRunTextOutputSchema]).nullable().optional(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable().optional(),\n}).describe(\"Event containing a task run state update.\");\nconst ParallelFetchTaskGroupRuns_ErrorEventSchema = z.object({\n type: z.string().describe(\"Event type\").nullable(),\n error: ParallelFetchTaskGroupRuns_ErrorSchema.nullable(),\n}).describe(\"Event indicating an error occurred.\");\nexport const ParallelFetchTaskGroupRunsOutput = z.object({\n events: z.array(z.union([ParallelFetchTaskGroupRuns_TaskRunStateEventSchema, ParallelFetchTaskGroupRuns_ErrorEventSchema])).describe(\"List of task run events received from the stream\"),\n}).describe(\"Response model containing list of task run events from the Task Group.\");\n\nexport const parallelFetchTaskGroupRuns = action(\"PARALLEL_FETCH_TASK_GROUP_RUNS\", {\n slug: \"parallel-fetch-task-group-runs\",\n name: \"Fetch Task Group Runs\",\n description: \"Tool to retrieve task runs from a Task Group as a resumable stream. Use when you need to fetch all runs within a group, optionally including their inputs and outputs. The stream can be resumed using the event_id as a cursor.\",\n input: ParallelFetchTaskGroupRunsInput,\n output: ParallelFetchTaskGroupRunsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACrH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAC3F,eAAe,EAAE,QAAQ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36
36
  "completed",
37
37
  "failed",
38
38
  "cancelled"
39
- ]).describe("Current status of the run."),
39
+ ]).describe("Current status of the run.").nullable(),
40
40
  metrics: ParallelFindAll_RunMetricsSchema.nullable(),
41
- is_active: zod.z.boolean().describe("Whether the run is currently active."),
41
+ is_active: zod.z.boolean().describe("Whether the run is currently active.").nullable(),
42
42
  termination_reason: zod.z.string().describe("Reason for run completion, if any.").nullable().optional()
43
43
  });
44
44
  const ParallelFindAllOutput = zod.z.object({
@@ -49,10 +49,10 @@ const ParallelFindAllOutput = zod.z.object({
49
49
  "core",
50
50
  "pro",
51
51
  "preview"
52
- ]).describe("Selected generator tier for the run."),
53
- created_at: zod.z.string().describe("Creation timestamp (RFC 3339)."),
54
- findall_id: zod.z.string().describe("ID of the created FindAll run."),
55
- modified_at: zod.z.string().describe("Last modification timestamp (RFC 3339).")
52
+ ]).describe("Selected generator tier for the run.").nullable(),
53
+ created_at: zod.z.string().describe("Creation timestamp (RFC 3339).").nullable(),
54
+ findall_id: zod.z.string().describe("ID of the created FindAll run.").nullable(),
55
+ modified_at: zod.z.string().describe("Last modification timestamp (RFC 3339).").nullable()
56
56
  });
57
57
  const parallelFindAll = require_action.action("PARALLEL_FIND_ALL", {
58
58
  slug: "parallel-find-all",
@@ -1 +1 @@
1
- {"version":3,"file":"find-all.cjs","names":["z","action"],"sources":["../../src/actions/find-all.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelFindAllInput: z.ZodTypeAny = z.object({\n webhook: z.object({\n url: z.string().describe(\"Webhook endpoint URL.\"),\n event_types: z.array(z.string()).describe(\"Event types to subscribe to (e.g., findall.candidate.matched).\"),\n}).describe(\"Optional webhook configuration for run events.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional user metadata to store with the run. Values must be primitive types (string, int, float, or bool).\").optional(),\n generator: z.enum([\"base\", \"core\", \"pro\", \"preview\"]).describe(\"Quality/cost tier for the run.\"),\n objective: z.string().describe(\"Natural-language objective for the FindAll run.\"),\n entity_type: z.string().describe(\"Type of entity to find (e.g., companies, people).\"),\n match_limit: z.number().int().describe(\"Maximum number of matches to return (between 5 and 1000 inclusive).\"),\n exclude_list: z.array(z.object({\n url: z.string().describe(\"Canonical URL of the entity to exclude.\"),\n name: z.string().describe(\"Name of the entity to exclude.\"),\n})).describe(\"Optional list of entities to exclude from matching.\").optional(),\n match_conditions: z.array(z.object({\n name: z.string().describe(\"Identifier for the match condition.\"),\n description: z.string().describe(\"Description of what must be satisfied for the match.\"),\n})).describe(\"List of conditions that a candidate must satisfy.\"),\n});\nconst ParallelFindAll_RunMetricsSchema: z.ZodTypeAny = z.object({\n matched_candidates_count: z.number().int().default(0).describe(\"Number of candidates matched so far.\").nullable().optional(),\n generated_candidates_count: z.number().int().default(0).describe(\"Number of candidates generated so far.\").nullable().optional(),\n});\nconst ParallelFindAll_RunStatusSchema: z.ZodTypeAny = z.object({\n status: z.enum([\"queued\", \"running\", \"completed\", \"failed\", \"cancelled\"]).describe(\"Current status of the run.\"),\n metrics: ParallelFindAll_RunMetricsSchema.nullable(),\n is_active: z.boolean().describe(\"Whether the run is currently active.\"),\n termination_reason: z.string().describe(\"Reason for run completion, if any.\").nullable().optional(),\n});\nexport const ParallelFindAllOutput: z.ZodTypeAny = z.object({\n status: ParallelFindAll_RunStatusSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the run.\").nullable().optional(),\n generator: z.enum([\"base\", \"core\", \"pro\", \"preview\"]).describe(\"Selected generator tier for the run.\"),\n created_at: z.string().describe(\"Creation timestamp (RFC 3339).\"),\n findall_id: z.string().describe(\"ID of the created FindAll run.\"),\n modified_at: z.string().describe(\"Last modification timestamp (RFC 3339).\"),\n});\n\nexport const parallelFindAll = action(\"PARALLEL_FIND_ALL\", {\n slug: \"parallel-find-all\",\n name: \"Start FindAll Run\",\n description: \"Tool to start a FindAll run. Use when you need to discover and match entities based on natural-language objectives. Supports custom conditions, exclusion lists, and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,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"find-all.cjs","names":["z","action"],"sources":["../../src/actions/find-all.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelFindAllInput = z.object({\n webhook: z.object({\n url: z.string().describe(\"Webhook endpoint URL.\"),\n event_types: z.array(z.string()).describe(\"Event types to subscribe to (e.g., findall.candidate.matched).\"),\n}).describe(\"Optional webhook configuration for run events.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional user metadata to store with the run. Values must be primitive types (string, int, float, or bool).\").optional(),\n generator: z.enum([\"base\", \"core\", \"pro\", \"preview\"]).describe(\"Quality/cost tier for the run.\"),\n objective: z.string().describe(\"Natural-language objective for the FindAll run.\"),\n entity_type: z.string().describe(\"Type of entity to find (e.g., companies, people).\"),\n match_limit: z.number().int().describe(\"Maximum number of matches to return (between 5 and 1000 inclusive).\"),\n exclude_list: z.array(z.object({\n url: z.string().describe(\"Canonical URL of the entity to exclude.\"),\n name: z.string().describe(\"Name of the entity to exclude.\"),\n})).describe(\"Optional list of entities to exclude from matching.\").optional(),\n match_conditions: z.array(z.object({\n name: z.string().describe(\"Identifier for the match condition.\"),\n description: z.string().describe(\"Description of what must be satisfied for the match.\"),\n})).describe(\"List of conditions that a candidate must satisfy.\"),\n});\nconst ParallelFindAll_RunMetricsSchema = z.object({\n matched_candidates_count: z.number().int().default(0).describe(\"Number of candidates matched so far.\").nullable().optional(),\n generated_candidates_count: z.number().int().default(0).describe(\"Number of candidates generated so far.\").nullable().optional(),\n});\nconst ParallelFindAll_RunStatusSchema = z.object({\n status: z.enum([\"queued\", \"running\", \"completed\", \"failed\", \"cancelled\"]).describe(\"Current status of the run.\").nullable(),\n metrics: ParallelFindAll_RunMetricsSchema.nullable(),\n is_active: z.boolean().describe(\"Whether the run is currently active.\").nullable(),\n termination_reason: z.string().describe(\"Reason for run completion, if any.\").nullable().optional(),\n});\nexport const ParallelFindAllOutput = z.object({\n status: ParallelFindAll_RunStatusSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the run.\").nullable().optional(),\n generator: z.enum([\"base\", \"core\", \"pro\", \"preview\"]).describe(\"Selected generator tier for the run.\").nullable(),\n created_at: z.string().describe(\"Creation timestamp (RFC 3339).\").nullable(),\n findall_id: z.string().describe(\"ID of the created FindAll run.\").nullable(),\n modified_at: z.string().describe(\"Last modification timestamp (RFC 3339).\").nullable(),\n});\n\nexport const parallelFindAll = action(\"PARALLEL_FIND_ALL\", {\n slug: \"parallel-find-all\",\n name: \"Start FindAll Run\",\n description: \"Tool to start a FindAll run. Use when you need to discover and match entities based on natural-language objectives. Supports custom conditions, exclusion lists, and webhook callbacks.\",\n input: ParallelFindAllInput,\n output: ParallelFindAllOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,SAASA,IAAAA,EAAE,OAAO;EAClB,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;EAChD,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gEAAgE;CAC5G,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACrE,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CAC7K,WAAWA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAQ;EAAO;CAAS,CAAC,CAAC,CAAC,SAAS,gCAAgC;CAC/F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAChF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CACpF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAA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