reactifact 0.20.2__tar.gz → 0.22.0__tar.gz

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 (447) hide show
  1. {reactifact-0.20.2/reactifact.egg-info → reactifact-0.22.0}/PKG-INFO +112 -4
  2. {reactifact-0.20.2 → reactifact-0.22.0}/README.md +107 -3
  3. {reactifact-0.20.2 → reactifact-0.22.0}/pyproject.toml +55 -3
  4. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/__init__.py +22 -4
  5. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/a2a/remote.py +1 -1
  6. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/agents.py +29 -1
  7. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/artifacts.py +20 -0
  8. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/branching/__init__.py +2 -0
  9. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/branching/ops.py +38 -5
  10. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/chat.py +37 -15
  11. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/cli/__init__.py +37 -14
  12. reactifact-0.22.0/reactifact/cli/doctor.py +159 -0
  13. reactifact-0.22.0/reactifact/cli/graph.py +48 -0
  14. reactifact-0.22.0/reactifact/cli/new.py +97 -0
  15. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/cli/replay.py +14 -2
  16. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/commit.py +31 -0
  17. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/context/context.py +110 -19
  18. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/context/pending.py +18 -5
  19. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/effects.py +45 -11
  20. reactifact-0.22.0/reactifact/experiments.py +240 -0
  21. reactifact-0.22.0/reactifact/interrupt.py +143 -0
  22. reactifact-0.22.0/reactifact/knowledge/__init__.py +143 -0
  23. reactifact-0.22.0/reactifact/knowledge/_closers.py +25 -0
  24. reactifact-0.22.0/reactifact/knowledge/bridge.py +169 -0
  25. reactifact-0.22.0/reactifact/knowledge/chunk.py +212 -0
  26. reactifact-0.22.0/reactifact/knowledge/connectors.py +137 -0
  27. reactifact-0.22.0/reactifact/knowledge/docstore.py +228 -0
  28. reactifact-0.22.0/reactifact/knowledge/embed.py +253 -0
  29. reactifact-0.22.0/reactifact/knowledge/errors.py +31 -0
  30. reactifact-0.22.0/reactifact/knowledge/extract.py +124 -0
  31. reactifact-0.22.0/reactifact/knowledge/http.py +189 -0
  32. reactifact-0.22.0/reactifact/knowledge/indexes/__init__.py +25 -0
  33. reactifact-0.22.0/reactifact/knowledge/indexes/acl.py +24 -0
  34. reactifact-0.22.0/reactifact/knowledge/indexes/base.py +69 -0
  35. reactifact-0.22.0/reactifact/knowledge/indexes/chroma.py +266 -0
  36. reactifact-0.22.0/reactifact/knowledge/indexes/fusion.py +36 -0
  37. reactifact-0.22.0/reactifact/knowledge/indexes/keyword.py +57 -0
  38. reactifact-0.22.0/reactifact/knowledge/indexes/math.py +21 -0
  39. reactifact-0.22.0/reactifact/knowledge/indexes/memory.py +137 -0
  40. reactifact-0.22.0/reactifact/knowledge/indexes/pgvector.py +331 -0
  41. reactifact-0.22.0/reactifact/knowledge/indexes/qdrant.py +359 -0
  42. reactifact-0.22.0/reactifact/knowledge/indexes/sqlite.py +218 -0
  43. reactifact-0.22.0/reactifact/knowledge/models.py +132 -0
  44. reactifact-0.22.0/reactifact/knowledge/pipeline.py +523 -0
  45. reactifact-0.22.0/reactifact/knowledge/rerank.py +212 -0
  46. reactifact-0.22.0/reactifact/knowledge/templates/knowledge.html +125 -0
  47. reactifact-0.22.0/reactifact/knowledge/web.py +95 -0
  48. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/operations.py +8 -1
  49. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/patches.py +27 -4
  50. reactifact-0.22.0/reactifact/policy.py +65 -0
  51. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/produce.py +2 -1
  52. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/recipes/__init__.py +25 -0
  53. reactifact-0.22.0/reactifact/recipes/map_reduce.py +262 -0
  54. reactifact-0.22.0/reactifact/recipes/memory_store.py +448 -0
  55. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/recipes/supervisor.py +1 -1
  56. reactifact-0.22.0/reactifact/recipes/swarm.py +186 -0
  57. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/replay.py +107 -1
  58. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/resources.py +10 -0
  59. reactifact-0.22.0/reactifact/runtime/events.py +196 -0
  60. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/runtime/patch.py +44 -1
  61. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/runtime/runtime.py +344 -48
  62. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/session.py +60 -0
  63. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/step/core.py +13 -0
  64. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/step/decorator.py +2 -0
  65. reactifact-0.22.0/reactifact/streaming.py +352 -0
  66. reactifact-0.22.0/reactifact/subflow.py +142 -0
  67. reactifact-0.22.0/reactifact/templates/__init__.py +0 -0
  68. reactifact-0.22.0/reactifact/templates/daemon/.env.example +32 -0
  69. reactifact-0.22.0/reactifact/templates/daemon/.gitignore +7 -0
  70. reactifact-0.22.0/reactifact/templates/daemon/Dockerfile +12 -0
  71. reactifact-0.22.0/reactifact/templates/daemon/README.md +47 -0
  72. reactifact-0.22.0/reactifact/templates/daemon/app/__init__.py +0 -0
  73. reactifact-0.22.0/reactifact/templates/daemon/app/config.py +96 -0
  74. reactifact-0.22.0/reactifact/templates/daemon/app/llm.py +64 -0
  75. reactifact-0.22.0/reactifact/templates/daemon/app/llm_presets.py +63 -0
  76. reactifact-0.22.0/reactifact/templates/daemon/app/main.py +55 -0
  77. reactifact-0.22.0/reactifact/templates/daemon/app/models.py +22 -0
  78. reactifact-0.22.0/reactifact/templates/daemon/app/monitor.py +53 -0
  79. reactifact-0.22.0/reactifact/templates/daemon/app/prompts.py +10 -0
  80. reactifact-0.22.0/reactifact/templates/daemon/app/resources.py +19 -0
  81. reactifact-0.22.0/reactifact/templates/daemon/app/runner.py +46 -0
  82. reactifact-0.22.0/reactifact/templates/daemon/pyproject.toml +40 -0
  83. reactifact-0.22.0/reactifact/templates/daemon/tests/__init__.py +0 -0
  84. reactifact-0.22.0/reactifact/templates/daemon/tests/test_daemon.py +41 -0
  85. reactifact-0.22.0/reactifact/templates/fastapi_chat/.env.example +60 -0
  86. reactifact-0.22.0/reactifact/templates/fastapi_chat/.gitignore +7 -0
  87. reactifact-0.22.0/reactifact/templates/fastapi_chat/Dockerfile +14 -0
  88. reactifact-0.22.0/reactifact/templates/fastapi_chat/README.md +120 -0
  89. reactifact-0.22.0/reactifact/templates/fastapi_chat/app/__init__.py +0 -0
  90. reactifact-0.22.0/reactifact/templates/fastapi_chat/app/agent/__init__.py +0 -0
  91. reactifact-0.22.0/reactifact/templates/fastapi_chat/app/agent/pipeline.py +83 -0
  92. reactifact-0.22.0/reactifact/templates/fastapi_chat/app/agent/prompts.py +14 -0
  93. reactifact-0.22.0/reactifact/templates/fastapi_chat/app/agent/resources.py +29 -0
  94. reactifact-0.22.0/reactifact/templates/fastapi_chat/app/agent/steps/__init__.py +3 -0
  95. reactifact-0.22.0/reactifact/templates/fastapi_chat/app/agent/steps/answer.py +35 -0
  96. reactifact-0.22.0/reactifact/templates/fastapi_chat/app/api/__init__.py +0 -0
  97. reactifact-0.22.0/reactifact/templates/fastapi_chat/app/api/deps.py +21 -0
  98. reactifact-0.22.0/reactifact/templates/fastapi_chat/app/api/routes/__init__.py +0 -0
  99. reactifact-0.22.0/reactifact/templates/fastapi_chat/app/api/routes/chat.py +86 -0
  100. reactifact-0.22.0/reactifact/templates/fastapi_chat/app/authz.py +28 -0
  101. reactifact-0.22.0/reactifact/templates/fastapi_chat/app/bootstrap.py +88 -0
  102. reactifact-0.22.0/reactifact/templates/fastapi_chat/app/config.py +135 -0
  103. reactifact-0.22.0/reactifact/templates/fastapi_chat/app/llm.py +60 -0
  104. reactifact-0.22.0/reactifact/templates/fastapi_chat/app/llm_presets.py +63 -0
  105. reactifact-0.22.0/reactifact/templates/fastapi_chat/app/main.py +71 -0
  106. reactifact-0.22.0/reactifact/templates/fastapi_chat/app/models.py +33 -0
  107. reactifact-0.22.0/reactifact/templates/fastapi_chat/app/security.py +74 -0
  108. reactifact-0.22.0/reactifact/templates/fastapi_chat/pyproject.toml +48 -0
  109. reactifact-0.22.0/reactifact/templates/fastapi_chat/tests/__init__.py +0 -0
  110. reactifact-0.22.0/reactifact/templates/fastapi_chat/tests/conftest.py +32 -0
  111. reactifact-0.22.0/reactifact/templates/fastapi_chat/tests/test_auth_sessions.py +36 -0
  112. reactifact-0.22.0/reactifact/templates/fastapi_chat/tests/test_chat_sse.py +52 -0
  113. reactifact-0.22.0/reactifact/templates/fastapi_chat/tests/test_settings.py +75 -0
  114. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tools/base.py +103 -24
  115. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tools/use/hitl.py +8 -15
  116. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tracing/_shared.py +3 -0
  117. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tracing/models.py +7 -0
  118. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tracing/postgres.py +48 -20
  119. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tracing/store.py +49 -20
  120. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tracing/tracer.py +278 -11
  121. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tracing/web.py +6 -1
  122. reactifact-0.22.0/reactifact/validate.py +273 -0
  123. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/viz.py +29 -25
  124. {reactifact-0.20.2 → reactifact-0.22.0/reactifact.egg-info}/PKG-INFO +112 -4
  125. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact.egg-info/SOURCES.txt +98 -0
  126. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact.egg-info/requires.txt +6 -0
  127. reactifact-0.22.0/tests/test_agent_policy.py +312 -0
  128. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_audit.py +3 -3
  129. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_branching.py +25 -0
  130. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_chat_web.py +39 -7
  131. reactifact-0.22.0/tests/test_checkpoints.py +163 -0
  132. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_cli.py +33 -0
  133. reactifact-0.22.0/tests/test_cli_doctor.py +72 -0
  134. reactifact-0.22.0/tests/test_cli_new.py +37 -0
  135. reactifact-0.22.0/tests/test_code_review.py +38 -0
  136. reactifact-0.22.0/tests/test_conflict.py +92 -0
  137. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_determinism.py +4 -4
  138. reactifact-0.22.0/tests/test_devops_auth.py +194 -0
  139. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_devops_web.py +66 -0
  140. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_effects.py +50 -0
  141. reactifact-0.22.0/tests/test_experiments.py +143 -0
  142. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_friendly_api.py +2 -2
  143. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_golden.py +2 -2
  144. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_hitl.py +73 -1
  145. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_knowledge_web.py +25 -1
  146. reactifact-0.22.0/tests/test_map_reduce.py +116 -0
  147. reactifact-0.22.0/tests/test_memory_store.py +262 -0
  148. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_produce_styles.py +7 -0
  149. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_produce_trigger.py +2 -3
  150. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_public_api.py +24 -3
  151. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_quick.py +3 -3
  152. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_reacts_to.py +2 -3
  153. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_redaction.py +2 -2
  154. reactifact-0.22.0/tests/test_replay_tools.py +226 -0
  155. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_request.py +29 -4
  156. reactifact-0.22.0/tests/test_stream_events.py +200 -0
  157. reactifact-0.22.0/tests/test_subflow.py +213 -0
  158. reactifact-0.22.0/tests/test_swarm.py +170 -0
  159. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_testing_lab.py +2 -2
  160. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_testing_mock.py +2 -2
  161. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_tools.py +1 -1
  162. reactifact-0.22.0/tests/test_tour.py +195 -0
  163. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_tracing.py +337 -1
  164. reactifact-0.22.0/tests/test_validate.py +130 -0
  165. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_viz.py +26 -0
  166. reactifact-0.20.2/reactifact/cli/graph.py +0 -21
  167. reactifact-0.20.2/reactifact/interrupt.py +0 -65
  168. reactifact-0.20.2/reactifact/streaming.py +0 -69
  169. reactifact-0.20.2/tests/test_tour.py +0 -55
  170. {reactifact-0.20.2 → reactifact-0.22.0}/LICENSE +0 -0
  171. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/__main__.py +0 -0
  172. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/_extras.py +0 -0
  173. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/_httpx.py +0 -0
  174. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/_persistence.py +0 -0
  175. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/a2a/__init__.py +0 -0
  176. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/a2a/client.py +0 -0
  177. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/a2a/models.py +0 -0
  178. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/a2a/server.py +0 -0
  179. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/agent_tool.py +0 -0
  180. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/audit.py +0 -0
  181. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/authz.py +0 -0
  182. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/branching/store.py +0 -0
  183. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/budget.py +0 -0
  184. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/cache.py +0 -0
  185. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/checkpoints.py +0 -0
  186. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/cli/branch.py +0 -0
  187. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/cli/common.py +0 -0
  188. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/cli/context.py +0 -0
  189. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/cli/eval.py +0 -0
  190. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/cli/scenario.py +0 -0
  191. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/cli/skills.py +0 -0
  192. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/cli/trace.py +0 -0
  193. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/commit_log.py +0 -0
  194. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/consume.py +0 -0
  195. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/context/__init__.py +0 -0
  196. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/context/index.py +0 -0
  197. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/context/serialization.py +0 -0
  198. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/context_builder.py +0 -0
  199. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/eval/__init__.py +0 -0
  200. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/eval/dataset.py +0 -0
  201. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/eval/evaluators.py +0 -0
  202. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/eval/judge.py +0 -0
  203. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/eval/online.py +0 -0
  204. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/eval/runner.py +0 -0
  205. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/eval/scoring.py +0 -0
  206. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/events.py +0 -0
  207. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/guardrails.py +0 -0
  208. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/llm_agent.py +0 -0
  209. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/logging.py +0 -0
  210. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/mcp/__init__.py +0 -0
  211. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/mcp/client.py +0 -0
  212. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/mcp/oauth.py +0 -0
  213. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/mcp/server.py +0 -0
  214. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/metrics.py +0 -0
  215. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/native_tool_use.py +0 -0
  216. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/pricing.py +0 -0
  217. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/prompts.py +0 -0
  218. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/__init__.py +0 -0
  219. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/_retry.py +0 -0
  220. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/anthropic.py +0 -0
  221. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/azure.py +0 -0
  222. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/cerebras.py +0 -0
  223. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/chat.py +0 -0
  224. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/contracts.py +0 -0
  225. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/deepseek.py +0 -0
  226. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/fake.py +0 -0
  227. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/fireworks.py +0 -0
  228. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/gemini.py +0 -0
  229. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/github_models.py +0 -0
  230. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/groq.py +0 -0
  231. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/image.py +0 -0
  232. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/mistral.py +0 -0
  233. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/nvidia.py +0 -0
  234. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/ollama.py +0 -0
  235. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/openai.py +0 -0
  236. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/openrouter.py +0 -0
  237. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/perplexity.py +0 -0
  238. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/qwen.py +0 -0
  239. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/speech.py +0 -0
  240. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/together.py +0 -0
  241. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/video.py +0 -0
  242. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/xai.py +0 -0
  243. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/zai.py +0 -0
  244. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/py.typed +0 -0
  245. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/quick/__init__.py +0 -0
  246. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/quick/_shared.py +0 -0
  247. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/quick/agent.py +0 -0
  248. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/quick/chat.py +0 -0
  249. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/quick/models.py +0 -0
  250. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/quick/rag.py +0 -0
  251. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/quick/tools_agent.py +0 -0
  252. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/quota.py +0 -0
  253. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/recipes/cleanup.py +0 -0
  254. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/recipes/conversation.py +0 -0
  255. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/recipes/identity.py +0 -0
  256. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/recipes/inputs.py +0 -0
  257. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/recipes/memory.py +0 -0
  258. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/recipes/plan_execute.py +0 -0
  259. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/recipes/reflection.py +0 -0
  260. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/recipes/resolve.py +0 -0
  261. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/recipes/rollback.py +0 -0
  262. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/recipes/search.py +0 -0
  263. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/recipes/skills.py +0 -0
  264. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/recipes/status.py +0 -0
  265. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/recipes/text.py +0 -0
  266. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/recipes/tool_loop.py +0 -0
  267. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/redaction.py +0 -0
  268. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/relations.py +0 -0
  269. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/request.py +0 -0
  270. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/routing.py +0 -0
  271. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/runtime/__init__.py +0 -0
  272. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/runtime/budget.py +0 -0
  273. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/runtime/loop.py +0 -0
  274. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/runtime/outbox.py +0 -0
  275. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/scheduler.py +0 -0
  276. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/skills/reactifact/SKILL.md +0 -0
  277. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/skills/reactifact/references/effects-and-state.md +0 -0
  278. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/skills/reactifact/references/trust-and-safety.md +0 -0
  279. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/skills/reactifact-agents/SKILL.md +0 -0
  280. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/skills/reactifact-agents/references/consume.md +0 -0
  281. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/skills/reactifact-agents/references/effects.md +0 -0
  282. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/skills/reactifact-eval/SKILL.md +0 -0
  283. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/skills/reactifact-eval/references/online.md +0 -0
  284. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/skills/reactifact-from-langchain/SKILL.md +0 -0
  285. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/skills/reactifact-llm/SKILL.md +0 -0
  286. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/skills/reactifact-llm/references/providers.md +0 -0
  287. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/skills/reactifact-llm/references/tools.md +0 -0
  288. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/skills/reactifact-observability/SKILL.md +0 -0
  289. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/skills/reactifact-rag/SKILL.md +0 -0
  290. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/skills/reactifact-rag/references/sources.md +0 -0
  291. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/skills/reactifact-testing/SKILL.md +0 -0
  292. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/sources.py +0 -0
  293. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/step/__init__.py +0 -0
  294. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/step/annotations.py +0 -0
  295. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/step/call.py +0 -0
  296. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/step/resolve.py +0 -0
  297. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/structured.py +0 -0
  298. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/testing/__init__.py +0 -0
  299. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/testing/assertions.py +0 -0
  300. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/testing/exceptions.py +0 -0
  301. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/testing/fault.py +0 -0
  302. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/testing/golden.py +0 -0
  303. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/testing/lab.py +0 -0
  304. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/testing/mock.py +0 -0
  305. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/testing/pytest_plugin.py +0 -0
  306. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/testing/record.py +0 -0
  307. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/testing/registry.py +0 -0
  308. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tool_use.py +0 -0
  309. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tools/__init__.py +0 -0
  310. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tools/agent.py +0 -0
  311. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tools/native.py +0 -0
  312. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tools/use/__init__.py +0 -0
  313. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tools/use/base.py +0 -0
  314. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tools/use/blocking.py +0 -0
  315. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tracing/__init__.py +0 -0
  316. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tracing/_otlp.py +0 -0
  317. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tracing/columns.py +0 -0
  318. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tracing/langfuse.py +0 -0
  319. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tracing/otlp.py +0 -0
  320. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tracing/templates/app.css +0 -0
  321. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tracing/templates/sessions.html +0 -0
  322. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tracing/templates/ui.html +0 -0
  323. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tracing/templates/ui_run.html +0 -0
  324. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/triggers.py +0 -0
  325. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/types.py +0 -0
  326. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/verify.py +0 -0
  327. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/web.py +0 -0
  328. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact.egg-info/dependency_links.txt +0 -0
  329. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact.egg-info/entry_points.txt +0 -0
  330. {reactifact-0.20.2 → reactifact-0.22.0}/reactifact.egg-info/top_level.txt +0 -0
  331. {reactifact-0.20.2 → reactifact-0.22.0}/setup.cfg +0 -0
  332. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_a2a.py +0 -0
  333. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_a2a_interop.py +0 -0
  334. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_absent_consume.py +0 -0
  335. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_agent_tool.py +0 -0
  336. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_anthropic_provider.py +0 -0
  337. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_artifact_store.py +0 -0
  338. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_artifacts.py +0 -0
  339. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_authz.py +0 -0
  340. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_backbone.py +0 -0
  341. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_budget.py +0 -0
  342. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_cache.py +0 -0
  343. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_chat_example.py +0 -0
  344. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_chat_memory.py +0 -0
  345. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_chat_outbox.py +0 -0
  346. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_checkpoint.py +0 -0
  347. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_checkpoints_concurrency.py +0 -0
  348. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_cli_scenario.py +0 -0
  349. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_commit_dag.py +0 -0
  350. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_commit_log.py +0 -0
  351. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_compaction.py +0 -0
  352. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_concurrency.py +0 -0
  353. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_consumes_produces.py +0 -0
  354. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_context_at.py +0 -0
  355. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_context_builder.py +0 -0
  356. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_correlated_consume.py +0 -0
  357. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_debounce.py +0 -0
  358. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_devops.py +0 -0
  359. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_devops_online.py +0 -0
  360. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_eval.py +0 -0
  361. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_eval_dataset.py +0 -0
  362. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_eval_judge.py +0 -0
  363. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_eval_online.py +0 -0
  364. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_eval_trajectory.py +0 -0
  365. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_fintech_audit.py +0 -0
  366. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_forklab.py +0 -0
  367. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_forklab_web.py +0 -0
  368. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_gemini_provider.py +0 -0
  369. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_guardrails.py +0 -0
  370. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_image_provider.py +0 -0
  371. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_invalidation.py +0 -0
  372. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_join_consume.py +0 -0
  373. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_knowledge.py +0 -0
  374. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_lazy_providers.py +0 -0
  375. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_logging.py +0 -0
  376. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_loop_bound_client.py +0 -0
  377. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_mcp.py +0 -0
  378. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_medic_lab.py +0 -0
  379. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_medic_lab_web.py +0 -0
  380. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_metrics.py +0 -0
  381. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_multisource.py +0 -0
  382. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_native_tool_use.py +0 -0
  383. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_openai_provider.py +0 -0
  384. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_outbox.py +0 -0
  385. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_patches.py +0 -0
  386. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_pending_actions.py +0 -0
  387. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_prompts.py +0 -0
  388. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_provider_auth.py +0 -0
  389. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_provider_retry.py +0 -0
  390. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_providers_integration.py +0 -0
  391. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_quota.py +0 -0
  392. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_recipe_conversation.py +0 -0
  393. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_recipe_plan_execute.py +0 -0
  394. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_recipe_reflection.py +0 -0
  395. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_recipe_supervisor.py +0 -0
  396. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_recipe_tool_loop.py +0 -0
  397. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_recipes.py +0 -0
  398. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_recipes_inputs.py +0 -0
  399. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_recipes_memory.py +0 -0
  400. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_recipes_skills.py +0 -0
  401. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_relation_graph.py +0 -0
  402. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_relations.py +0 -0
  403. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_repair.py +0 -0
  404. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_repair_web.py +0 -0
  405. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_replay.py +0 -0
  406. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_repo_agent.py +0 -0
  407. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_resources.py +0 -0
  408. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_retry.py +0 -0
  409. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_routing.py +0 -0
  410. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_runtime.py +0 -0
  411. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_runtime_errors.py +0 -0
  412. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_scheduler_semantics.py +0 -0
  413. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_session_append.py +0 -0
  414. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_sessions.py +0 -0
  415. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_shutdown.py +0 -0
  416. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_skills.py +0 -0
  417. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_sources.py +0 -0
  418. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_sources_search.py +0 -0
  419. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_sources_vector.py +0 -0
  420. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_speech_provider.py +0 -0
  421. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_starter_app.py +0 -0
  422. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_step_annotated.py +0 -0
  423. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_step_scope.py +0 -0
  424. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_step_watermark.py +0 -0
  425. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_streaming.py +0 -0
  426. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_structured.py +0 -0
  427. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_testing_assertions.py +0 -0
  428. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_testing_golden.py +0 -0
  429. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_testing_provenance.py +0 -0
  430. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_testing_pytest_plugin.py +0 -0
  431. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_testing_registry.py +0 -0
  432. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_token_budget.py +0 -0
  433. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_trace_columns.py +0 -0
  434. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_trace_limits.py +0 -0
  435. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_trace_tags.py +0 -0
  436. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_trace_ui.py +0 -0
  437. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_type_registry.py +0 -0
  438. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_vendor_factories.py +0 -0
  439. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_vendor_multimodal_factories.py +0 -0
  440. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_verify.py +0 -0
  441. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_version.py +0 -0
  442. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_video_provider.py +0 -0
  443. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_view.py +0 -0
  444. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_web_source.py +0 -0
  445. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_workspace.py +0 -0
  446. {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_workspace_with_sources.py +0 -0
  447. {reactifact-0.20.2 → reactifact-0.22.0}/tests/tests_checkpoints_sqlite.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reactifact
3
- Version: 0.20.2
3
+ Version: 0.22.0
4
4
  Summary: Reactive, artifact-driven agent runtime: agents transform versioned, typed, provenance-aware artifacts inside an evolving context
5
5
  License-Expression: MIT
6
6
  Project-URL: Homepage, https://github.com/bzdvdn/reactifact
@@ -30,6 +30,10 @@ Requires-Dist: mypy>=1.11; extra == "dev"
30
30
  Requires-Dist: pytest>=9.1.1; extra == "dev"
31
31
  Requires-Dist: pytest-cov>=7.1.0; extra == "dev"
32
32
  Requires-Dist: import-linter>=2.0; extra == "dev"
33
+ Requires-Dist: httpx2; extra == "dev"
34
+ Provides-Extra: knowledge
35
+ Provides-Extra: knowledge-chroma
36
+ Requires-Dist: chromadb>=0.5; extra == "knowledge-chroma"
33
37
  Provides-Extra: web
34
38
  Requires-Dist: fastapi>=0.115; extra == "web"
35
39
  Requires-Dist: uvicorn[standard]>=0.30; extra == "web"
@@ -59,9 +63,38 @@ Dynamic: license-file
59
63
  [![Ask DeepWiki](docs/img/deepwiki.svg)](https://deepwiki.com/bzdvdn/reactifact)
60
64
  [![Docs](https://img.shields.io/badge/docs-bzdvdn.github.io%2Freactifact-blue)](https://bzdvdn.github.io/reactifact/)
61
65
 
62
- > **Is:** a Python library (3 core deps) · single-process · typed, versioned artifacts with provenance · deterministic replay · runs offline, no API key
66
+ > **Is:** a Python library (3 core deps) · single-process · typed, versioned artifacts with provenance · deterministic replay · optional code-first knowledge base (SQLite/Qdrant) · runs offline, no API key
63
67
  > **Isn't:** a managed platform · a distributed task queue · a pre-built agent/tool marketplace
64
68
 
69
+ ## Start here
70
+
71
+ **Build an app**
72
+ ```bash
73
+ uv init my-agent && cd my-agent
74
+ uv add reactifact # core + CLI; FastAPI stays optional
75
+ uv run reactifact new app my-app # FastAPI: auth, sessions, SSE, traces
76
+ # or: uv run reactifact new daemon my-worker
77
+ ```
78
+
79
+ The generated FastAPI project declares `reactifact[web]` itself; installing
80
+ `reactifact` alone never pulls FastAPI. The template and the code review
81
+ example are the best starting points; see [Examples](docs/en/examples.md).
82
+
83
+ **Use it in existing code**
84
+ ```bash
85
+ uv add reactifact
86
+ uv run reactifact skills install # teach your coding agent the mental model
87
+ ```
88
+ Then start with `reactifact.quick` in [Quickstart](docs/en/quickstart.md), or
89
+ read [Concepts](docs/en/concepts.md) before designing artifacts.
90
+
91
+ **Inspect what a run actually did**
92
+ ```bash
93
+ reactifact graph my_app.agents
94
+ reactifact trace traces.db
95
+ reactifact replay sessions.sqlite3
96
+ ```
97
+
65
98
  A question like *"why did infra costs jump in Q2?"* needs a spreadsheet, a policy doc and a page off the web — and the *next* question needs a different subset. That is not one graph you can draw up front. You declare what artifacts exist and what agents can do with them; the runtime derives the order — and the dependency graph — from state. You don't draw the graph.
66
99
 
67
100
  Every derived artifact then links to what produced it
@@ -134,6 +167,70 @@ Two agents explore independently on their own forks and merge back automatically
134
167
 
135
168
  ![forklab demo: two strategies (depth/breadth) investigate on separate forks and merge cleanly; a second run edits the same artifact on both forks and reactifact raises MergeConflict instead of guessing, then re-merges under an explicit policy.](docs/img/forklab-demo.gif)
136
169
 
170
+ ## Knowledge base: code-first ingestion
171
+
172
+ Agents need a corpus before they can reason over one. The optional
173
+ **`reactifact.knowledge`** layer turns documents into an index — as ordinary
174
+ Python objects, not YAML pipelines, a CLI or a plugin registry:
175
+
176
+ ```python
177
+ from reactifact import RuntimeResources
178
+ from reactifact.knowledge import (
179
+ KnowledgePipeline, ProviderEmbedder, SectionsChunker, SqliteIndex,
180
+ llm_reranker,
181
+ )
182
+ from reactifact.providers import embedder_from_env, llm_from_env
183
+
184
+ resources = RuntimeResources(
185
+ llm=llm_from_env(), # chat: rerank (and answers)
186
+ embedder=embedder_from_env(), # embeddings: index and query
187
+ )
188
+
189
+ pipeline = KnowledgePipeline(
190
+ connector, # source_id + async fetch()
191
+ chunker=SectionsChunker(max_tokens=400, overlap=60),
192
+ embedder=ProviderEmbedder(resources.embedder), # reuse the core provider
193
+ index=SqliteIndex(".reactifact/knowledge.db"), # or QdrantIndex(...)
194
+ )
195
+
196
+ await pipeline.run(incremental=True) # skips unchanged documents
197
+ hits = await pipeline.query(
198
+ "how do I install it?",
199
+ top_k=5,
200
+ hybrid=True,
201
+ rerank=llm_reranker( # optional: reorder/filter
202
+ resources.llm,
203
+ instructions="Prefer runbooks; ignore deprecated docs.",
204
+ ),
205
+ )
206
+ ```
207
+
208
+ It keeps the same boundaries as the rest of reactifact: `reactifact` never
209
+ imports it, it reuses the `EmbeddingProvider` on `RuntimeResources`, and
210
+ `IndexSource` / `IngestStep` are the only explicit bridges into `Source` /
211
+ `Step`. The layer ships `MemoryIndex`, `SqliteIndex`, `QdrantIndex`,
212
+ `PgVectorIndex` (`reactifact[pg]`) and an optional `ChromaIndex`
213
+ (`reactifact[knowledge-chroma]`), incremental `DocStore`
214
+ state, ACL-aware reconciliation, and BM25 + RRF hybrid
215
+ retrieval. No extra runtime dependencies; `FilesystemConnector` is the built-in
216
+ local-docs connector. `rerank=` is a query-time hook for
217
+ domain relevance policy (sync or async); `llm_reranker(resources.llm)` is an
218
+ optional helper that runs on the core chat provider and accepts custom
219
+ `system_prompt` / `instructions` / `user_prompt`.
220
+
221
+ ```bash
222
+ # fully offline: SQLite index + deterministic embedder
223
+ uv run python examples/knowledge_base/build.py --docs docs/en --query "sources"
224
+ # switch to Qdrant with the same pipeline
225
+ uv run python examples/knowledge_base/build.py --docs docs/en --qdrant-url http://localhost:6333
226
+ ```
227
+
228
+ See [Knowledge base](docs/en/knowledge.md) (or [по-русски](docs/ru/knowledge.md))
229
+ for connectors, indexes, incremental state and the bridge APIs. For ops, an
230
+ optional `reactifact.knowledge.web.create_knowledge_router` serves a read-only
231
+ `/knowledge` status page from the `DocStore` ledger — mounted separately from
232
+ the traces dashboard.
233
+
137
234
  <details>
138
235
  <summary><strong>If you know Celery…</strong> — the programming model, not its distributed runtime</summary>
139
236
 
@@ -267,7 +364,7 @@ Full breakdown, including where reactifact is *not* the right choice:
267
364
  - **Patch** — the compiled, validated change-set applied as one atomic commit.
268
365
  - **Step** — the unit of work: declares `consumes`/`produces`, returns its output or writes effects.
269
366
  - **Agent** — a thin container of `steps`; the runtime derives triggers from their `consume` contracts.
270
- - **Source** — retrieval is a capability: vector search is *one* strategy, not the only one; filesystem, CSV, and the web are equally first-class today (direct API, keyword, and SQL sources are on the [roadmap](docs/roadmap.md#next), not yet shipped).
367
+ - **Source** — retrieval is a capability: vector search is *one* strategy, not the only one; filesystem, CSV, and the web are equally first-class today (direct API, keyword, and SQL sources are on the [roadmap](docs/roadmap.md#next), not yet shipped). For corpus ingestion, the optional `knowledge` layer adds connectors, chunking, embeddings and SQLite/Qdrant indexes.
271
368
  - **Provenance** — every derived artifact links to what produced it
272
369
  (`Answer —supported_by→ Claim —derived_from→ Evidence —extracted_from→ Doc`).
273
370
  - **HITL** — humans as `effects.ask(...)` → `PendingQuestion`, answered via `effects.resume(...)` like any agent.
@@ -302,6 +399,13 @@ Full breakdown, including where reactifact is *not* the right choice:
302
399
  — pure and LLM-free, except the summarizer, which takes your callback.
303
400
  - **Viz & CLI** — Mermaid `blueprint`/`context_to_mermaid`/`trace_to_mermaid`;
304
401
  `reactifact` with `graph`/`context`/`trace`/`replay`/`branch`.
402
+ - **Knowledge base (optional)** — code-first
403
+ `Connector -> RawDocument -> Document -> Chunk -> Index`: incremental
404
+ `DocStore`, ACL-aware reconcile, BM25 + RRF hybrid retrieval,
405
+ `MemoryIndex`/`SqliteIndex`/`QdrantIndex`/`PgVectorIndex`, optional
406
+ `ChromaIndex`; reuses core `EmbeddingProvider`s
407
+ and exposes `IndexSource`/`IngestStep` bridges. No YAML, CLI or plugin
408
+ registry (`pip install "reactifact[knowledge]"`).
305
409
 
306
410
  ## Agent Skills
307
411
 
@@ -338,8 +442,10 @@ Prefer a notebook? [![Open in Colab](https://colab.research.google.com/assets/co
338
442
 
339
443
  - `starter_app` — copy-pasteable FastAPI app: structured call, RAG, tools, session chat.
340
444
  - `knowledge` — multi-source chat: search → evidence → claim verification → answer, with CSV calculation.
445
+ - `knowledge_base` — real ingestion: connector → chunks → SQLite/Qdrant, incremental state, hybrid query.
341
446
  - `medic_lab` — hypothesis laboratory: competing hypotheses scored, HITL steering, honest report.
342
447
  - `devops` — HITL tool agents + LLM tool router + trace dashboard.
448
+ - `code_review` — deterministic-first diff review: rules + optional LLM findings → linked report.
343
449
  - `repair` — budget-aware replanning (chat/data in Russian by design).
344
450
  - `chat` — minimal offline single-model multi-turn conversation (`Conversation` + bounded `ChatMemory`).
345
451
  - `forklab` — deterministic branch & merge: two strategies on their own forks, three-way merge.
@@ -355,6 +461,7 @@ Prefer a notebook? [![Open in Colab](https://colab.research.google.com/assets/co
355
461
  - [Migrating](docs/en/migrating.md) — from LangGraph / CrewAI / LlamaIndex /
356
462
  plain Python: concept map, port-one-node, interop, checklist.
357
463
  - [Why reactifact](docs/en/why-reactifact.md) — the *design argument*: why effects, why the graph is derived rather than drawn, why determinism.
464
+ - [Knowledge base](docs/en/knowledge.md) — code-first ingestion/retrieval: connectors, incremental state, SQLite/Qdrant, hybrid search ([RU](docs/ru/knowledge.md)).
358
465
  - [Comparison](docs/en/comparison.md) — reactifact vs LangGraph/CrewAI, feature by feature, and when *not* to use reactifact.
359
466
  - [docs/constitution.md](docs/constitution.md) — the full design rationale and invariants.
360
467
  - [Roadmap](docs/roadmap.md) — what's next, and what's deliberately out of scope.
@@ -366,11 +473,12 @@ uv sync --extra dev --extra web
366
473
  .venv/bin/python -m pytest
367
474
  .venv/bin/mypy
368
475
  .venv/bin/ruff check
476
+ npx --yes pyright # static check with the repo's pyproject config
369
477
  ```
370
478
 
371
479
  ## Status & contributing
372
480
 
373
- Active, `0.20.2`, pre-1.0 — the API is stabilizing and `1.0` will freeze it
481
+ Active, `0.22.0`, pre-1.0 — the API is stabilizing and `1.0` will freeze it
374
482
  (see the [roadmap](docs/roadmap.md)); releases follow
375
483
  [Keep a Changelog](CHANGELOG.md). Questions and design discussion live in
376
484
  [GitHub Discussions](https://github.com/bzdvdn/reactifact/discussions); a star,
@@ -12,9 +12,38 @@
12
12
  [![Ask DeepWiki](docs/img/deepwiki.svg)](https://deepwiki.com/bzdvdn/reactifact)
13
13
  [![Docs](https://img.shields.io/badge/docs-bzdvdn.github.io%2Freactifact-blue)](https://bzdvdn.github.io/reactifact/)
14
14
 
15
- > **Is:** a Python library (3 core deps) · single-process · typed, versioned artifacts with provenance · deterministic replay · runs offline, no API key
15
+ > **Is:** a Python library (3 core deps) · single-process · typed, versioned artifacts with provenance · deterministic replay · optional code-first knowledge base (SQLite/Qdrant) · runs offline, no API key
16
16
  > **Isn't:** a managed platform · a distributed task queue · a pre-built agent/tool marketplace
17
17
 
18
+ ## Start here
19
+
20
+ **Build an app**
21
+ ```bash
22
+ uv init my-agent && cd my-agent
23
+ uv add reactifact # core + CLI; FastAPI stays optional
24
+ uv run reactifact new app my-app # FastAPI: auth, sessions, SSE, traces
25
+ # or: uv run reactifact new daemon my-worker
26
+ ```
27
+
28
+ The generated FastAPI project declares `reactifact[web]` itself; installing
29
+ `reactifact` alone never pulls FastAPI. The template and the code review
30
+ example are the best starting points; see [Examples](docs/en/examples.md).
31
+
32
+ **Use it in existing code**
33
+ ```bash
34
+ uv add reactifact
35
+ uv run reactifact skills install # teach your coding agent the mental model
36
+ ```
37
+ Then start with `reactifact.quick` in [Quickstart](docs/en/quickstart.md), or
38
+ read [Concepts](docs/en/concepts.md) before designing artifacts.
39
+
40
+ **Inspect what a run actually did**
41
+ ```bash
42
+ reactifact graph my_app.agents
43
+ reactifact trace traces.db
44
+ reactifact replay sessions.sqlite3
45
+ ```
46
+
18
47
  A question like *"why did infra costs jump in Q2?"* needs a spreadsheet, a policy doc and a page off the web — and the *next* question needs a different subset. That is not one graph you can draw up front. You declare what artifacts exist and what agents can do with them; the runtime derives the order — and the dependency graph — from state. You don't draw the graph.
19
48
 
20
49
  Every derived artifact then links to what produced it
@@ -87,6 +116,70 @@ Two agents explore independently on their own forks and merge back automatically
87
116
 
88
117
  ![forklab demo: two strategies (depth/breadth) investigate on separate forks and merge cleanly; a second run edits the same artifact on both forks and reactifact raises MergeConflict instead of guessing, then re-merges under an explicit policy.](docs/img/forklab-demo.gif)
89
118
 
119
+ ## Knowledge base: code-first ingestion
120
+
121
+ Agents need a corpus before they can reason over one. The optional
122
+ **`reactifact.knowledge`** layer turns documents into an index — as ordinary
123
+ Python objects, not YAML pipelines, a CLI or a plugin registry:
124
+
125
+ ```python
126
+ from reactifact import RuntimeResources
127
+ from reactifact.knowledge import (
128
+ KnowledgePipeline, ProviderEmbedder, SectionsChunker, SqliteIndex,
129
+ llm_reranker,
130
+ )
131
+ from reactifact.providers import embedder_from_env, llm_from_env
132
+
133
+ resources = RuntimeResources(
134
+ llm=llm_from_env(), # chat: rerank (and answers)
135
+ embedder=embedder_from_env(), # embeddings: index and query
136
+ )
137
+
138
+ pipeline = KnowledgePipeline(
139
+ connector, # source_id + async fetch()
140
+ chunker=SectionsChunker(max_tokens=400, overlap=60),
141
+ embedder=ProviderEmbedder(resources.embedder), # reuse the core provider
142
+ index=SqliteIndex(".reactifact/knowledge.db"), # or QdrantIndex(...)
143
+ )
144
+
145
+ await pipeline.run(incremental=True) # skips unchanged documents
146
+ hits = await pipeline.query(
147
+ "how do I install it?",
148
+ top_k=5,
149
+ hybrid=True,
150
+ rerank=llm_reranker( # optional: reorder/filter
151
+ resources.llm,
152
+ instructions="Prefer runbooks; ignore deprecated docs.",
153
+ ),
154
+ )
155
+ ```
156
+
157
+ It keeps the same boundaries as the rest of reactifact: `reactifact` never
158
+ imports it, it reuses the `EmbeddingProvider` on `RuntimeResources`, and
159
+ `IndexSource` / `IngestStep` are the only explicit bridges into `Source` /
160
+ `Step`. The layer ships `MemoryIndex`, `SqliteIndex`, `QdrantIndex`,
161
+ `PgVectorIndex` (`reactifact[pg]`) and an optional `ChromaIndex`
162
+ (`reactifact[knowledge-chroma]`), incremental `DocStore`
163
+ state, ACL-aware reconciliation, and BM25 + RRF hybrid
164
+ retrieval. No extra runtime dependencies; `FilesystemConnector` is the built-in
165
+ local-docs connector. `rerank=` is a query-time hook for
166
+ domain relevance policy (sync or async); `llm_reranker(resources.llm)` is an
167
+ optional helper that runs on the core chat provider and accepts custom
168
+ `system_prompt` / `instructions` / `user_prompt`.
169
+
170
+ ```bash
171
+ # fully offline: SQLite index + deterministic embedder
172
+ uv run python examples/knowledge_base/build.py --docs docs/en --query "sources"
173
+ # switch to Qdrant with the same pipeline
174
+ uv run python examples/knowledge_base/build.py --docs docs/en --qdrant-url http://localhost:6333
175
+ ```
176
+
177
+ See [Knowledge base](docs/en/knowledge.md) (or [по-русски](docs/ru/knowledge.md))
178
+ for connectors, indexes, incremental state and the bridge APIs. For ops, an
179
+ optional `reactifact.knowledge.web.create_knowledge_router` serves a read-only
180
+ `/knowledge` status page from the `DocStore` ledger — mounted separately from
181
+ the traces dashboard.
182
+
90
183
  <details>
91
184
  <summary><strong>If you know Celery…</strong> — the programming model, not its distributed runtime</summary>
92
185
 
@@ -220,7 +313,7 @@ Full breakdown, including where reactifact is *not* the right choice:
220
313
  - **Patch** — the compiled, validated change-set applied as one atomic commit.
221
314
  - **Step** — the unit of work: declares `consumes`/`produces`, returns its output or writes effects.
222
315
  - **Agent** — a thin container of `steps`; the runtime derives triggers from their `consume` contracts.
223
- - **Source** — retrieval is a capability: vector search is *one* strategy, not the only one; filesystem, CSV, and the web are equally first-class today (direct API, keyword, and SQL sources are on the [roadmap](docs/roadmap.md#next), not yet shipped).
316
+ - **Source** — retrieval is a capability: vector search is *one* strategy, not the only one; filesystem, CSV, and the web are equally first-class today (direct API, keyword, and SQL sources are on the [roadmap](docs/roadmap.md#next), not yet shipped). For corpus ingestion, the optional `knowledge` layer adds connectors, chunking, embeddings and SQLite/Qdrant indexes.
224
317
  - **Provenance** — every derived artifact links to what produced it
225
318
  (`Answer —supported_by→ Claim —derived_from→ Evidence —extracted_from→ Doc`).
226
319
  - **HITL** — humans as `effects.ask(...)` → `PendingQuestion`, answered via `effects.resume(...)` like any agent.
@@ -255,6 +348,13 @@ Full breakdown, including where reactifact is *not* the right choice:
255
348
  — pure and LLM-free, except the summarizer, which takes your callback.
256
349
  - **Viz & CLI** — Mermaid `blueprint`/`context_to_mermaid`/`trace_to_mermaid`;
257
350
  `reactifact` with `graph`/`context`/`trace`/`replay`/`branch`.
351
+ - **Knowledge base (optional)** — code-first
352
+ `Connector -> RawDocument -> Document -> Chunk -> Index`: incremental
353
+ `DocStore`, ACL-aware reconcile, BM25 + RRF hybrid retrieval,
354
+ `MemoryIndex`/`SqliteIndex`/`QdrantIndex`/`PgVectorIndex`, optional
355
+ `ChromaIndex`; reuses core `EmbeddingProvider`s
356
+ and exposes `IndexSource`/`IngestStep` bridges. No YAML, CLI or plugin
357
+ registry (`pip install "reactifact[knowledge]"`).
258
358
 
259
359
  ## Agent Skills
260
360
 
@@ -291,8 +391,10 @@ Prefer a notebook? [![Open in Colab](https://colab.research.google.com/assets/co
291
391
 
292
392
  - `starter_app` — copy-pasteable FastAPI app: structured call, RAG, tools, session chat.
293
393
  - `knowledge` — multi-source chat: search → evidence → claim verification → answer, with CSV calculation.
394
+ - `knowledge_base` — real ingestion: connector → chunks → SQLite/Qdrant, incremental state, hybrid query.
294
395
  - `medic_lab` — hypothesis laboratory: competing hypotheses scored, HITL steering, honest report.
295
396
  - `devops` — HITL tool agents + LLM tool router + trace dashboard.
397
+ - `code_review` — deterministic-first diff review: rules + optional LLM findings → linked report.
296
398
  - `repair` — budget-aware replanning (chat/data in Russian by design).
297
399
  - `chat` — minimal offline single-model multi-turn conversation (`Conversation` + bounded `ChatMemory`).
298
400
  - `forklab` — deterministic branch & merge: two strategies on their own forks, three-way merge.
@@ -308,6 +410,7 @@ Prefer a notebook? [![Open in Colab](https://colab.research.google.com/assets/co
308
410
  - [Migrating](docs/en/migrating.md) — from LangGraph / CrewAI / LlamaIndex /
309
411
  plain Python: concept map, port-one-node, interop, checklist.
310
412
  - [Why reactifact](docs/en/why-reactifact.md) — the *design argument*: why effects, why the graph is derived rather than drawn, why determinism.
413
+ - [Knowledge base](docs/en/knowledge.md) — code-first ingestion/retrieval: connectors, incremental state, SQLite/Qdrant, hybrid search ([RU](docs/ru/knowledge.md)).
311
414
  - [Comparison](docs/en/comparison.md) — reactifact vs LangGraph/CrewAI, feature by feature, and when *not* to use reactifact.
312
415
  - [docs/constitution.md](docs/constitution.md) — the full design rationale and invariants.
313
416
  - [Roadmap](docs/roadmap.md) — what's next, and what's deliberately out of scope.
@@ -319,11 +422,12 @@ uv sync --extra dev --extra web
319
422
  .venv/bin/python -m pytest
320
423
  .venv/bin/mypy
321
424
  .venv/bin/ruff check
425
+ npx --yes pyright # static check with the repo's pyproject config
322
426
  ```
323
427
 
324
428
  ## Status & contributing
325
429
 
326
- Active, `0.20.2`, pre-1.0 — the API is stabilizing and `1.0` will freeze it
430
+ Active, `0.22.0`, pre-1.0 — the API is stabilizing and `1.0` will freeze it
327
431
  (see the [roadmap](docs/roadmap.md)); releases follow
328
432
  [Keep a Changelog](CHANGELOG.md). Questions and design discussion live in
329
433
  [GitHub Discussions](https://github.com/bzdvdn/reactifact/discussions); a star,
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "reactifact"
7
- version = "0.20.2"
7
+ version = "0.22.0"
8
8
  description = "Reactive, artifact-driven agent runtime: agents transform versioned, typed, provenance-aware artifacts inside an evolving context"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
@@ -42,7 +42,10 @@ dev = [
42
42
  "pytest>=9.1.1",
43
43
  "pytest-cov>=7.1.0",
44
44
  "import-linter>=2.0",
45
+ "httpx2",
45
46
  ]
47
+ knowledge = [] # code-first knowledge layer; no extra runtime deps
48
+ knowledge-chroma = ["chromadb>=0.5"]
46
49
  web = [
47
50
  "fastapi>=0.115",
48
51
  "uvicorn[standard]>=0.30",
@@ -75,7 +78,9 @@ dev = [
75
78
  "pytest>=9.1.1",
76
79
  "pytest-cov>=7.1.0",
77
80
  "import-linter>=2.0",
81
+ "httpx2",
78
82
  ]
83
+ knowledge-chroma = ["chromadb>=0.5"]
79
84
  web = [
80
85
  "fastapi>=0.115",
81
86
  "uvicorn[standard]>=0.30",
@@ -108,7 +113,24 @@ packages = { find = { where = ["."], include = ["reactifact*"], exclude = ["exam
108
113
 
109
114
  [tool.setuptools.package-data]
110
115
  reactifact = ["py.typed", "skills/*/SKILL.md", "skills/*/references/*.md"]
116
+ "reactifact.templates" = [
117
+ "fastapi_chat/*",
118
+ "fastapi_chat/.env.example",
119
+ "fastapi_chat/.gitignore",
120
+ "fastapi_chat/app/*.py",
121
+ "fastapi_chat/app/api/*.py",
122
+ "fastapi_chat/app/api/routes/*.py",
123
+ "fastapi_chat/app/agent/*.py",
124
+ "fastapi_chat/app/agent/steps/*.py",
125
+ "fastapi_chat/tests/*.py",
126
+ "daemon/*",
127
+ "daemon/.env.example",
128
+ "daemon/.gitignore",
129
+ "daemon/app/*.py",
130
+ "daemon/tests/*.py",
131
+ ]
111
132
  "reactifact.tracing" = ["templates/*.html", "templates/*.css"]
133
+ "reactifact.knowledge" = ["templates/*.html"]
112
134
 
113
135
  [tool.pytest.ini_options]
114
136
  testpaths = ["tests"]
@@ -128,7 +150,7 @@ line-length = 88
128
150
  src = ["reactifact", "examples"]
129
151
  # Notebooks are Colab artifacts (IPython magics, top-level await) — not package
130
152
  # code; don't lint/format them.
131
- extend-exclude = ["*.ipynb"]
153
+ extend-exclude = ["*.ipynb", "templates", "reactifact/templates"]
132
154
 
133
155
  [tool.ruff.lint]
134
156
  select = [
@@ -160,6 +182,7 @@ python_version = "3.11"
160
182
  packages = ["reactifact", "examples"]
161
183
  strict = true
162
184
  warn_unused_ignores = true
185
+ exclude = ["reactifact/templates"]
163
186
 
164
187
  # pyright defaults its target to the interpreter it finds, which can resolve
165
188
  # below the 3.11 floor this package requires — making `StrEnum`/`datetime.UTC`
@@ -169,7 +192,7 @@ pythonVersion = "3.11"
169
192
  include = ["reactifact", "examples"]
170
193
  venvPath = "."
171
194
  venv = ".venv"
172
- exclude = ["build", "dist", ".venv", ".scratch", "**/__pycache__"]
195
+ exclude = ["build", "dist", ".venv", ".scratch", "reactifact/templates", "templates", "**/__pycache__"]
173
196
 
174
197
 
175
198
  [tool.importlinter]
@@ -238,6 +261,35 @@ forbidden_modules = [
238
261
  "reactifact.a2a",
239
262
  ]
240
263
 
264
+ [[tool.importlinter.contracts]]
265
+ name = "Core stays independent of the optional knowledge layer"
266
+ type = "forbidden"
267
+ allow_indirect_imports = true
268
+ source_modules = [
269
+ "reactifact.artifacts",
270
+ "reactifact.step",
271
+ "reactifact.agents",
272
+ "reactifact.consume",
273
+ "reactifact.effects",
274
+ "reactifact.patches",
275
+ "reactifact.context",
276
+ "reactifact.runtime",
277
+ "reactifact.providers",
278
+ "reactifact.quick",
279
+ "reactifact.recipes",
280
+ "reactifact.chat",
281
+ "reactifact.web",
282
+ "reactifact.cli",
283
+ "reactifact.sources",
284
+ "reactifact.mcp",
285
+ "reactifact.a2a",
286
+ "reactifact.tracing",
287
+ "reactifact.eval",
288
+ "reactifact.testing",
289
+ "reactifact.tools",
290
+ ]
291
+ forbidden_modules = ["reactifact.knowledge"]
292
+
241
293
  [[tool.importlinter.contracts]]
242
294
  name = "Recipes stay independent of app/transport layers"
243
295
  type = "forbidden"
@@ -25,9 +25,10 @@ from importlib.metadata import PackageNotFoundError as _PackageNotFoundError
25
25
  from importlib.metadata import version as _distribution_version
26
26
 
27
27
  from .agents import Agent, create_agent
28
- from .artifacts import Artifact
28
+ from .artifacts import Artifact, ArtifactConflict
29
29
  from .branching import MergeConflict
30
30
  from .budget import Budget, BudgetTracker, RunOutcome, RunStats
31
+ from .commit import ContextCheckpoint
31
32
  from .consume import Consume, consume
32
33
  from .context import Context, View
33
34
  from .effects import Effects, Handle
@@ -35,6 +36,10 @@ from .events import Event, EventType
35
36
  from .interrupt import PendingAction, PendingQuestion
36
37
  from .logging import bind, configure_logging, get_logger
37
38
  from .patches import Create, Delete, Link, Patch, Relation, Unlink, Update
39
+ from .policy import RetryPolicy
40
+
41
+ # Deprecated 0.1.x aliases: importable for the compatibility window, but kept
42
+ # out of `__all__` (the public surface) until their removal.
38
43
  from .produce import Produce, ProduceCall, produce
39
44
  from .providers import (
40
45
  EmbeddingProvider,
@@ -51,9 +56,16 @@ from .resources import ResourceKey, ResourceScope, RuntimeResources
51
56
  from .runtime import Runtime
52
57
  from .session import Session, SessionStore
53
58
  from .step import Latest, Scope, Step, StepCall, Wakes, When, step
59
+ from .subflow import SubflowResult, run_subflow
54
60
  from .tools import FunctionTool, Tool, ToolError, ToolOutput, tool
55
61
  from .triggers import Trigger
56
62
  from .types import register as register_type
63
+ from .validate import (
64
+ ValidationError,
65
+ ValidationIssue,
66
+ ValidationReport,
67
+ validate_agents,
68
+ )
57
69
 
58
70
  try:
59
71
  __version__ = _distribution_version("reactifact")
@@ -63,10 +75,12 @@ except _PackageNotFoundError: # source checkout without an installed distributi
63
75
  __all__ = [
64
76
  "Agent",
65
77
  "Artifact",
78
+ "ArtifactConflict",
66
79
  "Budget",
67
80
  "BudgetTracker",
68
81
  "Consume",
69
82
  "Context",
83
+ "ContextCheckpoint",
70
84
  "Create",
71
85
  "Delete",
72
86
  "EmbeddingProvider",
@@ -84,13 +98,13 @@ __all__ = [
84
98
  "Patch",
85
99
  "PendingAction",
86
100
  "PendingQuestion",
87
- "Produce",
88
- "ProduceCall",
89
101
  "Step",
90
102
  "StepCall",
103
+ "SubflowResult",
91
104
  "Relation",
92
105
  "ResourceKey",
93
106
  "ResourceScope",
107
+ "RetryPolicy",
94
108
  "RunOutcome",
95
109
  "RunStats",
96
110
  "Scope",
@@ -108,6 +122,9 @@ __all__ = [
108
122
  "Trigger",
109
123
  "Unlink",
110
124
  "Update",
125
+ "ValidationError",
126
+ "ValidationIssue",
127
+ "ValidationReport",
111
128
  "View",
112
129
  "Wakes",
113
130
  "When",
@@ -117,8 +134,9 @@ __all__ = [
117
134
  "create_agent",
118
135
  "current_request",
119
136
  "get_logger",
120
- "produce",
121
137
  "register_type",
138
+ "run_subflow",
122
139
  "step",
123
140
  "tool",
141
+ "validate_agents",
124
142
  ]
@@ -115,7 +115,7 @@ class A2ARemoteProduce(Step[Any]):
115
115
  )
116
116
  source = original.data if original is not None else data
117
117
  result = await self._client.send(
118
- data.resolution or "",
118
+ data.answer_text(),
119
119
  task_id=notes.get("a2a_task_id"),
120
120
  context_id=notes.get("a2a_context_id"),
121
121
  )
@@ -1,5 +1,6 @@
1
1
  from __future__ import annotations
2
2
 
3
+ import asyncio
3
4
  import time
4
5
  from abc import ABC
5
6
  from collections.abc import Callable, Sequence
@@ -13,6 +14,7 @@ from .context import Context
13
14
  from .effects import current_effects
14
15
  from .events import Event, EventType
15
16
  from .patches import Patch
17
+ from .policy import RetryPolicy
16
18
  from .step import (
17
19
  Step,
18
20
  StepCall,
@@ -83,6 +85,12 @@ class Agent(ABC): # noqa: B024 — interface without abstract methods, run() ha
83
85
  # the runtime default (max_concurrency). Use it to throttle LLM-bound
84
86
  # producers (rate limits) independently of cheap I/O (file reads).
85
87
  concurrency_limit: int | None = None
88
+ #: Retry policy for this agent's execution (class or instance level).
89
+ #: A retry gets a fresh `Effects` slot; only the successful patch commits.
90
+ retry: RetryPolicy | None = None
91
+ #: Hard per-execution deadline, in seconds. The runtime cancels the agent
92
+ #: when it passes; `asyncio.TimeoutError` then follows the retry policy.
93
+ timeout: float | None = None
86
94
  #: Whether the runtime auto-schedules this agent from matching events.
87
95
  #: `False` keeps it out of reactive scheduling (run it explicitly).
88
96
  wakes: bool | Callable[[Event, Context | None], bool] = True
@@ -101,12 +109,24 @@ class Agent(ABC): # noqa: B024 — interface without abstract methods, run() ha
101
109
  *,
102
110
  steps: Sequence[Step[Any]] | None = None,
103
111
  wakes: bool | Callable[[Event, Context | None], bool] | None = None,
112
+ retry: RetryPolicy | None = None,
113
+ timeout: float | None = None,
104
114
  ):
105
115
  self.name = name or self.name or self.__class__.__name__
106
116
 
107
117
  self.priority = (
108
118
  priority if priority is not None else getattr(self.__class__, "priority", 0)
109
119
  )
120
+ self.retry = (
121
+ retry if retry is not None else getattr(self.__class__, "retry", None)
122
+ )
123
+ self.timeout = (
124
+ timeout if timeout is not None else getattr(self.__class__, "timeout", None)
125
+ )
126
+ if self.retry is not None and not isinstance(self.retry, RetryPolicy):
127
+ raise TypeError("Agent.retry must be a RetryPolicy or None")
128
+ if self.timeout is not None and self.timeout <= 0:
129
+ raise ValueError("Agent.timeout must be > 0")
110
130
 
111
131
  existing_steps = self.__dict__.get("steps")
112
132
  existing_produces = self.__dict__.get("produces")
@@ -307,7 +327,11 @@ class Agent(ABC): # noqa: B024 — interface without abstract methods, run() ha
307
327
  context_token = set_step_context(context)
308
328
  call_token = set_step_call(call)
309
329
  try:
310
- result = await invoke_step(p, call)
330
+ if p.timeout is not None:
331
+ async with asyncio.timeout(p.timeout):
332
+ result = await invoke_step(p, call)
333
+ else:
334
+ result = await invoke_step(p, call)
311
335
  p._apply_result(result, call.effects)
312
336
  if trigger_cursor:
313
337
  context._step_cursors[cursor_key] = trigger_cursor
@@ -392,6 +416,8 @@ def create_agent(
392
416
  concurrency_limit: int | None = None,
393
417
  triggers: list[Trigger] | None = None,
394
418
  wakes: bool | Callable[[Event, Context | None], bool] = True,
419
+ retry: RetryPolicy | None = None,
420
+ timeout: float | None = None,
395
421
  ) -> Agent:
396
422
  """Builds an Agent instance without subclassing.
397
423
 
@@ -423,6 +449,8 @@ def create_agent(
423
449
  priority=priority,
424
450
  steps=resolved_steps,
425
451
  wakes=wakes,
452
+ retry=retry,
453
+ timeout=timeout,
426
454
  )
427
455
  if consumes is not None:
428
456
  agent.consumes = consumes
@@ -36,6 +36,26 @@ def blob_key(data_type: str, content_hash: str) -> str:
36
36
  return f"{data_type}:{content_hash}"
37
37
 
38
38
 
39
+ class ArtifactConflict(RuntimeError):
40
+ """An optimistic-concurrency update expected a different artifact version.
41
+
42
+ Raised by `effects.update(..., expected_version=...)`, `Context.update`, or
43
+ the runtime before a commit when a patch would overwrite a version another
44
+ writer already moved. The runtime validates the whole generation first, so
45
+ no patch from that generation is applied.
46
+ """
47
+
48
+ def __init__(self, artifact_id: str, expected: int, actual: int | None) -> None:
49
+ self.artifact_id = artifact_id
50
+ self.expected = expected
51
+ self.actual = actual
52
+ actual_text = actual if actual is not None else "absent"
53
+ super().__init__(
54
+ f"artifact {artifact_id!r} version conflict: expected {expected}, "
55
+ f"actual {actual_text}"
56
+ )
57
+
58
+
39
59
  @dataclass(frozen=True)
40
60
  class ArtifactVersion:
41
61
  """One immutable artifact revision, addressed by content hash.