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.
- {reactifact-0.20.2/reactifact.egg-info → reactifact-0.22.0}/PKG-INFO +112 -4
- {reactifact-0.20.2 → reactifact-0.22.0}/README.md +107 -3
- {reactifact-0.20.2 → reactifact-0.22.0}/pyproject.toml +55 -3
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/__init__.py +22 -4
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/a2a/remote.py +1 -1
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/agents.py +29 -1
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/artifacts.py +20 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/branching/__init__.py +2 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/branching/ops.py +38 -5
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/chat.py +37 -15
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/cli/__init__.py +37 -14
- reactifact-0.22.0/reactifact/cli/doctor.py +159 -0
- reactifact-0.22.0/reactifact/cli/graph.py +48 -0
- reactifact-0.22.0/reactifact/cli/new.py +97 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/cli/replay.py +14 -2
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/commit.py +31 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/context/context.py +110 -19
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/context/pending.py +18 -5
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/effects.py +45 -11
- reactifact-0.22.0/reactifact/experiments.py +240 -0
- reactifact-0.22.0/reactifact/interrupt.py +143 -0
- reactifact-0.22.0/reactifact/knowledge/__init__.py +143 -0
- reactifact-0.22.0/reactifact/knowledge/_closers.py +25 -0
- reactifact-0.22.0/reactifact/knowledge/bridge.py +169 -0
- reactifact-0.22.0/reactifact/knowledge/chunk.py +212 -0
- reactifact-0.22.0/reactifact/knowledge/connectors.py +137 -0
- reactifact-0.22.0/reactifact/knowledge/docstore.py +228 -0
- reactifact-0.22.0/reactifact/knowledge/embed.py +253 -0
- reactifact-0.22.0/reactifact/knowledge/errors.py +31 -0
- reactifact-0.22.0/reactifact/knowledge/extract.py +124 -0
- reactifact-0.22.0/reactifact/knowledge/http.py +189 -0
- reactifact-0.22.0/reactifact/knowledge/indexes/__init__.py +25 -0
- reactifact-0.22.0/reactifact/knowledge/indexes/acl.py +24 -0
- reactifact-0.22.0/reactifact/knowledge/indexes/base.py +69 -0
- reactifact-0.22.0/reactifact/knowledge/indexes/chroma.py +266 -0
- reactifact-0.22.0/reactifact/knowledge/indexes/fusion.py +36 -0
- reactifact-0.22.0/reactifact/knowledge/indexes/keyword.py +57 -0
- reactifact-0.22.0/reactifact/knowledge/indexes/math.py +21 -0
- reactifact-0.22.0/reactifact/knowledge/indexes/memory.py +137 -0
- reactifact-0.22.0/reactifact/knowledge/indexes/pgvector.py +331 -0
- reactifact-0.22.0/reactifact/knowledge/indexes/qdrant.py +359 -0
- reactifact-0.22.0/reactifact/knowledge/indexes/sqlite.py +218 -0
- reactifact-0.22.0/reactifact/knowledge/models.py +132 -0
- reactifact-0.22.0/reactifact/knowledge/pipeline.py +523 -0
- reactifact-0.22.0/reactifact/knowledge/rerank.py +212 -0
- reactifact-0.22.0/reactifact/knowledge/templates/knowledge.html +125 -0
- reactifact-0.22.0/reactifact/knowledge/web.py +95 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/operations.py +8 -1
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/patches.py +27 -4
- reactifact-0.22.0/reactifact/policy.py +65 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/produce.py +2 -1
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/recipes/__init__.py +25 -0
- reactifact-0.22.0/reactifact/recipes/map_reduce.py +262 -0
- reactifact-0.22.0/reactifact/recipes/memory_store.py +448 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/recipes/supervisor.py +1 -1
- reactifact-0.22.0/reactifact/recipes/swarm.py +186 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/replay.py +107 -1
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/resources.py +10 -0
- reactifact-0.22.0/reactifact/runtime/events.py +196 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/runtime/patch.py +44 -1
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/runtime/runtime.py +344 -48
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/session.py +60 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/step/core.py +13 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/step/decorator.py +2 -0
- reactifact-0.22.0/reactifact/streaming.py +352 -0
- reactifact-0.22.0/reactifact/subflow.py +142 -0
- reactifact-0.22.0/reactifact/templates/__init__.py +0 -0
- reactifact-0.22.0/reactifact/templates/daemon/.env.example +32 -0
- reactifact-0.22.0/reactifact/templates/daemon/.gitignore +7 -0
- reactifact-0.22.0/reactifact/templates/daemon/Dockerfile +12 -0
- reactifact-0.22.0/reactifact/templates/daemon/README.md +47 -0
- reactifact-0.22.0/reactifact/templates/daemon/app/__init__.py +0 -0
- reactifact-0.22.0/reactifact/templates/daemon/app/config.py +96 -0
- reactifact-0.22.0/reactifact/templates/daemon/app/llm.py +64 -0
- reactifact-0.22.0/reactifact/templates/daemon/app/llm_presets.py +63 -0
- reactifact-0.22.0/reactifact/templates/daemon/app/main.py +55 -0
- reactifact-0.22.0/reactifact/templates/daemon/app/models.py +22 -0
- reactifact-0.22.0/reactifact/templates/daemon/app/monitor.py +53 -0
- reactifact-0.22.0/reactifact/templates/daemon/app/prompts.py +10 -0
- reactifact-0.22.0/reactifact/templates/daemon/app/resources.py +19 -0
- reactifact-0.22.0/reactifact/templates/daemon/app/runner.py +46 -0
- reactifact-0.22.0/reactifact/templates/daemon/pyproject.toml +40 -0
- reactifact-0.22.0/reactifact/templates/daemon/tests/__init__.py +0 -0
- reactifact-0.22.0/reactifact/templates/daemon/tests/test_daemon.py +41 -0
- reactifact-0.22.0/reactifact/templates/fastapi_chat/.env.example +60 -0
- reactifact-0.22.0/reactifact/templates/fastapi_chat/.gitignore +7 -0
- reactifact-0.22.0/reactifact/templates/fastapi_chat/Dockerfile +14 -0
- reactifact-0.22.0/reactifact/templates/fastapi_chat/README.md +120 -0
- reactifact-0.22.0/reactifact/templates/fastapi_chat/app/__init__.py +0 -0
- reactifact-0.22.0/reactifact/templates/fastapi_chat/app/agent/__init__.py +0 -0
- reactifact-0.22.0/reactifact/templates/fastapi_chat/app/agent/pipeline.py +83 -0
- reactifact-0.22.0/reactifact/templates/fastapi_chat/app/agent/prompts.py +14 -0
- reactifact-0.22.0/reactifact/templates/fastapi_chat/app/agent/resources.py +29 -0
- reactifact-0.22.0/reactifact/templates/fastapi_chat/app/agent/steps/__init__.py +3 -0
- reactifact-0.22.0/reactifact/templates/fastapi_chat/app/agent/steps/answer.py +35 -0
- reactifact-0.22.0/reactifact/templates/fastapi_chat/app/api/__init__.py +0 -0
- reactifact-0.22.0/reactifact/templates/fastapi_chat/app/api/deps.py +21 -0
- reactifact-0.22.0/reactifact/templates/fastapi_chat/app/api/routes/__init__.py +0 -0
- reactifact-0.22.0/reactifact/templates/fastapi_chat/app/api/routes/chat.py +86 -0
- reactifact-0.22.0/reactifact/templates/fastapi_chat/app/authz.py +28 -0
- reactifact-0.22.0/reactifact/templates/fastapi_chat/app/bootstrap.py +88 -0
- reactifact-0.22.0/reactifact/templates/fastapi_chat/app/config.py +135 -0
- reactifact-0.22.0/reactifact/templates/fastapi_chat/app/llm.py +60 -0
- reactifact-0.22.0/reactifact/templates/fastapi_chat/app/llm_presets.py +63 -0
- reactifact-0.22.0/reactifact/templates/fastapi_chat/app/main.py +71 -0
- reactifact-0.22.0/reactifact/templates/fastapi_chat/app/models.py +33 -0
- reactifact-0.22.0/reactifact/templates/fastapi_chat/app/security.py +74 -0
- reactifact-0.22.0/reactifact/templates/fastapi_chat/pyproject.toml +48 -0
- reactifact-0.22.0/reactifact/templates/fastapi_chat/tests/__init__.py +0 -0
- reactifact-0.22.0/reactifact/templates/fastapi_chat/tests/conftest.py +32 -0
- reactifact-0.22.0/reactifact/templates/fastapi_chat/tests/test_auth_sessions.py +36 -0
- reactifact-0.22.0/reactifact/templates/fastapi_chat/tests/test_chat_sse.py +52 -0
- reactifact-0.22.0/reactifact/templates/fastapi_chat/tests/test_settings.py +75 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tools/base.py +103 -24
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tools/use/hitl.py +8 -15
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tracing/_shared.py +3 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tracing/models.py +7 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tracing/postgres.py +48 -20
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tracing/store.py +49 -20
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tracing/tracer.py +278 -11
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tracing/web.py +6 -1
- reactifact-0.22.0/reactifact/validate.py +273 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/viz.py +29 -25
- {reactifact-0.20.2 → reactifact-0.22.0/reactifact.egg-info}/PKG-INFO +112 -4
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact.egg-info/SOURCES.txt +98 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact.egg-info/requires.txt +6 -0
- reactifact-0.22.0/tests/test_agent_policy.py +312 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_audit.py +3 -3
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_branching.py +25 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_chat_web.py +39 -7
- reactifact-0.22.0/tests/test_checkpoints.py +163 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_cli.py +33 -0
- reactifact-0.22.0/tests/test_cli_doctor.py +72 -0
- reactifact-0.22.0/tests/test_cli_new.py +37 -0
- reactifact-0.22.0/tests/test_code_review.py +38 -0
- reactifact-0.22.0/tests/test_conflict.py +92 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_determinism.py +4 -4
- reactifact-0.22.0/tests/test_devops_auth.py +194 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_devops_web.py +66 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_effects.py +50 -0
- reactifact-0.22.0/tests/test_experiments.py +143 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_friendly_api.py +2 -2
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_golden.py +2 -2
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_hitl.py +73 -1
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_knowledge_web.py +25 -1
- reactifact-0.22.0/tests/test_map_reduce.py +116 -0
- reactifact-0.22.0/tests/test_memory_store.py +262 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_produce_styles.py +7 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_produce_trigger.py +2 -3
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_public_api.py +24 -3
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_quick.py +3 -3
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_reacts_to.py +2 -3
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_redaction.py +2 -2
- reactifact-0.22.0/tests/test_replay_tools.py +226 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_request.py +29 -4
- reactifact-0.22.0/tests/test_stream_events.py +200 -0
- reactifact-0.22.0/tests/test_subflow.py +213 -0
- reactifact-0.22.0/tests/test_swarm.py +170 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_testing_lab.py +2 -2
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_testing_mock.py +2 -2
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_tools.py +1 -1
- reactifact-0.22.0/tests/test_tour.py +195 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_tracing.py +337 -1
- reactifact-0.22.0/tests/test_validate.py +130 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_viz.py +26 -0
- reactifact-0.20.2/reactifact/cli/graph.py +0 -21
- reactifact-0.20.2/reactifact/interrupt.py +0 -65
- reactifact-0.20.2/reactifact/streaming.py +0 -69
- reactifact-0.20.2/tests/test_tour.py +0 -55
- {reactifact-0.20.2 → reactifact-0.22.0}/LICENSE +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/__main__.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/_extras.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/_httpx.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/_persistence.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/a2a/__init__.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/a2a/client.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/a2a/models.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/a2a/server.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/agent_tool.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/audit.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/authz.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/branching/store.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/budget.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/cache.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/checkpoints.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/cli/branch.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/cli/common.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/cli/context.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/cli/eval.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/cli/scenario.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/cli/skills.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/cli/trace.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/commit_log.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/consume.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/context/__init__.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/context/index.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/context/serialization.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/context_builder.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/eval/__init__.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/eval/dataset.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/eval/evaluators.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/eval/judge.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/eval/online.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/eval/runner.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/eval/scoring.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/events.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/guardrails.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/llm_agent.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/logging.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/mcp/__init__.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/mcp/client.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/mcp/oauth.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/mcp/server.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/metrics.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/native_tool_use.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/pricing.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/prompts.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/__init__.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/_retry.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/anthropic.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/azure.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/cerebras.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/chat.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/contracts.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/deepseek.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/fake.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/fireworks.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/gemini.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/github_models.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/groq.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/image.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/mistral.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/nvidia.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/ollama.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/openai.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/openrouter.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/perplexity.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/qwen.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/speech.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/together.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/video.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/xai.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/providers/zai.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/py.typed +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/quick/__init__.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/quick/_shared.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/quick/agent.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/quick/chat.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/quick/models.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/quick/rag.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/quick/tools_agent.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/quota.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/recipes/cleanup.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/recipes/conversation.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/recipes/identity.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/recipes/inputs.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/recipes/memory.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/recipes/plan_execute.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/recipes/reflection.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/recipes/resolve.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/recipes/rollback.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/recipes/search.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/recipes/skills.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/recipes/status.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/recipes/text.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/recipes/tool_loop.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/redaction.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/relations.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/request.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/routing.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/runtime/__init__.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/runtime/budget.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/runtime/loop.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/runtime/outbox.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/scheduler.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/skills/reactifact/SKILL.md +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/skills/reactifact/references/effects-and-state.md +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/skills/reactifact/references/trust-and-safety.md +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/skills/reactifact-agents/SKILL.md +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/skills/reactifact-agents/references/consume.md +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/skills/reactifact-agents/references/effects.md +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/skills/reactifact-eval/SKILL.md +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/skills/reactifact-eval/references/online.md +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/skills/reactifact-from-langchain/SKILL.md +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/skills/reactifact-llm/SKILL.md +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/skills/reactifact-llm/references/providers.md +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/skills/reactifact-llm/references/tools.md +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/skills/reactifact-observability/SKILL.md +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/skills/reactifact-rag/SKILL.md +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/skills/reactifact-rag/references/sources.md +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/skills/reactifact-testing/SKILL.md +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/sources.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/step/__init__.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/step/annotations.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/step/call.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/step/resolve.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/structured.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/testing/__init__.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/testing/assertions.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/testing/exceptions.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/testing/fault.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/testing/golden.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/testing/lab.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/testing/mock.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/testing/pytest_plugin.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/testing/record.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/testing/registry.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tool_use.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tools/__init__.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tools/agent.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tools/native.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tools/use/__init__.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tools/use/base.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tools/use/blocking.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tracing/__init__.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tracing/_otlp.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tracing/columns.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tracing/langfuse.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tracing/otlp.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tracing/templates/app.css +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tracing/templates/sessions.html +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tracing/templates/ui.html +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/tracing/templates/ui_run.html +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/triggers.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/types.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/verify.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact/web.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact.egg-info/dependency_links.txt +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact.egg-info/entry_points.txt +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/reactifact.egg-info/top_level.txt +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/setup.cfg +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_a2a.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_a2a_interop.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_absent_consume.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_agent_tool.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_anthropic_provider.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_artifact_store.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_artifacts.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_authz.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_backbone.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_budget.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_cache.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_chat_example.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_chat_memory.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_chat_outbox.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_checkpoint.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_checkpoints_concurrency.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_cli_scenario.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_commit_dag.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_commit_log.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_compaction.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_concurrency.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_consumes_produces.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_context_at.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_context_builder.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_correlated_consume.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_debounce.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_devops.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_devops_online.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_eval.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_eval_dataset.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_eval_judge.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_eval_online.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_eval_trajectory.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_fintech_audit.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_forklab.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_forklab_web.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_gemini_provider.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_guardrails.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_image_provider.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_invalidation.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_join_consume.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_knowledge.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_lazy_providers.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_logging.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_loop_bound_client.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_mcp.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_medic_lab.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_medic_lab_web.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_metrics.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_multisource.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_native_tool_use.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_openai_provider.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_outbox.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_patches.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_pending_actions.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_prompts.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_provider_auth.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_provider_retry.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_providers_integration.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_quota.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_recipe_conversation.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_recipe_plan_execute.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_recipe_reflection.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_recipe_supervisor.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_recipe_tool_loop.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_recipes.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_recipes_inputs.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_recipes_memory.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_recipes_skills.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_relation_graph.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_relations.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_repair.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_repair_web.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_replay.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_repo_agent.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_resources.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_retry.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_routing.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_runtime.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_runtime_errors.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_scheduler_semantics.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_session_append.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_sessions.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_shutdown.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_skills.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_sources.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_sources_search.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_sources_vector.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_speech_provider.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_starter_app.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_step_annotated.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_step_scope.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_step_watermark.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_streaming.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_structured.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_testing_assertions.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_testing_golden.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_testing_provenance.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_testing_pytest_plugin.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_testing_registry.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_token_budget.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_trace_columns.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_trace_limits.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_trace_tags.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_trace_ui.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_type_registry.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_vendor_factories.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_vendor_multimodal_factories.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_verify.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_version.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_video_provider.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_view.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_web_source.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_workspace.py +0 -0
- {reactifact-0.20.2 → reactifact-0.22.0}/tests/test_workspace_with_sources.py +0 -0
- {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.
|
|
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
|
[](https://deepwiki.com/bzdvdn/reactifact)
|
|
60
64
|
[](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
|

|
|
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? [.
|
|
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? [ — 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.
|
|
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
|
[](https://deepwiki.com/bzdvdn/reactifact)
|
|
13
13
|
[](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
|

|
|
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? [.
|
|
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? [ — 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.
|
|
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.
|
|
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.
|
|
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
|
-
|
|
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.
|