agentinputlab 0.1.0a1__py3-none-any.whl

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 (469) hide show
  1. agentinputlab/__init__.py +28 -0
  2. agentinputlab/algorithms/__init__.py +6 -0
  3. agentinputlab/algorithms/acquire/__init__.py +145 -0
  4. agentinputlab/algorithms/acquire/adaptive_rag/__init__.py +43 -0
  5. agentinputlab/algorithms/acquire/adaptive_rag/replay.py +367 -0
  6. agentinputlab/algorithms/acquire/adaptive_rag/runtime.py +1202 -0
  7. agentinputlab/algorithms/acquire/adaptive_rag_common_support.py +542 -0
  8. agentinputlab/algorithms/acquire/hyde.py +296 -0
  9. agentinputlab/algorithms/acquire/hyde_controlled.py +200 -0
  10. agentinputlab/algorithms/acquire/hyde_external.py +148 -0
  11. agentinputlab/algorithms/acquire/ircot.py +28 -0
  12. agentinputlab/algorithms/acquire/ircot_common_support.py +478 -0
  13. agentinputlab/algorithms/acquire/ircot_native.py +355 -0
  14. agentinputlab/algorithms/acquire/ircot_replay.py +327 -0
  15. agentinputlab/algorithms/acquire/qrag/__init__.py +79 -0
  16. agentinputlab/algorithms/acquire/qrag/bridge.py +828 -0
  17. agentinputlab/algorithms/acquire/qrag/common_support.py +891 -0
  18. agentinputlab/algorithms/acquire/qrag/native_axis.py +71 -0
  19. agentinputlab/algorithms/acquire/qrag/reader_adapter.py +139 -0
  20. agentinputlab/algorithms/acquire/r2ag/__init__.py +57 -0
  21. agentinputlab/algorithms/acquire/r2ag/bridge.py +1312 -0
  22. agentinputlab/algorithms/acquire/r2ag/common_support.py +1029 -0
  23. agentinputlab/algorithms/acquire/r2ag/socket_runtime.py +255 -0
  24. agentinputlab/algorithms/clarify/__init__.py +61 -0
  25. agentinputlab/algorithms/clarify/_structured.py +64 -0
  26. agentinputlab/algorithms/clarify/active_task_disambiguation.py +371 -0
  27. agentinputlab/algorithms/clarify/ask_or_assume/__init__.py +17 -0
  28. agentinputlab/algorithms/clarify/ask_or_assume/monitor.py +410 -0
  29. agentinputlab/algorithms/clarify/future_turns.py +379 -0
  30. agentinputlab/algorithms/clarify/udcs.py +255 -0
  31. agentinputlab/algorithms/clarify/udcs_deterministic.py +196 -0
  32. agentinputlab/algorithms/curate/__init__.py +65 -0
  33. agentinputlab/algorithms/curate/acon/__init__.py +27 -0
  34. agentinputlab/algorithms/curate/acon/common.py +284 -0
  35. agentinputlab/algorithms/curate/acon/common_support.py +136 -0
  36. agentinputlab/algorithms/curate/acon/history_bridge.py +309 -0
  37. agentinputlab/algorithms/curate/acon/observation_bridge.py +290 -0
  38. agentinputlab/algorithms/curate/llmlingua/__init__.py +30 -0
  39. agentinputlab/algorithms/curate/llmlingua/adapters.py +537 -0
  40. agentinputlab/algorithms/curate/llmlingua/budget.py +48 -0
  41. agentinputlab/algorithms/curate/llmlingua/controlled.py +175 -0
  42. agentinputlab/algorithms/curate/llmlingua/multilingual.py +105 -0
  43. agentinputlab/algorithms/curate/llmlingua/span_map.py +167 -0
  44. agentinputlab/algorithms/curate/recomp/__init__.py +47 -0
  45. agentinputlab/algorithms/curate/recomp/external.py +1129 -0
  46. agentinputlab/algorithms/curate/recomp/selective.py +304 -0
  47. agentinputlab/algorithms/decompose/__init__.py +107 -0
  48. agentinputlab/algorithms/decompose/decomp/__init__.py +53 -0
  49. agentinputlab/algorithms/decompose/decomp/common_support.py +478 -0
  50. agentinputlab/algorithms/decompose/decomp/planner_component.py +199 -0
  51. agentinputlab/algorithms/decompose/decomp/worker_bridge.py +416 -0
  52. agentinputlab/algorithms/decompose/llm_compiler/__init__.py +35 -0
  53. agentinputlab/algorithms/decompose/llm_compiler/bridge.py +520 -0
  54. agentinputlab/algorithms/decompose/llm_compiler/common_support.py +504 -0
  55. agentinputlab/algorithms/decompose/plan_and_budget/__init__.py +43 -0
  56. agentinputlab/algorithms/decompose/plan_and_budget/cached_soft_budget.py +362 -0
  57. agentinputlab/algorithms/decompose/plan_and_budget/decomposer_component.py +107 -0
  58. agentinputlab/algorithms/decompose/plan_and_budget/full.py +205 -0
  59. agentinputlab/algorithms/decompose/plan_and_budget/hard_cap.py +246 -0
  60. agentinputlab/algorithms/decompose/plan_and_budget/regenerated_soft_budget.py +448 -0
  61. agentinputlab/algorithms/decompose/plan_and_solve/__init__.py +33 -0
  62. agentinputlab/algorithms/decompose/plan_and_solve/plan_component.py +192 -0
  63. agentinputlab/algorithms/decompose/plan_and_solve/ps_prompt.py +127 -0
  64. agentinputlab/algorithms/decompose/self_ask/__init__.py +27 -0
  65. agentinputlab/algorithms/decompose/self_ask/loop.py +362 -0
  66. agentinputlab/algorithms/decompose/self_ask/planner_component.py +117 -0
  67. agentinputlab/algorithms/reformulate/__init__.py +85 -0
  68. agentinputlab/algorithms/reformulate/infocqr/__init__.py +40 -0
  69. agentinputlab/algorithms/reformulate/infocqr/cache_replay.py +362 -0
  70. agentinputlab/algorithms/reformulate/infocqr/external.py +675 -0
  71. agentinputlab/algorithms/reformulate/infocqr/student.py +189 -0
  72. agentinputlab/algorithms/reformulate/query2doc/__init__.py +42 -0
  73. agentinputlab/algorithms/reformulate/query2doc/controlled_live.py +190 -0
  74. agentinputlab/algorithms/reformulate/query2doc/models.py +95 -0
  75. agentinputlab/algorithms/reformulate/query2doc/official_cached.py +335 -0
  76. agentinputlab/algorithms/reformulate/query2doc/querygym_bridge.py +223 -0
  77. agentinputlab/algorithms/reformulate/query2doc/querygym_runtime.py +326 -0
  78. agentinputlab/algorithms/reformulate/reformer/__init__.py +23 -0
  79. agentinputlab/algorithms/reformulate/reformer/external.py +417 -0
  80. agentinputlab/algorithms/reformulate/rrr.py +696 -0
  81. agentinputlab/annotation/__init__.py +5 -0
  82. agentinputlab/annotation/independent.py +428 -0
  83. agentinputlab/annotation/server.py +233 -0
  84. agentinputlab/annotation/static/app.js +121 -0
  85. agentinputlab/annotation/static/index.html +60 -0
  86. agentinputlab/annotation/static/review.css +2 -0
  87. agentinputlab/annotation/static/review.html +10 -0
  88. agentinputlab/annotation/static/review.js +11 -0
  89. agentinputlab/annotation/static/styles.css +55 -0
  90. agentinputlab/annotation/store.py +444 -0
  91. agentinputlab/api.py +368 -0
  92. agentinputlab/artifacts/__init__.py +15 -0
  93. agentinputlab/artifacts/json_file.py +104 -0
  94. agentinputlab/artifacts/manifest.py +98 -0
  95. agentinputlab/artifacts/store.py +157 -0
  96. agentinputlab/backends/__init__.py +98 -0
  97. agentinputlab/backends/embedding/__init__.py +25 -0
  98. agentinputlab/backends/embedding/base.py +145 -0
  99. agentinputlab/backends/embedding/callable.py +75 -0
  100. agentinputlab/backends/embedding/replay.py +129 -0
  101. agentinputlab/backends/llm/__init__.py +31 -0
  102. agentinputlab/backends/llm/base.py +149 -0
  103. agentinputlab/backends/llm/callable.py +108 -0
  104. agentinputlab/backends/llm/decomp_completion.py +88 -0
  105. agentinputlab/backends/llm/final_content_stop.py +72 -0
  106. agentinputlab/backends/llm/gpt_oss_final_channel.py +84 -0
  107. agentinputlab/backends/llm/openai_compatible.py +332 -0
  108. agentinputlab/backends/llm/transformers.py +171 -0
  109. agentinputlab/backends/retrieval/__init__.py +35 -0
  110. agentinputlab/backends/retrieval/base.py +50 -0
  111. agentinputlab/backends/retrieval/dense.py +777 -0
  112. agentinputlab/backends/retrieval/memory.py +119 -0
  113. agentinputlab/backends/retrieval/sqlite_fts.py +155 -0
  114. agentinputlab/backends/user/__init__.py +15 -0
  115. agentinputlab/backends/user/base.py +66 -0
  116. agentinputlab/backends/user/callable.py +54 -0
  117. agentinputlab/backends/user/replay.py +89 -0
  118. agentinputlab/backends/vector.py +38 -0
  119. agentinputlab/benchmarks/__init__.py +246 -0
  120. agentinputlab/benchmarks/acquisition.py +106 -0
  121. agentinputlab/benchmarks/ale.py +540 -0
  122. agentinputlab/benchmarks/appworld_ul.py +669 -0
  123. agentinputlab/benchmarks/assets.py +226 -0
  124. agentinputlab/benchmarks/base.py +68 -0
  125. agentinputlab/benchmarks/beir_archive.py +235 -0
  126. agentinputlab/benchmarks/beir_sample.py +269 -0
  127. agentinputlab/benchmarks/bfcl_native.py +245 -0
  128. agentinputlab/benchmarks/bfcl_v3.py +607 -0
  129. agentinputlab/benchmarks/cache.py +218 -0
  130. agentinputlab/benchmarks/clariq.py +203 -0
  131. agentinputlab/benchmarks/data/registry.json +321 -0
  132. agentinputlab/benchmarks/data/smoke_assets.json +511 -0
  133. agentinputlab/benchmarks/data/statebench_v0_8_1_task_ids.json +475 -0
  134. agentinputlab/benchmarks/data/toolsandbox_165848b_scenario_names.json +1 -0
  135. agentinputlab/benchmarks/execution.py +1111 -0
  136. agentinputlab/benchmarks/interactive.py +257 -0
  137. agentinputlab/benchmarks/ir_query.py +204 -0
  138. agentinputlab/benchmarks/longbench.py +203 -0
  139. agentinputlab/benchmarks/paired_replay.py +479 -0
  140. agentinputlab/benchmarks/preprocess.py +2313 -0
  141. agentinputlab/benchmarks/production.py +236 -0
  142. agentinputlab/benchmarks/qa.py +963 -0
  143. agentinputlab/benchmarks/registry.py +110 -0
  144. agentinputlab/benchmarks/retrieval.py +459 -0
  145. agentinputlab/benchmarks/runtime.py +509 -0
  146. agentinputlab/benchmarks/statebench.py +938 -0
  147. agentinputlab/benchmarks/tau3.py +725 -0
  148. agentinputlab/benchmarks/toolsandbox.py +626 -0
  149. agentinputlab/benchmarks/trec_dl_sample.py +263 -0
  150. agentinputlab/campaign.py +654 -0
  151. agentinputlab/campaign_runner.py +953 -0
  152. agentinputlab/cli/__init__.py +6 -0
  153. agentinputlab/cli/main.py +933 -0
  154. agentinputlab/connectors/__init__.py +46 -0
  155. agentinputlab/connectors/knowledge/__init__.py +4 -0
  156. agentinputlab/connectors/tools/__init__.py +30 -0
  157. agentinputlab/connectors/tools/base.py +57 -0
  158. agentinputlab/connectors/tools/mcp.py +222 -0
  159. agentinputlab/connectors/tools/memory.py +41 -0
  160. agentinputlab/connectors/tools/openapi.py +695 -0
  161. agentinputlab/connectors/tools/schema.py +102 -0
  162. agentinputlab/contracts/__init__.py +91 -0
  163. agentinputlab/contracts/availability.py +24 -0
  164. agentinputlab/contracts/dependency.py +58 -0
  165. agentinputlab/contracts/enums.py +82 -0
  166. agentinputlab/contracts/errors.py +63 -0
  167. agentinputlab/contracts/evidence.py +43 -0
  168. agentinputlab/contracts/intent.py +110 -0
  169. agentinputlab/contracts/lifecycle.py +164 -0
  170. agentinputlab/contracts/patch.py +167 -0
  171. agentinputlab/contracts/serialization.py +93 -0
  172. agentinputlab/contracts/state.py +127 -0
  173. agentinputlab/contracts/trace.py +59 -0
  174. agentinputlab/contracts/worker.py +42 -0
  175. agentinputlab/core/__init__.py +7 -0
  176. agentinputlab/data/__init__.py +32 -0
  177. agentinputlab/data/checksums.py +9 -0
  178. agentinputlab/data/downloader.py +235 -0
  179. agentinputlab/data/http.py +171 -0
  180. agentinputlab/data/index.py +21 -0
  181. agentinputlab/data/overlap.py +28 -0
  182. agentinputlab/data/preprocess.py +32 -0
  183. agentinputlab/data/storage.py +57 -0
  184. agentinputlab/data/trec_sample.py +427 -0
  185. agentinputlab/evaluation/__init__.py +5 -0
  186. agentinputlab/evaluation/outcomes.py +32 -0
  187. agentinputlab/experiments/__init__.py +278 -0
  188. agentinputlab/experiments/analysis.py +981 -0
  189. agentinputlab/experiments/artifacts.py +687 -0
  190. agentinputlab/experiments/automatic_measurement.py +678 -0
  191. agentinputlab/experiments/auxiliary_matrix.py +203 -0
  192. agentinputlab/experiments/bindings.py +430 -0
  193. agentinputlab/experiments/blueprints.py +147 -0
  194. agentinputlab/experiments/builders/__init__.py +45 -0
  195. agentinputlab/experiments/builders/executable_external_payload.py +423 -0
  196. agentinputlab/experiments/builders/external_process_arena.py +1018 -0
  197. agentinputlab/experiments/builders/registry_intervention.py +463 -0
  198. agentinputlab/experiments/cli.py +158 -0
  199. agentinputlab/experiments/controls.py +340 -0
  200. agentinputlab/experiments/driver_guard.py +205 -0
  201. agentinputlab/experiments/drivers/__init__.py +89 -0
  202. agentinputlab/experiments/drivers/external_arena.py +2908 -0
  203. agentinputlab/experiments/drivers/method_process.py +662 -0
  204. agentinputlab/experiments/drivers/parity_process.py +1484 -0
  205. agentinputlab/experiments/drivers/static_production.py +1574 -0
  206. agentinputlab/experiments/executor.py +448 -0
  207. agentinputlab/experiments/loader.py +605 -0
  208. agentinputlab/experiments/measurement.py +675 -0
  209. agentinputlab/experiments/paper_analysis.py +1818 -0
  210. agentinputlab/experiments/parity_identity.py +605 -0
  211. agentinputlab/experiments/plan.py +277 -0
  212. agentinputlab/experiments/production_builders.py +3739 -0
  213. agentinputlab/experiments/readiness.py +432 -0
  214. agentinputlab/experiments/schema.py +514 -0
  215. agentinputlab/experiments/secrets.py +177 -0
  216. agentinputlab/experiments/stateful_analysis.py +1738 -0
  217. agentinputlab/experiments/transfer_analysis.py +1316 -0
  218. agentinputlab/experiments/unseen_analysis.py +1025 -0
  219. agentinputlab/integrations/__init__.py +1 -0
  220. agentinputlab/integrations/action_space/__init__.py +1 -0
  221. agentinputlab/integrations/external_workers/__init__.py +76 -0
  222. agentinputlab/integrations/external_workers/ace.py +431 -0
  223. agentinputlab/integrations/external_workers/base.py +181 -0
  224. agentinputlab/integrations/external_workers/decomp_live.py +249 -0
  225. agentinputlab/integrations/external_workers/decomp_planner.py +30 -0
  226. agentinputlab/integrations/external_workers/infocqr_student.py +280 -0
  227. agentinputlab/integrations/external_workers/ircot.py +576 -0
  228. agentinputlab/integrations/external_workers/llmcompiler_live.py +360 -0
  229. agentinputlab/integrations/external_workers/longllmlingua.py +162 -0
  230. agentinputlab/integrations/external_workers/method.py +314 -0
  231. agentinputlab/integrations/external_workers/process.py +678 -0
  232. agentinputlab/integrations/external_workers/supervisor.py +1071 -0
  233. agentinputlab/integrations/full_architecture/__init__.py +1 -0
  234. agentinputlab/integrations/full_architecture/hyde.py +212 -0
  235. agentinputlab/integrations/full_architecture/plan_and_budget.py +188 -0
  236. agentinputlab/integrations/live_history.py +222 -0
  237. agentinputlab/integrations/prompt_optimization/__init__.py +1 -0
  238. agentinputlab/integrations/training/__init__.py +1 -0
  239. agentinputlab/metrics/__init__.py +50 -0
  240. agentinputlab/metrics/catalog.py +313 -0
  241. agentinputlab/metrics/harm.py +95 -0
  242. agentinputlab/metrics/paired.py +40 -0
  243. agentinputlab/metrics/qa.py +76 -0
  244. agentinputlab/metrics/text.py +33 -0
  245. agentinputlab/metrics/third_party.py +161 -0
  246. agentinputlab/models/__init__.py +4 -0
  247. agentinputlab/observability/__init__.py +56 -0
  248. agentinputlab/observability/budget.py +316 -0
  249. agentinputlab/observability/instrumentation.py +754 -0
  250. agentinputlab/observability/models.py +403 -0
  251. agentinputlab/observability/monitor.py +380 -0
  252. agentinputlab/optimizers/__init__.py +1 -0
  253. agentinputlab/optimizers/clarify/__init__.py +12 -0
  254. agentinputlab/optimizers/context/__init__.py +22 -0
  255. agentinputlab/optimizers/decompose/__init__.py +64 -0
  256. agentinputlab/optimizers/evidence/__init__.py +22 -0
  257. agentinputlab/optimizers/rewrite/__init__.py +30 -0
  258. agentinputlab/parity/__init__.py +5 -0
  259. agentinputlab/parity/base.py +206 -0
  260. agentinputlab/production_campaign.py +763 -0
  261. agentinputlab/py.typed +1 -0
  262. agentinputlab/recipes/__init__.py +333 -0
  263. agentinputlab/recipes/ace.py +418 -0
  264. agentinputlab/recipes/ace_bfcl.py +273 -0
  265. agentinputlab/recipes/ace_common_support.py +169 -0
  266. agentinputlab/recipes/ace_native_plan.py +322 -0
  267. agentinputlab/recipes/ace_online.py +711 -0
  268. agentinputlab/recipes/ace_retrieval.py +330 -0
  269. agentinputlab/recipes/ace_statebench.py +382 -0
  270. agentinputlab/recipes/ace_tau.py +463 -0
  271. agentinputlab/recipes/ace_toolsandbox.py +432 -0
  272. agentinputlab/recipes/acon_guideline.py +22 -0
  273. agentinputlab/recipes/adaptive_rag.py +822 -0
  274. agentinputlab/recipes/llmlingua2_inference.py +146 -0
  275. agentinputlab/recipes/llmlingua2_training.py +796 -0
  276. agentinputlab/recipes/mce.py +1486 -0
  277. agentinputlab/recipes/mce_final.py +335 -0
  278. agentinputlab/recipes/mce_text_fit.py +499 -0
  279. agentinputlab/recipes/mce_text_only.py +298 -0
  280. agentinputlab/recipes/qrag.py +729 -0
  281. agentinputlab/recipes/qrag_inference.py +364 -0
  282. agentinputlab/recipes/r2ag_features.py +236 -0
  283. agentinputlab/recipes/r2ag_inference.py +503 -0
  284. agentinputlab/recipes/r2ag_training.py +948 -0
  285. agentinputlab/recipes/recomp_abstractive.py +592 -0
  286. agentinputlab/recipes/recomp_extractive.py +525 -0
  287. agentinputlab/recipes/reformer.py +17 -0
  288. agentinputlab/recipes/rqrag.py +1516 -0
  289. agentinputlab/recipes/rqrag_common_support.py +193 -0
  290. agentinputlab/recipes/rqrag_completion.py +147 -0
  291. agentinputlab/recipes/skillopt.py +462 -0
  292. agentinputlab/recipes/skillopt_common_support.py +154 -0
  293. agentinputlab/recipes/skillopt_environment.py +165 -0
  294. agentinputlab/recipes/skillopt_environment_cli.py +5 -0
  295. agentinputlab/recipes/skillopt_retrieval.py +188 -0
  296. agentinputlab/recipes/smartsearch.py +897 -0
  297. agentinputlab/recipes/smartsearch_curriculum.py +283 -0
  298. agentinputlab/recipes/smartsearch_grpo_contracts.py +58 -0
  299. agentinputlab/recipes/smartsearch_grpo_data.py +314 -0
  300. agentinputlab/recipes/smartsearch_grpo_meter.py +324 -0
  301. agentinputlab/recipes/smartsearch_grpo_prefix.py +144 -0
  302. agentinputlab/recipes/smartsearch_grpo_rollout.py +119 -0
  303. agentinputlab/recipes/smartsearch_grpo_tools.py +364 -0
  304. agentinputlab/recipes/smartsearch_grpo_training.py +305 -0
  305. agentinputlab/recipes/smartsearch_grpo_transport.py +248 -0
  306. agentinputlab/recipes/smartsearch_grpo_worker.py +364 -0
  307. agentinputlab/recipes/smartsearch_inference.py +524 -0
  308. agentinputlab/recipes/smartsearch_native_data.py +172 -0
  309. agentinputlab/recipes/smartsearch_policy.py +616 -0
  310. agentinputlab/recipes/smartsearch_policy_worker.py +9 -0
  311. agentinputlab/recipes/smartsearch_sampling.py +232 -0
  312. agentinputlab/recipes/smartsearch_teacher.py +203 -0
  313. agentinputlab/recipes/smartsearch_training.py +265 -0
  314. agentinputlab/registry/__init__.py +46 -0
  315. agentinputlab/registry/beta.py +727 -0
  316. agentinputlab/registry/data/algorithms.json +1959 -0
  317. agentinputlab/registry/data/auxiliary_method_profiles.json +34 -0
  318. agentinputlab/registry/loader.py +100 -0
  319. agentinputlab/registry/result_manifest.py +184 -0
  320. agentinputlab/registry/runtime.py +195 -0
  321. agentinputlab/registry/schema.py +449 -0
  322. agentinputlab/runner/__init__.py +30 -0
  323. agentinputlab/runner/balance.py +248 -0
  324. agentinputlab/runner/cache.py +135 -0
  325. agentinputlab/runner/composite.py +130 -0
  326. agentinputlab/runner/engine.py +285 -0
  327. agentinputlab/runner/runtime_guard.py +268 -0
  328. agentinputlab/runner/worker.py +80 -0
  329. agentinputlab/runtime_bootstrap.py +288 -0
  330. agentinputlab/selectors/__init__.py +196 -0
  331. agentinputlab/selectors/advanced.py +1514 -0
  332. agentinputlab/selectors/artifacts.py +1087 -0
  333. agentinputlab/selectors/base.py +112 -0
  334. agentinputlab/selectors/campaigns.py +1893 -0
  335. agentinputlab/selectors/catalog.py +86 -0
  336. agentinputlab/selectors/discovery.py +1860 -0
  337. agentinputlab/selectors/evaluation.py +1348 -0
  338. agentinputlab/selectors/features.py +383 -0
  339. agentinputlab/selectors/learned.py +502 -0
  340. agentinputlab/selectors/no_op.py +28 -0
  341. agentinputlab/selectors/outcome_table.py +475 -0
  342. agentinputlab/selectors/producer.py +853 -0
  343. agentinputlab/selectors/rules.py +109 -0
  344. agentinputlab/selectors/runtime.py +420 -0
  345. agentinputlab/studies/__init__.py +16 -0
  346. agentinputlab/studies/design.py +165 -0
  347. agentinputlab/studies/paired.py +322 -0
  348. agentinputlab/studio/__init__.py +6 -0
  349. agentinputlab/studio/campaigns.py +819 -0
  350. agentinputlab/studio/engine.py +1408 -0
  351. agentinputlab/studio/model_backends.py +425 -0
  352. agentinputlab/studio/prepared.py +410 -0
  353. agentinputlab/studio/server.py +613 -0
  354. agentinputlab/studio/static/app.js +397 -0
  355. agentinputlab/studio/static/campaigns.html +175 -0
  356. agentinputlab/studio/static/campaigns.js +426 -0
  357. agentinputlab/studio/static/index.html +192 -0
  358. agentinputlab/studio/static/result.html +103 -0
  359. agentinputlab/studio/static/result.js +273 -0
  360. agentinputlab/studio/static/styles.css +467 -0
  361. agentinputlab-0.1.0a1.data/data/share/agentinputlab/CITATION.cff +22 -0
  362. agentinputlab-0.1.0a1.dist-info/METADATA +392 -0
  363. agentinputlab-0.1.0a1.dist-info/RECORD +469 -0
  364. agentinputlab-0.1.0a1.dist-info/WHEEL +5 -0
  365. agentinputlab-0.1.0a1.dist-info/entry_points.txt +6 -0
  366. agentinputlab-0.1.0a1.dist-info/licenses/LICENSE +21 -0
  367. agentinputlab-0.1.0a1.dist-info/licenses/NOTICE +31 -0
  368. agentinputlab-0.1.0a1.dist-info/licenses/THIRD_PARTY_NOTICES.md +94 -0
  369. agentinputlab-0.1.0a1.dist-info/top_level.txt +2 -0
  370. workers/README.md +94 -0
  371. workers/ace/README.md +261 -0
  372. workers/ace/__init__.py +1 -0
  373. workers/ace/compatibility_manifest.json +39 -0
  374. workers/ace/driver.py +1682 -0
  375. workers/acon/README.md +215 -0
  376. workers/acon/__init__.py +5 -0
  377. workers/acon/compatibility_manifest.json +93 -0
  378. workers/acon/driver.py +1859 -0
  379. workers/acon/fitted.py +395 -0
  380. workers/acon/guideline.py +470 -0
  381. workers/acon/guideline_source_manifest.json +20 -0
  382. workers/adaptive_rag/README.md +96 -0
  383. workers/adaptive_rag/__init__.py +15 -0
  384. workers/adaptive_rag/compatibility_manifest.json +61 -0
  385. workers/adaptive_rag/driver.py +1470 -0
  386. workers/adaptive_rag/fixture_runtime.py +163 -0
  387. workers/adaptive_rag/runtime.py +252 -0
  388. workers/ask_or_assume/README.md +124 -0
  389. workers/ask_or_assume/__init__.py +1 -0
  390. workers/ask_or_assume/compatibility_manifest.json +36 -0
  391. workers/ask_or_assume/driver.py +1227 -0
  392. workers/decomp/README.md +133 -0
  393. workers/decomp/UPSTREAM_LICENSE.Apache-2.0.txt +201 -0
  394. workers/decomp/__init__.py +5 -0
  395. workers/decomp/compatibility_manifest.json +205 -0
  396. workers/decomp/driver.py +1015 -0
  397. workers/decomp/live.py +137 -0
  398. workers/decomp/runtime.py +231 -0
  399. workers/infocqr/README.md +106 -0
  400. workers/infocqr/__init__.py +1 -0
  401. workers/infocqr/compatibility_manifest.json +84 -0
  402. workers/infocqr/driver.py +1766 -0
  403. workers/ircot/README.md +167 -0
  404. workers/ircot/__init__.py +7 -0
  405. workers/ircot/compatibility_manifest.json +121 -0
  406. workers/ircot/controlled.py +457 -0
  407. workers/ircot/driver.py +1373 -0
  408. workers/ircot/fixture_bindings.json +39 -0
  409. workers/ircot/fixture_config.json +48 -0
  410. workers/ircot/fixture_prompt.txt +2 -0
  411. workers/ircot/native_qa.py +398 -0
  412. workers/ircot/qa_compatibility_manifest.json +57 -0
  413. workers/ircot/runtime.py +97 -0
  414. workers/llmcompiler/README.md +160 -0
  415. workers/llmcompiler/__init__.py +1 -0
  416. workers/llmcompiler/compatibility_manifest.json +45 -0
  417. workers/llmcompiler/driver.py +1514 -0
  418. workers/llmcompiler/export_prompts.py +74 -0
  419. workers/llmcompiler/live.py +174 -0
  420. workers/llmcompiler/patch_manifest.json +147 -0
  421. workers/mce/README.md +198 -0
  422. workers/mce/__init__.py +29 -0
  423. workers/mce/compatibility_manifest.json +115 -0
  424. workers/mce/driver.py +2585 -0
  425. workers/mce/final_eval.py +173 -0
  426. workers/official_arenas/README.md +25 -0
  427. workers/official_arenas/__init__.py +1 -0
  428. workers/official_arenas/capture_records.py +110 -0
  429. workers/official_arenas/driver.py +619 -0
  430. workers/official_arenas/protocol.py +334 -0
  431. workers/official_arenas/providers/__init__.py +1 -0
  432. workers/official_arenas/providers/_live_history.py +228 -0
  433. workers/official_arenas/providers/_message_compat.py +77 -0
  434. workers/official_arenas/providers/appworld_ul.py +196 -0
  435. workers/official_arenas/providers/fixture.py +112 -0
  436. workers/official_arenas/providers/statebench.py +960 -0
  437. workers/official_arenas/providers/tau3.py +1672 -0
  438. workers/official_arenas/providers/tau_retail.py +586 -0
  439. workers/official_arenas/providers/toolsandbox.py +1321 -0
  440. workers/official_arenas/providers/tooltalk.py +699 -0
  441. workers/official_arenas/retail_capture.py +188 -0
  442. workers/official_arenas/retail_driver.py +275 -0
  443. workers/qrag/README.md +172 -0
  444. workers/qrag/__init__.py +1 -0
  445. workers/qrag/compatibility_manifest.json +64 -0
  446. workers/qrag/driver.py +673 -0
  447. workers/r2ag/README.md +154 -0
  448. workers/r2ag/__init__.py +5 -0
  449. workers/r2ag/compatibility_manifest.json +55 -0
  450. workers/r2ag/driver.py +1287 -0
  451. workers/r2ag/feature_schema.json +8 -0
  452. workers/r2ag/runtime.py +589 -0
  453. workers/recomp/README.md +120 -0
  454. workers/recomp/__init__.py +1 -0
  455. workers/recomp/compatibility_manifest.json +43 -0
  456. workers/recomp/driver.py +1653 -0
  457. workers/reformer/README.md +125 -0
  458. workers/reformer/__init__.py +1 -0
  459. workers/reformer/compatibility_manifest.json +68 -0
  460. workers/reformer/driver.py +1459 -0
  461. workers/reformer/induction.py +457 -0
  462. workers/rrr/README.md +126 -0
  463. workers/rrr/__init__.py +1 -0
  464. workers/rrr/compatibility_manifest.json +57 -0
  465. workers/rrr/driver.py +1133 -0
  466. workers/smartsearch/README.md +331 -0
  467. workers/smartsearch/__init__.py +1 -0
  468. workers/smartsearch/compatibility_manifest.json +41 -0
  469. workers/smartsearch/driver.py +1643 -0
@@ -0,0 +1,133 @@
1
+ # DecomP pinned worker
2
+
3
+ This JSONL worker runs the original `allenai/DecomP` controller and participant
4
+ implementations at commit `8b157f6fe9ff5676ae51bd054f1df7b015adf278`.
5
+ Set `AGENTINPUTLAB_UPSTREAM_ROOT` to that exact, clean checkout and install its
6
+ original optional dependencies in the worker environment.
7
+
8
+ The upstream project is Apache-2.0. The bounded search-loop compatibility code
9
+ is attributed to the pinned `BestFirstDecomposer.find_answer_decomp`; the
10
+ project-level third-party notice records the distribution boundary. The exact
11
+ upstream license text is distributed as `UPSTREAM_LICENSE.Apache-2.0.txt`.
12
+
13
+ Worker protocol v2 carries the complete input evidence as upstream-native
14
+ `paras`, alongside unique `paragraph_ids` and a SHA-256 `context_hash` over
15
+ both ordered arrays. The driver verifies that identity before importing
16
+ upstream code, inserts `paras` into the example passed to DecomP, and echoes the
17
+ IDs/hash in its response. The core bridge rejects any mismatch, so HotpotQA or
18
+ CommaQA evidence cannot be silently dropped or reordered at the worker
19
+ boundary. Non-empty context blocks require stable `block_id` values.
20
+
21
+ Only logical config artifact IDs declared in `compatibility_manifest.json` are
22
+ accepted. The driver never accepts a filesystem path, Python symbol, command,
23
+ host, credential, or Jsonnet external variable from a request. The upstream
24
+ `expr_eval` participant is rejected because its implementation uses Python
25
+ `eval`; this is a deliberate security incompatibility, not an algorithm result.
26
+
27
+ The compatibility manifest records execution, input and transport changes relative to upstream:
28
+
29
+ 1. a bounded, traced form of the original best-first loop;
30
+ 2. a request-bound cap on generator `max_steps`;
31
+ 3. checksum-locked config loading and participant safety gates.
32
+ 4. identity-checked pass-through of upstream `paras`.
33
+ 5. the explicit, optional controlled native-completion transport described below.
34
+
35
+ `plan.decomp.full` is a composite-only profile: call `DecompFullBridge.run()`
36
+ through `CompositeInterventionRunner`. It returns the upstream terminal answer,
37
+ the exact input evidence, and the native execution trace as a `CompositeResult`.
38
+ There is intentionally no `propose()`/patch path, because feeding the full
39
+ system's answer back to a downstream solver would change the estimand and cause
40
+ a second answer generation.
41
+
42
+ The pinned runtime serializes all in-process executions with one process-global
43
+ `RLock`. This protects upstream's temporary CWD and `sys.path` mutations; its
44
+ fingerprint reports `concurrency_mode=process_global_serial_rlock`. Use separate
45
+ worker processes for parallel execution.
46
+
47
+ The `backend_binding` field is audit identity only in this first driver. DecomP's
48
+ original model clients remain responsible for generation. This limitation is
49
+ reported in every response and prevents claiming a controlled backend swap.
50
+ Fingerprint keys such as `model_revision`, `tokenizer_revision`, and
51
+ `max_output_tokens` are valid audit metadata. Only explicit credential key
52
+ names (for example `api_key`, `authorization`, `password`, `secret`, or
53
+ `access_token`) are rejected.
54
+
55
+ ## Controlled live model binding
56
+
57
+ For caller-selected backbones, use `DecompLiveRuntime` instead of the legacy
58
+ audit-only `PinnedDecompRuntime`. It supervises an isolated worker and binds
59
+ only `GPT3Generator`'s provider-call seam to `DecompCompletionBackend` via
60
+ authenticated numeric-loopback callbacks. Native participants, prompt files,
61
+ sampling/stop/output settings, choice parsing, sequence scores, routing and
62
+ best-first search remain upstream code. The legacy engine name is explicitly
63
+ replaced by the caller's model, and the native response cache is disabled.
64
+ This is `controlled_adapter`, not original GPT-3 checkpoint/transport parity.
65
+
66
+ Install the validated legacy worker on Python 3.10, separately from the host.
67
+ Install the small CPU Torch distribution first to avoid fetching CUDA runtimes
68
+ for a source process that only calls the host's model service:
69
+
70
+ ```bash
71
+ python -m pip install --index-url https://download.pytorch.org/whl/cpu 'torch==1.13.0+cpu'
72
+ python -m pip install 'agentinputlab[decomp]'
73
+ ```
74
+
75
+ Provide the pinned clean checkout and an NLTK data directory containing
76
+ `corpora/stopwords/english`. Missing assets are explicit dependencies; this
77
+ runtime does not download models, datasets or NLTK resources during execution.
78
+ Host and worker must use matching native-worker protocol and source hashes. Source files,
79
+ prompt resources, worker hashes, dependency versions/import origins and the
80
+ English stopword checksum are attested before native model callbacks.
81
+
82
+ ```python
83
+ from pathlib import Path
84
+ from agentinputlab import ExecutionBudget, InterventionContext
85
+ from agentinputlab.algorithms.decompose.decomp import DecompFullBridge
86
+ from agentinputlab.backends import DecompCompletionBackend
87
+ from agentinputlab.contracts import FrozenAgentState
88
+ from agentinputlab.integrations.external_workers import DecompLiveRuntime
89
+ from agentinputlab.runner import CompositeInterventionRunner
90
+
91
+ backend = DecompCompletionBackend(
92
+ model_id="your-model", base_url="http://127.0.0.1:8000/v1",
93
+ deployment_identity={"revision": "your-exact-model-revision"},
94
+ )
95
+ runtime = DecompLiveRuntime(
96
+ python_executable="/path/to/legacy-env/bin/python",
97
+ checkout=Path("/path/to/DecomP"), nltk_data=Path("/path/to/nltk_data"),
98
+ backend=backend, per_call_output_cap=512,
99
+ )
100
+ record = CompositeInterventionRunner().run(
101
+ DecompFullBridge(None, config_artifact_id="decomp.commaqa.coarse.p1"),
102
+ FrozenAgentState(query="Your question", budget=ExecutionBudget()),
103
+ InterventionContext(backend=backend, external_runtime=runtime, seed=17),
104
+ )
105
+ print(record.result.final_answer)
106
+ ```
107
+
108
+ Config IDs are task-specific: reverse, letter concatenation and CommaQA prompts
109
+ are not interchangeable demonstrations or universal QA guarantees. Use the
110
+ appropriate source-pinned config and supply stable paragraph IDs for context.
111
+ The original native contract accepts query/context, not arbitrary instruction
112
+ or conversation history; an explicit caller projection is required for those.
113
+
114
+ The current controlled transport accepts one choice (`n=1`, `best_of=1`/`None`).
115
+ Native output caps are not enlarged or silently shrunk to fit the budget; a
116
+ dispatch is rejected if its original cap exceeds the remaining token/call
117
+ allowance or the caller's per-call ceiling. Actual native usage is retained on
118
+ failures; missing usage remains unknown, not free. For a cumulative input-token
119
+ ceiling, set `per_call_input_token_bound` to an upper bound enforced by the
120
+ bound provider (for example, its configured context-window size). The runtime
121
+ reserves that bound before every call, including concurrent calls, and settles
122
+ it to actual provider-reported input usage afterward. It never truncates the
123
+ prompt or changes generation parameters. Missing usage retains the reservation
124
+ and prevents another call; a provider exceeding its declared bound fails closed
125
+ while preserving actual consumption. Without an explicit bound, finite input
126
+ ceilings are rejected. Finite priced-cost ceilings still require a pricing
127
+ estimator and are not supported by this transport.
128
+ Backend I/O needs its own finite timeout in addition to the worker timeout.
129
+ `callback_events`, `last_response` and `last_resource_receipt` expose diagnostics;
130
+ the resource receipt covers the source process, not host callback CPU.
131
+ On failure, the runtime returns a typed error/usage envelope. The monitored
132
+ request hook raises after charging the complete actual usage, including failed
133
+ calls, rather than recording only the one-call pre-execution reservation.
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,5 @@
1
+ """Pinned external worker for the upstream DecomP implementation."""
2
+
3
+ from .runtime import PinnedDecompRuntime
4
+
5
+ __all__ = ["PinnedDecompRuntime"]
@@ -0,0 +1,205 @@
1
+ {
2
+ "schema_version": "agentinputlab.decomp.compatibility.v1",
3
+ "upstream": {
4
+ "repository": "https://github.com/allenai/DecomP",
5
+ "commit": "8b157f6fe9ff5676ae51bd054f1df7b015adf278",
6
+ "license_spdx": "Apache-2.0",
7
+ "license_sha256": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
8
+ "require_clean_checkout": true
9
+ },
10
+ "source_files": {
11
+ "src/decomp/inference/configurable_inference.py": "63b83110a6ed6b440485f6b9d125edf4ff6809b2ddf1dc61d2c9fad152da7164",
12
+ "src/decomp/inference/model_search.py": "489c7eba1407fa17dad4798c72ec69eb288c6e310fab64ecbca8e472ba1b105e",
13
+ "src/decomp/inference/constants.py": "c9b4617653a33e1abe63b37f0371922cf59ece95e0b5b0f711ee08441c526677",
14
+ "src/decomp/inference/data_instances.py": "ea9fcab88c9965e6d5202b50ec8ecdf4ce33dde15784b57ecd396e6193ad93f1",
15
+ "src/decomp/inference/dataset_readers.py": "64d9b3453593713eb938e0d9eebf0af28cfa098a8e33e0300d97b196c01adc51",
16
+ "src/decomp/inference/participant_execution_routed.py": "dfc73f6abfed3f5030cec0310d8afb4a54527a7ed46c8f0b90a077239733a590",
17
+ "src/decomp/inference/participant_qa.py": "dc2573b6d97dfa929b8dd650f4f53bedf310ead0a732de5657a065d7f59be7ca",
18
+ "src/decomp/inference/participant_qgen.py": "a8e4a234669d541632289f956b454769c833320055b06d1683a8dadc207436ce",
19
+ "src/decomp/inference/participant_util.py": "62a99eaa2beff4110ecdaf6ffda58cf16add0599ed2686fbbc5211aa39875436",
20
+ "src/decomp/inference/utils.py": "efb9b8b8d606f6e6af179c779c42de6337addbd4c017f3e6725e7f17c777aab6",
21
+ "src/decomp/models/generator.py": "e9bf3b78d9f947095204b64fd37221681999e329c4e7164e83b827e9b3eeb1d3",
22
+ "src/decomp/models/gpt3generator.py": "a3bb80600cc87e46d569a80b0f46b983c28c5a967edece3c22d3406b333d5175",
23
+ "src/decomp/models/llm_client_generator.py": "8d8199b1b7e97599f05929b655ccb24b30b42f96f5a06828840a3b69ab72f4d9",
24
+ "src/decomp/models/llm_qa_model.py": "11b4fd1fa496cb2430b27a3c8963348c436e593cf23f66893b02c89f7f991004",
25
+ "configs/inference/primitives.libsonnet": "4691fe3bd3491333051c8355621090c57e0edd8e22b032e36d0934d350950779",
26
+ "configs/prompts/reverse/decomp.txt": "d824eaa035ce92d7094009b2dd17d69d8e2a8398840f3fcf5de67ba366e60c31",
27
+ "configs/prompts/reverse/cot.txt": "19be26b2ea732ac18968fc8df7fa5598f49ef8e22a2336607e0646e6b7907e39",
28
+ "configs/prompts/reverse/join.txt": "8b7fedea27c2eb2a310ed5a4caca0124caa3c6a610532763a855acce25b07d5d",
29
+ "configs/prompts/reverse/rm_num.txt": "8fc1ff7811754b11eee763ddce02377560149490cfa7295e79ed0c995fbfff21",
30
+ "configs/prompts/letter_cat/letter_cat_p1/letter_cat_n3_ex3_decomp.txt": "0ad934b584c6ca56be10f8988b84ab7d46d6e450d3cda2694b52fc9953567c55",
31
+ "configs/prompts/letter_cat/letter_cat_p2/letter_cat_n3_ex3_decomp.txt": "ac77efed2e366e6c1f5f235b5adbb119bbf0f515bc2c2b7203a509393c750aa6",
32
+ "configs/prompts/letter_cat/letter_cat_p3/letter_cat_n3_ex3_decomp.txt": "b0da80edecd20c9a4f304bf4422a6da94a089837c48bad3ed784c1604d9c265c",
33
+ "configs/prompts/commaqa_e/commaqa_e_p1/decomp_coarse.txt": "92fdcf74cdba062a11d49fb4facc847765e3007c772714479d4b4f58bec4afc8",
34
+ "configs/prompts/commaqa_e/commaqa_e_p2/decomp_coarse.txt": "92fdcf74cdba062a11d49fb4facc847765e3007c772714479d4b4f58bec4afc8",
35
+ "configs/prompts/commaqa_e/commaqa_e_p3/decomp_coarse.txt": "92fdcf74cdba062a11d49fb4facc847765e3007c772714479d4b4f58bec4afc8",
36
+ "configs/prompts/commaqa_e/commaqa_e_p1/decomp_fine.txt": "ae27f5438c8e68716b9aca38c19298e0cbe7d99f8abb165d13dde4f556ed4aed",
37
+ "configs/prompts/commaqa_e/commaqa_e_p2/decomp_fine.txt": "ae27f5438c8e68716b9aca38c19298e0cbe7d99f8abb165d13dde4f556ed4aed",
38
+ "configs/prompts/commaqa_e/commaqa_e_p3/decomp_fine.txt": "ae27f5438c8e68716b9aca38c19298e0cbe7d99f8abb165d13dde4f556ed4aed",
39
+ "configs/prompts/commaqa_e/commaqa_e_p1/qa.txt": "49cd68f9a93c92d541278f0dc5ad2a579f49058d19e68dc48b1d285165bf77d2",
40
+ "configs/prompts/commaqa_e/commaqa_e_p2/qa.txt": "fd535f9b3608a137fc4be2e3d672c98768380b8e50196c8f77f28607861af1fc",
41
+ "configs/prompts/commaqa_e/commaqa_e_p3/qa.txt": "2ae801ae809ea0b969594939801fd00f6d2d08558f255744cd44c9a15df16a95",
42
+ "configs/prompts/task_primitives/arr_position.txt": "8c0189d18f221a0a1f085c1f3d0417096180d0455d88ee8414bfccbed4b40326",
43
+ "configs/prompts/task_primitives/merge.txt": "5a0a19ccf0daac865f7b70cd12fcbecde0000bb5efebf8457b9c39f2d2ee49cc",
44
+ "configs/prompts/task_primitives/split.txt": "54741e3076d5c8140cdc13c288b323fdcf11204988631d4c422cc51edacbeffc",
45
+ "configs/prompts/task_primitives/str_position.txt": "9f067c7d8e1b9685f1400b1cf93a031085b4346deab4dc3270d9c0baacc73f1d"
46
+ },
47
+ "live_required_versions": {
48
+ "torch": "1.13.0+cpu",
49
+ "transformers": "4.24.0",
50
+ "numpy": "1.26.4",
51
+ "jsonnet": "0.21.0",
52
+ "nltk": "3.9.2",
53
+ "openai": "0.28.1",
54
+ "diskcache": "5.6.3",
55
+ "python-dateutil": "2.9.0.post0",
56
+ "requests": "2.32.5"
57
+ },
58
+ "config_artifacts": {
59
+ "decomp.reverse.decomp": {
60
+ "path": "configs/inference/reverse/decomp.jsonnet",
61
+ "sha256": "928040d3b99e78f08674379f271997c50366e37860d65119748b0f224d082d00",
62
+ "ext_vars": {}
63
+ },
64
+ "decomp.letter_cat.decomp.p1": {
65
+ "path": "configs/inference/letter_cat/letter_cat_greedy_search.jsonnet",
66
+ "sha256": "f77aef30df7a259bd004cb8561b81eb2e7adeabd9ad5ba8c7a02dff653a58a19",
67
+ "ext_vars": {
68
+ "promptid": "p1"
69
+ }
70
+ },
71
+ "decomp.letter_cat.decomp.p2": {
72
+ "path": "configs/inference/letter_cat/letter_cat_greedy_search.jsonnet",
73
+ "sha256": "f77aef30df7a259bd004cb8561b81eb2e7adeabd9ad5ba8c7a02dff653a58a19",
74
+ "ext_vars": {
75
+ "promptid": "p2"
76
+ }
77
+ },
78
+ "decomp.letter_cat.decomp.p3": {
79
+ "path": "configs/inference/letter_cat/letter_cat_greedy_search.jsonnet",
80
+ "sha256": "f77aef30df7a259bd004cb8561b81eb2e7adeabd9ad5ba8c7a02dff653a58a19",
81
+ "ext_vars": {
82
+ "promptid": "p3"
83
+ }
84
+ },
85
+ "decomp.commaqa.coarse.p1": {
86
+ "path": "configs/inference/commaqa_e/commaqae_coarse_greedy_search.jsonnet",
87
+ "sha256": "2917ed074b7dcc1a2f187289a15b8a548cfc40f4539d2abdfefd45b4152e52fc",
88
+ "ext_vars": {
89
+ "promptid": "p1"
90
+ }
91
+ },
92
+ "decomp.commaqa.coarse.p2": {
93
+ "path": "configs/inference/commaqa_e/commaqae_coarse_greedy_search.jsonnet",
94
+ "sha256": "2917ed074b7dcc1a2f187289a15b8a548cfc40f4539d2abdfefd45b4152e52fc",
95
+ "ext_vars": {
96
+ "promptid": "p2"
97
+ }
98
+ },
99
+ "decomp.commaqa.coarse.p3": {
100
+ "path": "configs/inference/commaqa_e/commaqae_coarse_greedy_search.jsonnet",
101
+ "sha256": "2917ed074b7dcc1a2f187289a15b8a548cfc40f4539d2abdfefd45b4152e52fc",
102
+ "ext_vars": {
103
+ "promptid": "p3"
104
+ }
105
+ },
106
+ "decomp.commaqa.fine.p1": {
107
+ "path": "configs/inference/commaqa_e/commaqae_fine_greedy_search.jsonnet",
108
+ "sha256": "7c3cdbd10ad04a634a49d7e5afcf1316a47ad1b58f0b2727111c9228190c1f72",
109
+ "ext_vars": {
110
+ "promptid": "p1"
111
+ }
112
+ },
113
+ "decomp.commaqa.fine.p2": {
114
+ "path": "configs/inference/commaqa_e/commaqae_fine_greedy_search.jsonnet",
115
+ "sha256": "7c3cdbd10ad04a634a49d7e5afcf1316a47ad1b58f0b2727111c9228190c1f72",
116
+ "ext_vars": {
117
+ "promptid": "p2"
118
+ }
119
+ },
120
+ "decomp.commaqa.fine.p3": {
121
+ "path": "configs/inference/commaqa_e/commaqae_fine_greedy_search.jsonnet",
122
+ "sha256": "7c3cdbd10ad04a634a49d7e5afcf1316a47ad1b58f0b2727111c9228190c1f72",
123
+ "ext_vars": {
124
+ "promptid": "p3"
125
+ }
126
+ }
127
+ },
128
+ "allowed_model_names": [
129
+ "answer_extractor",
130
+ "dump_chains",
131
+ "execute_router",
132
+ "llmqa",
133
+ "llmqadecomp",
134
+ "lmgen",
135
+ "randgen"
136
+ ],
137
+ "forbidden_model_names": [
138
+ "expr_eval"
139
+ ],
140
+ "allowed_reader_names": [
141
+ "drop",
142
+ "hotpot"
143
+ ],
144
+ "model_call_metric_names": [
145
+ "gpt3gen",
146
+ "lmgen",
147
+ "llm_apigen",
148
+ "llm_qa"
149
+ ],
150
+ "patches": [
151
+ {
152
+ "id": "explicit_native_completion_callbacks_v1",
153
+ "kind": "transport_compatibility_patch",
154
+ "upstream_symbol": "decomp.models.gpt3generator.GPT3Generator.generate_text_sequence",
155
+ "changes": [
156
+ "explicitly select a caller-bound raw-completion backend instead of the legacy engine and disk response cache",
157
+ "retain all native participant prompts, branch scoring, answer parsing, task routing and best-first control flow",
158
+ "preserve native sampling, stop and output caps; bound total calls and actual generated tokens before dispatch",
159
+ "require exact source, worker, dependency-version and import-origin attestation before completions",
160
+ "isolate native cache HOME per worker without exposing provider credentials or request-selected URLs",
161
+ "record this as controlled_adapter, not original GPT-3 checkpoint or transport parity"
162
+ ]
163
+ },
164
+ {
165
+ "id": "bounded_best_first_trace_v1",
166
+ "upstream_symbol": "decomp.inference.model_search.BestFirstDecomposer.find_answer_decomp",
167
+ "kind": "control_flow_preserving_compatibility_patch",
168
+ "changes": [
169
+ "bound controller.execute invocations by request.max_steps",
170
+ "record deterministic frontier pops and state transitions",
171
+ "return an explicit termination reason"
172
+ ]
173
+ },
174
+ {
175
+ "id": "bounded_generator_steps_v1",
176
+ "upstream_symbol": "decomp.inference.configurable_inference.build_decomposer_and_models",
177
+ "kind": "configuration_compatibility_patch",
178
+ "changes": [
179
+ "cap upstream question-generator max_steps by request.max_steps",
180
+ "deep-copy config before upstream builder mutation"
181
+ ]
182
+ },
183
+ {
184
+ "id": "context_identity_passthrough_v2",
185
+ "upstream_symbol": "decomp.inference.configurable_inference.inference_mode",
186
+ "kind": "input_contract_compatibility_patch",
187
+ "changes": [
188
+ "pass request paragraphs through upstream example.paras without rewriting their text",
189
+ "bind ordered paragraph IDs and texts to a request context hash",
190
+ "echo paragraph IDs and context hash for core-side identity validation"
191
+ ]
192
+ },
193
+ {
194
+ "id": "safe_jsonnet_and_model_gate_v1",
195
+ "upstream_symbol": "decomp.inference.configurable_inference.load_config",
196
+ "kind": "security_patch",
197
+ "changes": [
198
+ "resolve config only through a checksum-locked logical artifact ID",
199
+ "provide only manifest-pinned Jsonnet extVars",
200
+ "reject ExprEvalQAParticipantModel because it executes Python eval",
201
+ "never expose a request-controlled path, module, callable, host, or command"
202
+ ]
203
+ }
204
+ ]
205
+ }