reactifact 0.24.0__tar.gz → 0.25.1__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.24.0/reactifact.egg-info → reactifact-0.25.1}/PKG-INFO +1 -1
- {reactifact-0.24.0 → reactifact-0.25.1}/pyproject.toml +1 -1
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/__init__.py +9 -5
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/authz.py +45 -1
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/chat.py +70 -4
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/cli/check.py +35 -19
- reactifact-0.25.1/reactifact/cli/config.py +120 -0
- reactifact-0.25.1/reactifact/cli/doctor.py +273 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/cli/graph.py +16 -4
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/cli/skills.py +22 -4
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/cli/validate.py +17 -4
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/contracts/report.py +19 -2
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/llm_agent.py +82 -71
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/mcp/client.py +1 -1
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/mcp/server.py +67 -43
- reactifact-0.25.1/reactifact/prompts.py +575 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/providers/__init__.py +2 -0
- reactifact-0.25.1/reactifact/providers/spec.py +328 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/quick/rag.py +2 -2
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/quick/tools_agent.py +1 -1
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/recipes/__init__.py +15 -1
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/recipes/cleanup.py +50 -1
- reactifact-0.25.1/reactifact/recipes/conversation/__init__.py +74 -0
- reactifact-0.25.1/reactifact/recipes/conversation/_common.py +13 -0
- reactifact-0.25.1/reactifact/recipes/conversation/core.py +173 -0
- reactifact-0.25.1/reactifact/recipes/conversation/models.py +28 -0
- reactifact-0.25.1/reactifact/recipes/conversation/turn_context.py +252 -0
- reactifact-0.25.1/reactifact/recipes/conversation/views.py +153 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/recipes/memory.py +149 -52
- reactifact-0.25.1/reactifact/recipes/route.py +166 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/recipes/status.py +83 -58
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/recipes/supervisor.py +8 -10
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/recipes/tool_loop.py +6 -1
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/request.py +39 -2
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/resources.py +15 -4
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/runtime/patch.py +8 -5
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/runtime/runtime.py +52 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/skills/reactifact/SKILL.md +61 -19
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/skills/reactifact/references/effects-and-state.md +32 -17
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/skills/reactifact/references/trust-and-safety.md +5 -2
- reactifact-0.25.1/reactifact/skills/reactifact-agents/SKILL.md +294 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/skills/reactifact-agents/references/consume.md +49 -6
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/skills/reactifact-agents/references/effects.md +34 -14
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/skills/reactifact-eval/SKILL.md +29 -7
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/skills/reactifact-from-langchain/SKILL.md +13 -12
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/skills/reactifact-llm/SKILL.md +80 -12
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/skills/reactifact-llm/references/providers.md +31 -8
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/skills/reactifact-llm/references/tools.md +14 -9
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/skills/reactifact-observability/SKILL.md +13 -11
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/skills/reactifact-rag/SKILL.md +42 -21
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/skills/reactifact-rag/references/sources.md +12 -11
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/skills/reactifact-testing/SKILL.md +5 -5
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/sources.py +1 -141
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/step/__init__.py +2 -8
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/step/annotations.py +22 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/step/call.py +6 -4
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/step/core.py +47 -3
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/step/decorator.py +12 -5
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/step/group.py +82 -1
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/step/resolve.py +20 -4
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/testing/fault.py +3 -3
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/tools/agent.py +1 -1
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/tools/base.py +28 -1
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/tools/native.py +3 -3
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/tools/use/__init__.py +2 -1
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/tools/use/base.py +1 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/tools/use/blocking.py +68 -7
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/tools/use/hitl.py +3 -1
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/types.py +25 -7
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/validate.py +30 -1
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/verify.py +63 -49
- {reactifact-0.24.0 → reactifact-0.25.1/reactifact.egg-info}/PKG-INFO +1 -1
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact.egg-info/SOURCES.txt +19 -5
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_agent_tool.py +2 -2
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_authz.py +42 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_chat_facade.py +29 -0
- reactifact-0.25.1/tests/test_cli_config.py +51 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_cli_doctor.py +47 -1
- reactifact-0.25.1/tests/test_docs_imports.py +65 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_dx_errors.py +2 -1
- reactifact-0.25.1/tests/test_ergonomics_025.py +364 -0
- reactifact-0.25.1/tests/test_examples_hygiene.py +45 -0
- reactifact-0.25.1/tests/test_group_fallback.py +131 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_mcp.py +35 -2
- reactifact-0.25.1/tests/test_memory_helpers.py +88 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_native_tool_use.py +2 -2
- reactifact-0.25.1/tests/test_prompts.py +373 -0
- reactifact-0.25.1/tests/test_provider_spec.py +213 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_public_api.py +65 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_recipe_conversation.py +46 -1
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_recipe_tool_loop.py +6 -6
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_recipes.py +28 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_recipes_memory.py +108 -15
- reactifact-0.25.1/tests/test_route.py +234 -0
- reactifact-0.25.1/tests/test_scoped_cleanup.py +57 -0
- reactifact-0.25.1/tests/test_skills.py +224 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_structured.py +8 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_testing_lab.py +1 -1
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_testing_mock.py +1 -1
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_tool_injection.py +1 -1
- reactifact-0.25.1/tests/test_tool_use_native.py +137 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_tools.py +16 -1
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_type_registry.py +26 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_verify.py +22 -6
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_web_source.py +12 -0
- reactifact-0.24.0/reactifact/agent_tool.py +0 -5
- reactifact-0.24.0/reactifact/cli/doctor.py +0 -159
- reactifact-0.24.0/reactifact/native_tool_use.py +0 -21
- reactifact-0.24.0/reactifact/prompts.py +0 -179
- reactifact-0.24.0/reactifact/recipes/conversation.py +0 -320
- reactifact-0.24.0/reactifact/skills/reactifact-agents/SKILL.md +0 -161
- reactifact-0.24.0/reactifact/tool_use.py +0 -17
- reactifact-0.24.0/tests/test_prompts.py +0 -138
- reactifact-0.24.0/tests/test_skills.py +0 -106
- reactifact-0.24.0/tests/test_sources_vector.py +0 -87
- {reactifact-0.24.0 → reactifact-0.25.1}/LICENSE +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/README.md +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/__main__.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/_extras.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/_httpx.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/_persistence.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/a2a/__init__.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/a2a/client.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/a2a/models.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/a2a/remote.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/a2a/server.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/artifacts.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/audit.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/branching/__init__.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/branching/ops.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/branching/store.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/budget.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/cache.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/checkpoints.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/cli/__init__.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/cli/branch.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/cli/common.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/cli/context.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/cli/contracts.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/cli/daemon.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/cli/demo.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/cli/dev.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/cli/eval.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/cli/new.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/cli/replay.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/cli/run.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/cli/scenario.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/cli/trace.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/cli/traces.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/commit.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/commit_log.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/consume/__init__.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/consume/base.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/consume/correlated.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/consume/lifecycle.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/context/__init__.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/context/context.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/context/index.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/context/pending.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/context/serialization.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/context_builder.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/contracts/__init__.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/contracts/templates/contracts.html +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/contracts/templates/favicon.svg +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/contracts/web.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/daemon.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/demo.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/demo_web.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/di.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/effects.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/eval/__init__.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/eval/dataset.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/eval/evaluators.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/eval/judge.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/eval/online.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/eval/retrieval.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/eval/runner.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/eval/scoring.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/events.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/experiments.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/guardrails.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/interaction.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/interrupt.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/__init__.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/_closers.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/bridge.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/chunk.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/connectors/__init__.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/connectors/base.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/connectors/filesystem.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/connectors/http.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/connectors/s3.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/diversity.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/docstore.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/embed.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/errors.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/eval.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/extract/__init__.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/extract/auto.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/extract/base.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/extract/docx.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/extract/pdf.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/extract/structured.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/extract/text.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/http.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/indexes/__init__.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/indexes/acl.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/indexes/base.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/indexes/chroma.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/indexes/fusion.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/indexes/keyword.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/indexes/math.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/indexes/memory.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/indexes/pgvector.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/indexes/qdrant.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/indexes/sqlite.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/models.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/pipeline.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/rerank.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/templates/knowledge.html +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/knowledge/web.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/logging.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/mcp/__init__.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/mcp/oauth.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/metrics.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/operations.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/patches.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/pipeline.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/policy.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/pricing.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/provenance.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/providers/_retry.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/providers/anthropic.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/providers/azure.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/providers/cerebras.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/providers/chat.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/providers/contracts.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/providers/deepseek.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/providers/fake.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/providers/fireworks.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/providers/gemini.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/providers/github_models.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/providers/groq.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/providers/image.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/providers/mistral.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/providers/nvidia.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/providers/ollama.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/providers/openai.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/providers/openrouter.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/providers/perplexity.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/providers/qwen.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/providers/speech.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/providers/together.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/providers/video.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/providers/xai.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/providers/zai.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/py.typed +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/quick/__init__.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/quick/_shared.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/quick/agent.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/quick/chat.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/quick/models.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/quota.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/recipes/_effects.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/recipes/approval/__init__.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/recipes/approval/classify.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/recipes/approval/models.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/recipes/approval/policy.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/recipes/approval/steps.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/recipes/identity.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/recipes/inputs.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/recipes/map_reduce.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/recipes/memory_store.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/recipes/plan_execute.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/recipes/reflection.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/recipes/resolve.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/recipes/rollback.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/recipes/search.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/recipes/skills.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/recipes/swarm.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/recipes/text.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/redaction.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/relations.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/replay.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/routing.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/runtime/__init__.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/runtime/budget.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/runtime/events.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/runtime/loop.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/runtime/outbox.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/runtime/result.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/scheduler.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/session.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/skills/reactifact-eval/references/online.md +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/streaming.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/structured.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/subflow.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/__init__.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/agent/.gitignore +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/agent/README.md +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/agent/main.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/agent/pyproject.toml +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/daemon/.env.example +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/daemon/.gitignore +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/daemon/Dockerfile +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/daemon/README.md +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/daemon/app/__init__.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/daemon/app/config.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/daemon/app/llm.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/daemon/app/llm_presets.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/daemon/app/main.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/daemon/app/models.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/daemon/app/monitor.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/daemon/app/prompts.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/daemon/app/resources.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/daemon/app/runner.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/daemon/pyproject.toml +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/daemon/tests/__init__.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/daemon/tests/test_daemon.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/fastapi_chat/.env.example +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/fastapi_chat/.gitignore +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/fastapi_chat/Dockerfile +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/fastapi_chat/README.md +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/fastapi_chat/app/__init__.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/fastapi_chat/app/agent/__init__.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/fastapi_chat/app/agent/pipeline.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/fastapi_chat/app/agent/prompts.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/fastapi_chat/app/agent/resources.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/fastapi_chat/app/agent/steps/__init__.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/fastapi_chat/app/agent/steps/answer.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/fastapi_chat/app/api/__init__.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/fastapi_chat/app/api/deps.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/fastapi_chat/app/api/routes/__init__.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/fastapi_chat/app/api/routes/chat.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/fastapi_chat/app/authz.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/fastapi_chat/app/bootstrap.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/fastapi_chat/app/config.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/fastapi_chat/app/llm.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/fastapi_chat/app/llm_presets.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/fastapi_chat/app/main.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/fastapi_chat/app/models.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/fastapi_chat/app/security.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/fastapi_chat/pyproject.toml +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/fastapi_chat/tests/__init__.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/fastapi_chat/tests/conftest.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/fastapi_chat/tests/test_auth_sessions.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/fastapi_chat/tests/test_chat_sse.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/templates/fastapi_chat/tests/test_settings.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/testing/__init__.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/testing/assertions.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/testing/client.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/testing/exceptions.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/testing/golden.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/testing/lab.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/testing/mock.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/testing/pytest_plugin.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/testing/record.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/testing/registry.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/tools/__init__.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/tools/contracts.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/tools/runlog.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/tools/schema.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/tracing/__init__.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/tracing/_otlp.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/tracing/_shared.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/tracing/columns.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/tracing/diff.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/tracing/langfuse.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/tracing/models.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/tracing/otlp.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/tracing/postgres.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/tracing/retention.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/tracing/sampling.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/tracing/store.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/tracing/templates/app.css +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/tracing/templates/sessions.html +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/tracing/templates/ui.html +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/tracing/templates/ui_run.html +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/tracing/tracer.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/tracing/web.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/triggers.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/viz.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/web/__init__.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/web/chat.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/web/common.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact/web/pipeline.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact.egg-info/dependency_links.txt +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact.egg-info/entry_points.txt +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact.egg-info/requires.txt +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/reactifact.egg-info/top_level.txt +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/setup.cfg +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_a2a.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_a2a_interop.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_absent_consume.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_agent_policy.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_anthropic_provider.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_approval_recipe.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_artifact_store.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_artifacts.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_audit.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_backbone.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_branching.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_budget.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_cache.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_change_instructions.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_chat_example.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_chat_hitl.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_chat_http.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_chat_memory.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_chat_outbox.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_chat_web.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_checkpoint.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_checkpoints.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_checkpoints_concurrency.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_cli.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_cli_check.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_cli_daemon.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_cli_dev.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_cli_new.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_cli_scenario.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_code_review.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_commit_dag.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_commit_log.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_compaction.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_concurrency.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_conflict.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_consume_lifecycle.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_consumes_produces.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_context_at.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_context_builder.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_context_provenance.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_contracts.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_contracts_web.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_correlated_consume.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_daemon.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_debounce.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_demo.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_demo_web.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_determinism.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_devops.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_devops_auth.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_devops_branches.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_devops_online.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_devops_web.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_di.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_effects.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_eval.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_eval_dataset.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_eval_judge.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_eval_online.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_eval_retrieval.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_eval_trajectory.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_experiments.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_fintech_audit.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_forklab.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_forklab_web.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_friendly_api.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_gemini_provider.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_golden.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_guardrails.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_hitl.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_idempotent_consume.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_image_provider.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_interaction.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_invalidation.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_join_consume.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_knowledge.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_knowledge_web.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_lazy_providers.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_logging.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_loop_bound_client.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_map_reduce.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_medic_lab.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_medic_lab_web.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_memory_store.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_metrics.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_multisource.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_openai_provider.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_outbox.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_patches.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_pending_actions.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_pipeline_http.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_pipeline_lifecycle.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_pipeline_tool.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_produce_trigger.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_provider_auth.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_provider_retry.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_providers_integration.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_quick.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_quota.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_reacts_to.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_recipe_plan_execute.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_recipe_reflection.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_recipe_supervisor.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_recipes_inputs.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_recipes_skills.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_redaction.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_reference.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_relation_graph.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_relations.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_repair.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_repair_web.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_replay.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_replay_tools.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_repo_agent.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_request.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_resources.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_retry.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_routing.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_runtime.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_runtime_errors.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_scheduler_semantics.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_session_append.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_sessions.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_shutdown.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_sources.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_sources_search.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_speech_provider.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_starter_app.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_step_annotated.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_step_group.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_step_provenance.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_step_resolve.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_step_return_inference.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_step_scope.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_step_watermark.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_stream_events.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_streaming.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_subflow.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_swarm.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_testing_assertions.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_testing_golden.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_testing_provenance.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_testing_pytest_plugin.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_testing_registry.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_token_budget.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_tour.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_trace_columns.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_trace_limits.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_trace_reports.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_trace_retention.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_trace_sampling.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_trace_tags.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_trace_ui.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_tracing.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_triggers.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_validate.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_vendor_factories.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_vendor_multimodal_factories.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_version.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_video_provider.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_view.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_viz.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_web_errors.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_workspace.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/tests/test_workspace_with_sources.py +0 -0
- {reactifact-0.24.0 → reactifact-0.25.1}/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.25.1
|
|
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
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "reactifact"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.25.1"
|
|
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"
|
|
@@ -5,10 +5,11 @@ section, plus the everyday building blocks (tool calling, sessions, the LLM
|
|
|
5
5
|
provider protocol) most agents need regardless of what else they use.
|
|
6
6
|
|
|
7
7
|
Everything else — eval, tracing, checkpoint/branch backends beyond the
|
|
8
|
-
in-memory default,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
in-memory default, chat hooks beyond `Chat` (`ChatReply`, `ChatMemory`,
|
|
9
|
+
`ChatAssistant`), tool loops (`ToolUse`), provider specs, recipes, the
|
|
10
|
+
adaptive scheduler, replay, structured-LLM helpers, viz, prompts — is one
|
|
11
|
+
level down, in its own submodule (`reactifact.eval`, `reactifact.tracing`,
|
|
12
|
+
`reactifact.chat`, ...). Import it from there:
|
|
12
13
|
|
|
13
14
|
from reactifact.structured import structured_llm
|
|
14
15
|
from reactifact.tracing import TraceStore
|
|
@@ -69,7 +70,7 @@ from .providers import (
|
|
|
69
70
|
LLMResponseChunk,
|
|
70
71
|
Message,
|
|
71
72
|
)
|
|
72
|
-
from .request import current_request
|
|
73
|
+
from .request import CurrentRequest, current_request
|
|
73
74
|
from .resources import ResourceKey, ResourceScope, RuntimeResources
|
|
74
75
|
from .runtime import RunResult, Runtime
|
|
75
76
|
from .session import Session, SessionStore
|
|
@@ -84,6 +85,7 @@ from .step import (
|
|
|
84
85
|
Step,
|
|
85
86
|
StepCall,
|
|
86
87
|
StepGroup,
|
|
88
|
+
Unscoped,
|
|
87
89
|
Wakes,
|
|
88
90
|
When,
|
|
89
91
|
create_step_group,
|
|
@@ -107,6 +109,7 @@ except _PackageNotFoundError: # source checkout without an installed distributi
|
|
|
107
109
|
|
|
108
110
|
__all__ = [
|
|
109
111
|
"StepGroup",
|
|
112
|
+
"Unscoped",
|
|
110
113
|
"Artifact",
|
|
111
114
|
"ArtifactConflict",
|
|
112
115
|
"Budget",
|
|
@@ -155,6 +158,7 @@ __all__ = [
|
|
|
155
158
|
"SubflowResult",
|
|
156
159
|
"Relation",
|
|
157
160
|
"RelationName",
|
|
161
|
+
"CurrentRequest",
|
|
158
162
|
"ResourceKey",
|
|
159
163
|
"ResourceScope",
|
|
160
164
|
"RetryPolicy",
|
|
@@ -17,11 +17,15 @@ The default is `None`, and with no authorizer every action is allowed — authz
|
|
|
17
17
|
is opt-in and does not change existing behavior. Denials raise
|
|
18
18
|
`AuthorizationError` from `Runtime.arun()` (or that agent's generation is
|
|
19
19
|
dropped when `isolate_errors=True`).
|
|
20
|
+
|
|
21
|
+
Inside a step, inject the focused `Access` collaborator instead of the whole
|
|
22
|
+
`RuntimeResources`: `access.can("run", name)` for a branch,
|
|
23
|
+
`access.require("create", "Answer")` to raise.
|
|
20
24
|
"""
|
|
21
25
|
|
|
22
26
|
from __future__ import annotations
|
|
23
27
|
|
|
24
|
-
from collections.abc import Iterable, Mapping
|
|
28
|
+
from collections.abc import Callable, Iterable, Mapping
|
|
25
29
|
from dataclasses import dataclass, field
|
|
26
30
|
from typing import Any, Protocol, runtime_checkable
|
|
27
31
|
|
|
@@ -63,6 +67,45 @@ class Authorizer(Protocol):
|
|
|
63
67
|
) -> bool: ...
|
|
64
68
|
|
|
65
69
|
|
|
70
|
+
class Access:
|
|
71
|
+
"""The authorization collaborator injected into a step.
|
|
72
|
+
|
|
73
|
+
It wraps `RuntimeResources.authorize`/`require_authorized`, so a step can
|
|
74
|
+
ask a focused question without receiving the whole resource container:
|
|
75
|
+
|
|
76
|
+
async def run(self, request: Request, access: Access) -> Reply:
|
|
77
|
+
if not access.can("run", "deploy"):
|
|
78
|
+
return Reply(text="denied")
|
|
79
|
+
access.require("create", "Deployment")
|
|
80
|
+
|
|
81
|
+
With no authorizer configured, `can` is always true and `require` is a
|
|
82
|
+
no-op — authz stays opt-in.
|
|
83
|
+
"""
|
|
84
|
+
|
|
85
|
+
__slots__ = ("_authorize", "principal")
|
|
86
|
+
|
|
87
|
+
def __init__(
|
|
88
|
+
self,
|
|
89
|
+
authorize: Callable[[str, str], bool],
|
|
90
|
+
principal: Principal | None = None,
|
|
91
|
+
) -> None:
|
|
92
|
+
self._authorize = authorize
|
|
93
|
+
self.principal = principal
|
|
94
|
+
|
|
95
|
+
def can(self, action: str, resource: str) -> bool:
|
|
96
|
+
"""Whether the current principal may perform `action` on `resource`."""
|
|
97
|
+
return self._authorize(action, resource)
|
|
98
|
+
|
|
99
|
+
def require(self, action: str, resource: str) -> None:
|
|
100
|
+
"""`can`, but raises `AuthorizationError` when denied."""
|
|
101
|
+
if not self.can(action, resource):
|
|
102
|
+
raise AuthorizationError(action, resource, self.principal)
|
|
103
|
+
|
|
104
|
+
def __repr__(self) -> str:
|
|
105
|
+
who = self.principal.id if self.principal is not None else "anonymous"
|
|
106
|
+
return f"Access(principal={who!r})"
|
|
107
|
+
|
|
108
|
+
|
|
66
109
|
def _permission_matches(pattern: str, action: str, resource: str) -> bool:
|
|
67
110
|
"""Matches `"action:resource"`, `"action:*"`, `"*:resource"` or `"*"`."""
|
|
68
111
|
if pattern == "*":
|
|
@@ -105,6 +148,7 @@ class PermissionPolicy:
|
|
|
105
148
|
|
|
106
149
|
|
|
107
150
|
__all__ = [
|
|
151
|
+
"Access",
|
|
108
152
|
"AuthorizationError",
|
|
109
153
|
"Authorizer",
|
|
110
154
|
"PermissionPolicy",
|
|
@@ -33,6 +33,7 @@ from typing import TYPE_CHECKING, Any, Literal
|
|
|
33
33
|
|
|
34
34
|
from pydantic import BaseModel
|
|
35
35
|
|
|
36
|
+
from .artifacts import Artifact
|
|
36
37
|
from .budget import Budget
|
|
37
38
|
from .consume import Consume
|
|
38
39
|
from .context import Context
|
|
@@ -83,12 +84,62 @@ def _fallback_payload(fallback_reply: str) -> dict[str, Any]:
|
|
|
83
84
|
return {"reply": fallback_reply, "waiting": False, "error": True}
|
|
84
85
|
|
|
85
86
|
|
|
87
|
+
@dataclass(frozen=True)
|
|
88
|
+
class ChatReply:
|
|
89
|
+
"""A declarative terminal-reply projection for `Chat`/`ChatAssistant`.
|
|
90
|
+
|
|
91
|
+
The common chat shape is "find the answer for this turn, render it, attach
|
|
92
|
+
sources/metadata". `ChatReply` is that shape without a hand-written
|
|
93
|
+
`reply(ctx, msg_id)` function:
|
|
94
|
+
|
|
95
|
+
reply = ChatReply(
|
|
96
|
+
Answer,
|
|
97
|
+
render=lambda a: mask(a.text),
|
|
98
|
+
extra=lambda artifact: {"sources": artifact.data.sources},
|
|
99
|
+
)
|
|
100
|
+
chat = Chat(..., reply=reply)
|
|
101
|
+
|
|
102
|
+
`field` is the model field matched against the turn's message id (default:
|
|
103
|
+
`query_id`). The latest matching artifact wins. `extra` receives the
|
|
104
|
+
artifact, so it can attach ids, sources or domain metadata; `empty`
|
|
105
|
+
overrides the honest fallback payload. A plain callable still works
|
|
106
|
+
unchanged.
|
|
107
|
+
"""
|
|
108
|
+
|
|
109
|
+
type: type[BaseModel]
|
|
110
|
+
field: str = "query_id"
|
|
111
|
+
render: Callable[[Any], str] | None = None
|
|
112
|
+
extra: Callable[[Artifact[Any]], Mapping[str, Any]] | None = None
|
|
113
|
+
empty: Mapping[str, Any] | None = None
|
|
114
|
+
|
|
115
|
+
def build(self, context: Context, msg_id: str) -> dict[str, Any]:
|
|
116
|
+
candidates = [
|
|
117
|
+
artifact
|
|
118
|
+
for artifact in context.list_artifacts(self.type)
|
|
119
|
+
if getattr(artifact.data, self.field, None) == msg_id
|
|
120
|
+
]
|
|
121
|
+
if not candidates:
|
|
122
|
+
return dict(
|
|
123
|
+
self.empty or {"reply": "No reply assembled.", "waiting": False}
|
|
124
|
+
)
|
|
125
|
+
artifact = max(candidates, key=lambda item: item.created_at)
|
|
126
|
+
text = (
|
|
127
|
+
self.render(artifact.data)
|
|
128
|
+
if self.render is not None
|
|
129
|
+
else str(getattr(artifact.data, "text", ""))
|
|
130
|
+
)
|
|
131
|
+
payload: dict[str, Any] = {"reply": text, "waiting": False}
|
|
132
|
+
if self.extra is not None:
|
|
133
|
+
payload.update(dict(self.extra(artifact)))
|
|
134
|
+
return payload
|
|
135
|
+
|
|
136
|
+
|
|
86
137
|
async def run_message(
|
|
87
138
|
runtime: Runtime,
|
|
88
139
|
text: str,
|
|
89
140
|
*,
|
|
90
141
|
user_message: type[BaseModel],
|
|
91
|
-
reply: Callable[[Context, str], dict[str, Any]],
|
|
142
|
+
reply: Callable[[Context, str], dict[str, Any]] | ChatReply,
|
|
92
143
|
session_id: str = "",
|
|
93
144
|
create_message: Callable[..., str] | None = None,
|
|
94
145
|
status_kinds: Sequence[str] = ("status",),
|
|
@@ -166,7 +217,11 @@ async def run_message(
|
|
|
166
217
|
)
|
|
167
218
|
return
|
|
168
219
|
try:
|
|
169
|
-
payload =
|
|
220
|
+
payload = (
|
|
221
|
+
reply.build(ctx, msg_id)
|
|
222
|
+
if isinstance(reply, ChatReply)
|
|
223
|
+
else reply(ctx, msg_id)
|
|
224
|
+
)
|
|
170
225
|
except Exception:
|
|
171
226
|
logger.exception("chat.run_message: reply hook crashed")
|
|
172
227
|
payload = _fallback_payload(fallback_reply)
|
|
@@ -344,6 +399,16 @@ class ChatMemory:
|
|
|
344
399
|
digest_id: str = "digest"
|
|
345
400
|
compact_commits: int | None = None
|
|
346
401
|
|
|
402
|
+
@classmethod
|
|
403
|
+
def from_transcript(cls, transcript: Any, **kwargs: Any) -> ChatMemory:
|
|
404
|
+
"""Builds a policy bound to every type in a `Transcript`.
|
|
405
|
+
|
|
406
|
+
`ChatMemory.from_transcript(transcript, keep=..., summarize=...,
|
|
407
|
+
summary_type=...)` removes the hand-maintained `message_type=`
|
|
408
|
+
duplication; `Transcript.types` is the source of truth.
|
|
409
|
+
"""
|
|
410
|
+
return cls(message_types=tuple(transcript.types), **kwargs)
|
|
411
|
+
|
|
347
412
|
def resolved_message_types(self) -> tuple[type[BaseModel], ...]:
|
|
348
413
|
"""The message types to bound, normalized from the two fields."""
|
|
349
414
|
if self.message_types is not None:
|
|
@@ -420,7 +485,7 @@ class ChatAssistant:
|
|
|
420
485
|
groups: Sequence[StepGroup] | Callable[[], Sequence[StepGroup]] | None = None,
|
|
421
486
|
steps: Sequence[Step] | None = None,
|
|
422
487
|
user_message: type[BaseModel],
|
|
423
|
-
reply: Callable[[Context, str], dict[str, Any]],
|
|
488
|
+
reply: Callable[[Context, str], dict[str, Any]] | ChatReply,
|
|
424
489
|
session_state: Callable[[Context], dict[str, Any]] | None = None,
|
|
425
490
|
resources: RuntimeResources | Callable[..., RuntimeResources] | None = None,
|
|
426
491
|
budget: Budget | None = None,
|
|
@@ -726,7 +791,7 @@ class Chat:
|
|
|
726
791
|
seed_field: str = "text",
|
|
727
792
|
seed_factory: Callable[[str, str, Mapping[str, Any]], BaseModel] | None = None,
|
|
728
793
|
answer_type: type[BaseModel] | None = None,
|
|
729
|
-
reply: Callable[[Context, str], dict[str, Any]] | None = None,
|
|
794
|
+
reply: Callable[[Context, str], dict[str, Any]] | ChatReply | None = None,
|
|
730
795
|
session_state: Callable[[Context], dict[str, Any]] | None = None,
|
|
731
796
|
resources: RuntimeResources | Callable[..., RuntimeResources] | None = None,
|
|
732
797
|
llm: Any = None,
|
|
@@ -1054,6 +1119,7 @@ def _as_store(store: SessionStore | str | Path | None) -> SessionStore:
|
|
|
1054
1119
|
__all__ = [
|
|
1055
1120
|
"Chat",
|
|
1056
1121
|
"ChatAssistant",
|
|
1122
|
+
"ChatReply",
|
|
1057
1123
|
"ChatEvent",
|
|
1058
1124
|
"ChatEventKind",
|
|
1059
1125
|
"ChatMemory",
|
|
@@ -24,12 +24,14 @@ import os
|
|
|
24
24
|
from collections.abc import Mapping, Sequence
|
|
25
25
|
from typing import Any
|
|
26
26
|
|
|
27
|
+
from ..budget import Budget
|
|
27
28
|
from ..eval import Dataset, core_metrics, evaluate, from_metric
|
|
28
29
|
from ..pipeline import Pipeline
|
|
29
30
|
from ..step import Step, StepGroup
|
|
30
31
|
from ..testing.record import MODE_ENV_VAR
|
|
31
32
|
from ..testing.registry import collect
|
|
32
33
|
from ..validate import validate_contracts
|
|
34
|
+
from .config import budget_from_config, load_config
|
|
33
35
|
from .scenario import ScenarioRun, render_run, run_cases
|
|
34
36
|
|
|
35
37
|
|
|
@@ -117,7 +119,13 @@ def _gates(values: Sequence[str]) -> dict[str, float]:
|
|
|
117
119
|
return gates
|
|
118
120
|
|
|
119
121
|
|
|
120
|
-
def _contracts(
|
|
122
|
+
def _contracts(
|
|
123
|
+
spec: str,
|
|
124
|
+
*,
|
|
125
|
+
seeds: Sequence[str],
|
|
126
|
+
terminal: Sequence[str],
|
|
127
|
+
budget: Budget | None = None,
|
|
128
|
+
) -> bool:
|
|
121
129
|
obj = _load_object(spec)
|
|
122
130
|
steps, groups = _units(obj)
|
|
123
131
|
if not steps and not groups:
|
|
@@ -134,6 +142,7 @@ def _contracts(spec: str, *, seeds: Sequence[str], terminal: Sequence[str]) -> b
|
|
|
134
142
|
groups=groups or None,
|
|
135
143
|
seeds=inferred_seeds,
|
|
136
144
|
terminal=inferred_terminal,
|
|
145
|
+
budget=budget,
|
|
137
146
|
)
|
|
138
147
|
status = "ok" if report.ok else "FAILED"
|
|
139
148
|
print(
|
|
@@ -199,21 +208,28 @@ def _evals(
|
|
|
199
208
|
|
|
200
209
|
|
|
201
210
|
def cmd_check(args: argparse.Namespace) -> int:
|
|
202
|
-
|
|
211
|
+
config = load_config()
|
|
212
|
+
target_spec = args.target
|
|
213
|
+
contracts_spec = args.contracts or target_spec or config.groups
|
|
214
|
+
scenarios_specs = args.scenarios or config.scenarios
|
|
215
|
+
evals_path = args.evals if args.evals is not None else config.evals
|
|
216
|
+
overall = args.overall if args.overall is not None else config.overall
|
|
217
|
+
gates = args.gate or [f"{key}={value}" for key, value in config.gates.items()]
|
|
218
|
+
if evals_path is not None and target_spec is None:
|
|
203
219
|
raise SystemExit(
|
|
204
220
|
"reactifact check: --evals needs a Pipeline as the positional "
|
|
205
221
|
"target (for seed_type and steps)"
|
|
206
222
|
)
|
|
207
223
|
if (
|
|
208
|
-
|
|
209
|
-
and
|
|
210
|
-
and not
|
|
211
|
-
and
|
|
224
|
+
target_spec is None
|
|
225
|
+
and contracts_spec is None
|
|
226
|
+
and not scenarios_specs
|
|
227
|
+
and evals_path is None
|
|
212
228
|
):
|
|
213
229
|
raise SystemExit(
|
|
214
230
|
"reactifact check: pass a target/--contracts, --scenarios and/or --evals"
|
|
215
231
|
)
|
|
216
|
-
if args.no_contracts and not
|
|
232
|
+
if args.no_contracts and not scenarios_specs and evals_path is None:
|
|
217
233
|
raise SystemExit("reactifact check: --no-contracts leaves no stage to run")
|
|
218
234
|
|
|
219
235
|
ok = True
|
|
@@ -225,38 +241,38 @@ def cmd_check(args: argparse.Namespace) -> int:
|
|
|
225
241
|
# types match the reloaded module.
|
|
226
242
|
scenario_run = (
|
|
227
243
|
_scenarios(
|
|
228
|
-
|
|
244
|
+
scenarios_specs,
|
|
229
245
|
filter_text=args.filter,
|
|
230
246
|
mode=args.mode,
|
|
231
247
|
)
|
|
232
|
-
if
|
|
248
|
+
if scenarios_specs
|
|
233
249
|
else None
|
|
234
250
|
)
|
|
235
251
|
|
|
236
|
-
target_obj = _load_object(
|
|
252
|
+
target_obj = _load_object(target_spec) if target_spec else None
|
|
237
253
|
pipeline = target_obj if isinstance(target_obj, Pipeline) else None
|
|
238
|
-
contracts_spec = args.contracts or (args.target if target_obj is not None else None)
|
|
239
254
|
|
|
240
255
|
if not args.no_contracts and contracts_spec is not None:
|
|
241
256
|
ok = (
|
|
242
257
|
_contracts(
|
|
243
258
|
contracts_spec,
|
|
244
|
-
seeds=args.seed or
|
|
245
|
-
terminal=args.terminal or
|
|
259
|
+
seeds=args.seed or config.seeds,
|
|
260
|
+
terminal=args.terminal or config.terminal,
|
|
261
|
+
budget=budget_from_config(config),
|
|
246
262
|
)
|
|
247
263
|
and ok
|
|
248
264
|
)
|
|
249
265
|
|
|
250
|
-
if
|
|
266
|
+
if scenarios_specs:
|
|
251
267
|
if scenario_run is None:
|
|
252
268
|
print("scenarios no scenarios found (check the module path and -k filter)")
|
|
253
269
|
ok = False
|
|
254
270
|
else:
|
|
255
|
-
print(f"scenarios {', '.join(
|
|
271
|
+
print(f"scenarios {', '.join(scenarios_specs)}")
|
|
256
272
|
render_run(scenario_run, show_state=not args.no_state)
|
|
257
273
|
ok = scenario_run.ok and ok
|
|
258
274
|
|
|
259
|
-
if
|
|
275
|
+
if evals_path is not None:
|
|
260
276
|
if pipeline is None:
|
|
261
277
|
raise SystemExit(
|
|
262
278
|
"reactifact check: --evals needs a Pipeline as the positional "
|
|
@@ -265,9 +281,9 @@ def cmd_check(args: argparse.Namespace) -> int:
|
|
|
265
281
|
ok = (
|
|
266
282
|
_evals(
|
|
267
283
|
pipeline,
|
|
268
|
-
|
|
269
|
-
gates=_gates(
|
|
270
|
-
overall=
|
|
284
|
+
evals_path,
|
|
285
|
+
gates=_gates(gates),
|
|
286
|
+
overall=overall,
|
|
271
287
|
)
|
|
272
288
|
and ok
|
|
273
289
|
)
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"""`[tool.reactifact]` project configuration for the CLI.
|
|
2
|
+
|
|
3
|
+
The keys mirror the flags of `validate` / `graph --check` / `check`, so a
|
|
4
|
+
project can put its wiring in `pyproject.toml` once instead of repeating
|
|
5
|
+
`--seed`, `--terminal` and budget flags on every invocation:
|
|
6
|
+
|
|
7
|
+
[tool.reactifact]
|
|
8
|
+
groups = "app.pipeline:GROUPS"
|
|
9
|
+
seeds = ["Question"]
|
|
10
|
+
terminal = ["Answer"]
|
|
11
|
+
scenarios = ["app.scenarios"]
|
|
12
|
+
evals = "evals/qa.json"
|
|
13
|
+
overall = 0.8
|
|
14
|
+
|
|
15
|
+
[tool.reactifact.budget]
|
|
16
|
+
max_runs = 80
|
|
17
|
+
max_seconds = 120
|
|
18
|
+
|
|
19
|
+
Flags always win over the config; an absent section means empty defaults.
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
from __future__ import annotations
|
|
23
|
+
|
|
24
|
+
import tomllib
|
|
25
|
+
from dataclasses import dataclass, field
|
|
26
|
+
from pathlib import Path
|
|
27
|
+
from typing import Any
|
|
28
|
+
|
|
29
|
+
_BUDGET_KEYS = {
|
|
30
|
+
"max_runs",
|
|
31
|
+
"max_iterations",
|
|
32
|
+
"max_seconds",
|
|
33
|
+
"max_tool_calls",
|
|
34
|
+
"max_tokens",
|
|
35
|
+
"max_cost",
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
@dataclass(frozen=True)
|
|
40
|
+
class ProjectConfig:
|
|
41
|
+
groups: str | None = None
|
|
42
|
+
seeds: list[str] = field(default_factory=list)
|
|
43
|
+
terminal: list[str] = field(default_factory=list)
|
|
44
|
+
scenarios: list[str] = field(default_factory=list)
|
|
45
|
+
evals: str | None = None
|
|
46
|
+
overall: float | None = None
|
|
47
|
+
gates: dict[str, float] = field(default_factory=dict)
|
|
48
|
+
budget: dict[str, int | float] = field(default_factory=dict)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def _find_pyproject(start: Path) -> Path | None:
|
|
52
|
+
for directory in (start, *start.parents):
|
|
53
|
+
candidate = directory / "pyproject.toml"
|
|
54
|
+
if candidate.is_file():
|
|
55
|
+
return candidate
|
|
56
|
+
return None
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def _string_list(value: Any, key: str) -> list[str]:
|
|
60
|
+
if value is None:
|
|
61
|
+
return []
|
|
62
|
+
if not isinstance(value, list) or not all(isinstance(item, str) for item in value):
|
|
63
|
+
raise SystemExit(f"[tool.reactifact] {key} must be a list of strings")
|
|
64
|
+
return list(value)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
def load_config(start: Path | None = None) -> ProjectConfig:
|
|
68
|
+
"""Reads `[tool.reactifact]` from the nearest `pyproject.toml`."""
|
|
69
|
+
path = _find_pyproject((start or Path.cwd()).resolve())
|
|
70
|
+
if path is None:
|
|
71
|
+
return ProjectConfig()
|
|
72
|
+
data = tomllib.loads(path.read_text(encoding="utf-8"))
|
|
73
|
+
raw = data.get("tool", {}).get("reactifact", {})
|
|
74
|
+
if not isinstance(raw, dict):
|
|
75
|
+
raise SystemExit("[tool.reactifact] must be a table")
|
|
76
|
+
budget = raw.get("budget", {})
|
|
77
|
+
if not isinstance(budget, dict):
|
|
78
|
+
raise SystemExit("[tool.reactifact] budget must be a table")
|
|
79
|
+
unknown = set(budget) - _BUDGET_KEYS
|
|
80
|
+
if unknown:
|
|
81
|
+
raise SystemExit(
|
|
82
|
+
"[tool.reactifact] unknown budget keys: " + ", ".join(sorted(unknown))
|
|
83
|
+
)
|
|
84
|
+
groups = raw.get("groups")
|
|
85
|
+
if groups is not None and not isinstance(groups, str):
|
|
86
|
+
raise SystemExit("[tool.reactifact] groups must be a module:attr string")
|
|
87
|
+
evals = raw.get("evals")
|
|
88
|
+
if evals is not None and not isinstance(evals, str):
|
|
89
|
+
raise SystemExit("[tool.reactifact] evals must be a path string")
|
|
90
|
+
overall = raw.get("overall")
|
|
91
|
+
if overall is not None and not isinstance(overall, (int, float)):
|
|
92
|
+
raise SystemExit("[tool.reactifact] overall must be a number")
|
|
93
|
+
gates = raw.get("gates", {})
|
|
94
|
+
if not isinstance(gates, dict) or not all(
|
|
95
|
+
isinstance(key, str) and isinstance(value, (int, float))
|
|
96
|
+
for key, value in gates.items()
|
|
97
|
+
):
|
|
98
|
+
raise SystemExit("[tool.reactifact] gates must be a table of numbers")
|
|
99
|
+
return ProjectConfig(
|
|
100
|
+
groups=groups,
|
|
101
|
+
seeds=_string_list(raw.get("seeds"), "seeds"),
|
|
102
|
+
terminal=_string_list(raw.get("terminal"), "terminal"),
|
|
103
|
+
scenarios=_string_list(raw.get("scenarios"), "scenarios"),
|
|
104
|
+
evals=evals,
|
|
105
|
+
overall=float(overall) if overall is not None else None,
|
|
106
|
+
gates={key: float(value) for key, value in gates.items()},
|
|
107
|
+
budget=dict(budget),
|
|
108
|
+
)
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
def budget_from_config(config: ProjectConfig) -> Any:
|
|
112
|
+
"""Builds a `Budget` from the config table (None when unset)."""
|
|
113
|
+
if not config.budget:
|
|
114
|
+
return None
|
|
115
|
+
from ..budget import Budget
|
|
116
|
+
|
|
117
|
+
return Budget.model_validate(config.budget)
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
__all__ = ["ProjectConfig", "budget_from_config", "load_config"]
|