reactifact 0.20.0__tar.gz → 0.20.2__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.0/reactifact.egg-info → reactifact-0.20.2}/PKG-INFO +2 -2
- {reactifact-0.20.0 → reactifact-0.20.2}/README.md +1 -1
- {reactifact-0.20.0 → reactifact-0.20.2}/pyproject.toml +1 -1
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/eval/__init__.py +2 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/eval/runner.py +14 -1
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/tools/native.py +42 -8
- {reactifact-0.20.0 → reactifact-0.20.2/reactifact.egg-info}/PKG-INFO +2 -2
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_eval_dataset.py +11 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_public_api.py +1 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_recipe_tool_loop.py +53 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/LICENSE +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/__init__.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/__main__.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/_extras.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/_httpx.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/_persistence.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/a2a/__init__.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/a2a/client.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/a2a/models.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/a2a/remote.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/a2a/server.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/agent_tool.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/agents.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/artifacts.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/audit.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/authz.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/branching/__init__.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/branching/ops.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/branching/store.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/budget.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/cache.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/chat.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/checkpoints.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/cli/__init__.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/cli/branch.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/cli/common.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/cli/context.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/cli/eval.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/cli/graph.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/cli/replay.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/cli/scenario.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/cli/skills.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/cli/trace.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/commit.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/commit_log.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/consume.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/context/__init__.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/context/context.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/context/index.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/context/pending.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/context/serialization.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/context_builder.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/effects.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/eval/dataset.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/eval/evaluators.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/eval/judge.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/eval/online.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/eval/scoring.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/events.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/guardrails.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/interrupt.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/llm_agent.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/logging.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/mcp/__init__.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/mcp/client.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/mcp/oauth.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/mcp/server.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/metrics.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/native_tool_use.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/operations.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/patches.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/pricing.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/produce.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/prompts.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/providers/__init__.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/providers/_retry.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/providers/anthropic.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/providers/azure.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/providers/cerebras.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/providers/chat.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/providers/contracts.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/providers/deepseek.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/providers/fake.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/providers/fireworks.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/providers/gemini.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/providers/github_models.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/providers/groq.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/providers/image.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/providers/mistral.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/providers/nvidia.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/providers/ollama.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/providers/openai.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/providers/openrouter.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/providers/perplexity.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/providers/qwen.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/providers/speech.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/providers/together.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/providers/video.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/providers/xai.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/providers/zai.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/py.typed +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/quick/__init__.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/quick/_shared.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/quick/agent.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/quick/chat.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/quick/models.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/quick/rag.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/quick/tools_agent.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/quota.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/recipes/__init__.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/recipes/cleanup.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/recipes/conversation.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/recipes/identity.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/recipes/inputs.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/recipes/memory.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/recipes/plan_execute.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/recipes/reflection.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/recipes/resolve.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/recipes/rollback.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/recipes/search.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/recipes/skills.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/recipes/status.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/recipes/supervisor.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/recipes/text.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/recipes/tool_loop.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/redaction.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/relations.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/replay.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/request.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/resources.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/routing.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/runtime/__init__.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/runtime/budget.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/runtime/loop.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/runtime/outbox.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/runtime/patch.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/runtime/runtime.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/scheduler.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/session.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/skills/reactifact/SKILL.md +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/skills/reactifact/references/effects-and-state.md +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/skills/reactifact/references/trust-and-safety.md +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/skills/reactifact-agents/SKILL.md +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/skills/reactifact-agents/references/consume.md +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/skills/reactifact-agents/references/effects.md +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/skills/reactifact-eval/SKILL.md +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/skills/reactifact-eval/references/online.md +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/skills/reactifact-from-langchain/SKILL.md +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/skills/reactifact-llm/SKILL.md +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/skills/reactifact-llm/references/providers.md +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/skills/reactifact-llm/references/tools.md +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/skills/reactifact-observability/SKILL.md +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/skills/reactifact-rag/SKILL.md +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/skills/reactifact-rag/references/sources.md +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/skills/reactifact-testing/SKILL.md +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/sources.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/step/__init__.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/step/annotations.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/step/call.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/step/core.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/step/decorator.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/step/resolve.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/streaming.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/structured.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/testing/__init__.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/testing/assertions.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/testing/exceptions.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/testing/fault.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/testing/golden.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/testing/lab.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/testing/mock.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/testing/pytest_plugin.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/testing/record.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/testing/registry.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/tool_use.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/tools/__init__.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/tools/agent.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/tools/base.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/tools/use/__init__.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/tools/use/base.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/tools/use/blocking.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/tools/use/hitl.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/tracing/__init__.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/tracing/_otlp.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/tracing/_shared.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/tracing/columns.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/tracing/langfuse.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/tracing/models.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/tracing/otlp.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/tracing/postgres.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/tracing/store.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/tracing/templates/app.css +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/tracing/templates/sessions.html +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/tracing/templates/ui.html +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/tracing/templates/ui_run.html +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/tracing/tracer.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/tracing/web.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/triggers.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/types.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/verify.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/viz.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact/web.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact.egg-info/SOURCES.txt +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact.egg-info/dependency_links.txt +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact.egg-info/entry_points.txt +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact.egg-info/requires.txt +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/reactifact.egg-info/top_level.txt +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/setup.cfg +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_a2a.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_a2a_interop.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_absent_consume.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_agent_tool.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_anthropic_provider.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_artifact_store.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_artifacts.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_audit.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_authz.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_backbone.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_branching.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_budget.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_cache.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_chat_example.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_chat_memory.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_chat_outbox.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_chat_web.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_checkpoint.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_checkpoints_concurrency.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_cli.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_cli_scenario.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_commit_dag.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_commit_log.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_compaction.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_concurrency.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_consumes_produces.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_context_at.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_context_builder.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_correlated_consume.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_debounce.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_determinism.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_devops.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_devops_online.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_devops_web.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_effects.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_eval.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_eval_judge.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_eval_online.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_eval_trajectory.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_fintech_audit.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_forklab.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_forklab_web.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_friendly_api.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_gemini_provider.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_golden.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_guardrails.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_hitl.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_image_provider.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_invalidation.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_join_consume.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_knowledge.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_knowledge_web.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_lazy_providers.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_logging.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_loop_bound_client.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_mcp.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_medic_lab.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_medic_lab_web.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_metrics.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_multisource.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_native_tool_use.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_openai_provider.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_outbox.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_patches.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_pending_actions.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_produce_styles.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_produce_trigger.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_prompts.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_provider_auth.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_provider_retry.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_providers_integration.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_quick.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_quota.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_reacts_to.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_recipe_conversation.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_recipe_plan_execute.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_recipe_reflection.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_recipe_supervisor.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_recipes.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_recipes_inputs.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_recipes_memory.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_recipes_skills.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_redaction.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_relation_graph.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_relations.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_repair.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_repair_web.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_replay.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_repo_agent.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_request.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_resources.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_retry.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_routing.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_runtime.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_runtime_errors.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_scheduler_semantics.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_session_append.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_sessions.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_shutdown.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_skills.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_sources.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_sources_search.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_sources_vector.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_speech_provider.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_starter_app.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_step_annotated.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_step_scope.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_step_watermark.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_streaming.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_structured.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_testing_assertions.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_testing_golden.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_testing_lab.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_testing_mock.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_testing_provenance.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_testing_pytest_plugin.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_testing_registry.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_token_budget.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_tools.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_tour.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_trace_columns.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_trace_limits.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_trace_tags.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_trace_ui.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_tracing.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_type_registry.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_vendor_factories.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_vendor_multimodal_factories.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_verify.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_version.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_video_provider.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_view.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_viz.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_web_source.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_workspace.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/test_workspace_with_sources.py +0 -0
- {reactifact-0.20.0 → reactifact-0.20.2}/tests/tests_checkpoints_sqlite.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: reactifact
|
|
3
|
-
Version: 0.20.
|
|
3
|
+
Version: 0.20.2
|
|
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
|
|
@@ -370,7 +370,7 @@ uv sync --extra dev --extra web
|
|
|
370
370
|
|
|
371
371
|
## Status & contributing
|
|
372
372
|
|
|
373
|
-
Active, `0.20.
|
|
373
|
+
Active, `0.20.2`, pre-1.0 — the API is stabilizing and `1.0` will freeze it
|
|
374
374
|
(see the [roadmap](docs/roadmap.md)); releases follow
|
|
375
375
|
[Keep a Changelog](CHANGELOG.md). Questions and design discussion live in
|
|
376
376
|
[GitHub Discussions](https://github.com/bzdvdn/reactifact/discussions); a star,
|
|
@@ -323,7 +323,7 @@ uv sync --extra dev --extra web
|
|
|
323
323
|
|
|
324
324
|
## Status & contributing
|
|
325
325
|
|
|
326
|
-
Active, `0.20.
|
|
326
|
+
Active, `0.20.2`, pre-1.0 — the API is stabilizing and `1.0` will freeze it
|
|
327
327
|
(see the [roadmap](docs/roadmap.md)); releases follow
|
|
328
328
|
[Keep a Changelog](CHANGELOG.md). Questions and design discussion live in
|
|
329
329
|
[GitHub Discussions](https://github.com/bzdvdn/reactifact/discussions); a star,
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "reactifact"
|
|
7
|
-
version = "0.20.
|
|
7
|
+
version = "0.20.2"
|
|
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"
|
|
@@ -72,6 +72,7 @@ from .online import (
|
|
|
72
72
|
)
|
|
73
73
|
from .runner import (
|
|
74
74
|
Extractor,
|
|
75
|
+
ResultCallback,
|
|
75
76
|
RunResult,
|
|
76
77
|
SummaryEvaluator,
|
|
77
78
|
Target,
|
|
@@ -114,6 +115,7 @@ __all__ = [
|
|
|
114
115
|
"EvaluatorResult",
|
|
115
116
|
"Example",
|
|
116
117
|
"Extractor",
|
|
118
|
+
"ResultCallback",
|
|
117
119
|
"FAITHFULNESS_INSTRUCTIONS",
|
|
118
120
|
"Feedback",
|
|
119
121
|
"FeedbackLike",
|
|
@@ -31,6 +31,8 @@ from .scoring import EvalReport, EvalResult, Metric
|
|
|
31
31
|
#: Anything a target may return (a Context, a mapping, a run object, a tuple).
|
|
32
32
|
Target: TypeAlias = Callable[[Mapping[str, Any]], Any]
|
|
33
33
|
Extractor: TypeAlias = Callable[[Context], Mapping[str, Any]]
|
|
34
|
+
#: Progress hook: called once per scored example, in completion order.
|
|
35
|
+
ResultCallback: TypeAlias = Callable[["EvalResult"], None]
|
|
34
36
|
|
|
35
37
|
|
|
36
38
|
@dataclass
|
|
@@ -206,20 +208,29 @@ async def aevaluate(
|
|
|
206
208
|
extract: Extractor = default_outputs,
|
|
207
209
|
summary: Sequence[SummaryEvaluator] = (),
|
|
208
210
|
max_concurrency: int = 0,
|
|
211
|
+
on_result: ResultCallback | None = None,
|
|
209
212
|
) -> EvalReport:
|
|
210
213
|
"""Runs `target` over every example and scores it (async).
|
|
211
214
|
|
|
212
215
|
`max_concurrency=0` (default) runs examples sequentially in dataset order,
|
|
213
216
|
keeping the report deterministic; a positive value runs at most that many
|
|
214
217
|
examples at once (`asyncio`), for large suites where the target is I/O-bound.
|
|
218
|
+
|
|
219
|
+
`on_result`, when given, is called once per example immediately after that
|
|
220
|
+
example is scored — a progress hook for long suites (`print` a line per
|
|
221
|
+
case, stream to a dashboard). It does not change the report. With
|
|
222
|
+
`max_concurrency > 0` callbacks fire in completion order, not dataset order.
|
|
215
223
|
"""
|
|
216
224
|
ds = _as_dataset(dataset)
|
|
217
225
|
evaluators_list = _evaluator_list(evaluators)
|
|
218
226
|
|
|
219
227
|
async def one(example: Example) -> tuple[EvalResult, EvalInput]:
|
|
220
|
-
|
|
228
|
+
result, eval_input = await _evaluate_one(
|
|
221
229
|
example, target=target, evaluators=evaluators_list, extract=extract
|
|
222
230
|
)
|
|
231
|
+
if on_result is not None:
|
|
232
|
+
on_result(result)
|
|
233
|
+
return result, eval_input
|
|
223
234
|
|
|
224
235
|
if max_concurrency and max_concurrency > 0:
|
|
225
236
|
semaphore = asyncio.Semaphore(max_concurrency)
|
|
@@ -257,6 +268,7 @@ def evaluate(
|
|
|
257
268
|
extract: Extractor = default_outputs,
|
|
258
269
|
summary: Sequence[SummaryEvaluator] = (),
|
|
259
270
|
max_concurrency: int = 0,
|
|
271
|
+
on_result: ResultCallback | None = None,
|
|
260
272
|
) -> EvalReport:
|
|
261
273
|
"""Synchronous `aevaluate` — mirrors `Runtime.run`/`ScenarioLab.run_sync`."""
|
|
262
274
|
return asyncio.run(
|
|
@@ -267,6 +279,7 @@ def evaluate(
|
|
|
267
279
|
extract=extract,
|
|
268
280
|
summary=summary,
|
|
269
281
|
max_concurrency=max_concurrency,
|
|
282
|
+
on_result=on_result,
|
|
270
283
|
)
|
|
271
284
|
)
|
|
272
285
|
|
|
@@ -118,10 +118,34 @@ _TEXTUAL_MARKERS = (
|
|
|
118
118
|
"|tool_calls",
|
|
119
119
|
)
|
|
120
120
|
|
|
121
|
+
#: Opening/closing of a textual tool-call tag: optional pipes, an optional
|
|
122
|
+
#: ``DSML`` token and any whitespace around them. Covers the simplified
|
|
123
|
+
#: ``<invoke>``/``<|invoke>`` shape and the real DeepSeek DSML one —
|
|
124
|
+
#: ``<||DSML||invoke>``, ``<||DSML|| parameter>`` — in both ASCII ``|`` and
|
|
125
|
+
#: fullwidth ``|`` pipes.
|
|
126
|
+
_TAG_OPEN = r"<[||\s]*(?:DSML[||\s]*)?"
|
|
127
|
+
_TAG_CLOSE = r"</[||\s]*(?:DSML[||\s]*)?"
|
|
128
|
+
#: An opening *or* closing tag, used only to detect markup (not to parse it).
|
|
129
|
+
_TAG_ANY = r"</?[||\s]*(?:DSML[||\s]*)?"
|
|
130
|
+
#: A quoted attribute value (``name="…"`` / ``name='…'``), captured as ``name``.
|
|
131
|
+
_ATTR_NAME = r"""(?P<quote>["'])(?P<name>.+?)(?P=quote)"""
|
|
132
|
+
|
|
133
|
+
#: Tag-shaped fallback for markup that is truncated or lacks the literal
|
|
134
|
+
#: ``DSML`` word (e.g. a lone ``</|| parameter>``). A regex, not a substring,
|
|
135
|
+
#: so normal prose mentioning ``<tool>`` is not caught by accident.
|
|
136
|
+
_TEXTUAL_TAG_RE = re.compile(
|
|
137
|
+
rf"{_TAG_ANY}(?:invoke|parameter|calls|tool_calls?|function_calls?)\b",
|
|
138
|
+
re.IGNORECASE,
|
|
139
|
+
)
|
|
140
|
+
|
|
121
141
|
|
|
122
142
|
def looks_like_tool_markup(text: str) -> bool:
|
|
123
143
|
"""Whether `text` looks like tool-call markup rather than a real answer."""
|
|
124
|
-
|
|
144
|
+
if not text:
|
|
145
|
+
return False
|
|
146
|
+
return any(marker in text for marker in _TEXTUAL_MARKERS) or bool(
|
|
147
|
+
_TEXTUAL_TAG_RE.search(text)
|
|
148
|
+
)
|
|
125
149
|
|
|
126
150
|
|
|
127
151
|
def _parse_argument(value: str) -> Any:
|
|
@@ -138,7 +162,13 @@ def parse_textual_tool_calls(text: str) -> list[ToolCall]:
|
|
|
138
162
|
|
|
139
163
|
- Hermes / JSON-in-tag: `<tool_call>{"name": …, "arguments": {…}}</tool_call>`
|
|
140
164
|
- DSML / XML-ish: `<|invoke name="x"><|parameter name="y">z</…></…>`
|
|
141
|
-
|
|
165
|
+
and the real DeepSeek shape `<||DSML||invoke name="x">…</||DSML||
|
|
166
|
+
invoke>` (ASCII `|` or fullwidth `|` pipes, optional ``DSML`` token and
|
|
167
|
+
whitespace, single or double quotes).
|
|
168
|
+
|
|
169
|
+
Truncated markup (closing tags with no opening ``invoke``) yields `[]` —
|
|
170
|
+
there is no name/arguments to recover — but `looks_like_tool_markup`
|
|
171
|
+
still returns `True` so a caller can fall back instead of showing it.
|
|
142
172
|
|
|
143
173
|
Opt-in: pass it as `parse_calls=` to `run_tool_loop` (or compose it with
|
|
144
174
|
`parse_tool_calls` via `parse_tool_calls_with_textual`). Malformed markup
|
|
@@ -166,18 +196,22 @@ def parse_textual_tool_calls(text: str) -> list[ToolCall]:
|
|
|
166
196
|
if calls:
|
|
167
197
|
return calls
|
|
168
198
|
for invoke in re.finditer(
|
|
169
|
-
|
|
199
|
+
rf"{_TAG_OPEN}invoke\s+name={_ATTR_NAME}[^>]*>(?P<body>.*?)"
|
|
200
|
+
rf"{_TAG_CLOSE}invoke\s*>",
|
|
170
201
|
text,
|
|
171
|
-
re.DOTALL,
|
|
202
|
+
re.DOTALL | re.IGNORECASE,
|
|
172
203
|
):
|
|
173
|
-
name, body = invoke.group(
|
|
204
|
+
name, body = invoke.group("name"), invoke.group("body")
|
|
174
205
|
call_args: dict[str, Any] = {}
|
|
175
206
|
for param in re.finditer(
|
|
176
|
-
|
|
207
|
+
rf"{_TAG_OPEN}parameter\s+name={_ATTR_NAME}[^>]*>(?P<value>.*?)"
|
|
208
|
+
rf"{_TAG_CLOSE}parameter\s*>",
|
|
177
209
|
body,
|
|
178
|
-
re.DOTALL,
|
|
210
|
+
re.DOTALL | re.IGNORECASE,
|
|
179
211
|
):
|
|
180
|
-
call_args[param.group(
|
|
212
|
+
call_args[param.group("name")] = _parse_argument(
|
|
213
|
+
param.group("value").strip()
|
|
214
|
+
)
|
|
181
215
|
calls.append(ToolCall(id=f"textual:{len(calls)}", name=name, args=call_args))
|
|
182
216
|
return calls
|
|
183
217
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: reactifact
|
|
3
|
-
Version: 0.20.
|
|
3
|
+
Version: 0.20.2
|
|
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
|
|
@@ -370,7 +370,7 @@ uv sync --extra dev --extra web
|
|
|
370
370
|
|
|
371
371
|
## Status & contributing
|
|
372
372
|
|
|
373
|
-
Active, `0.20.
|
|
373
|
+
Active, `0.20.2`, pre-1.0 — the API is stabilizing and `1.0` will freeze it
|
|
374
374
|
(see the [roadmap](docs/roadmap.md)); releases follow
|
|
375
375
|
[Keep a Changelog](CHANGELOG.md). Questions and design discussion live in
|
|
376
376
|
[GitHub Discussions](https://github.com/bzdvdn/reactifact/discussions); a star,
|
|
@@ -124,6 +124,17 @@ def test_evaluate_scores_every_example():
|
|
|
124
124
|
assert report.aggregate() == {"answer_present": 1.0, "coverage": 1.0}
|
|
125
125
|
|
|
126
126
|
|
|
127
|
+
def test_evaluate_calls_on_result_once_per_example_in_order():
|
|
128
|
+
seen: list[str] = []
|
|
129
|
+
report = evaluate(
|
|
130
|
+
_dataset(),
|
|
131
|
+
_target,
|
|
132
|
+
{"present": from_metric("answer_present", answer_present)},
|
|
133
|
+
on_result=lambda result: seen.append(result.case),
|
|
134
|
+
)
|
|
135
|
+
assert seen == [result.case for result in report.results]
|
|
136
|
+
|
|
137
|
+
|
|
127
138
|
def test_evaluate_skips_metric_without_ground_truth():
|
|
128
139
|
ds = Dataset.from_list([{"inputs": {"q": "a"}}])
|
|
129
140
|
report = evaluate(
|
|
@@ -344,6 +344,59 @@ def test_parse_textual_tool_calls_reads_dsml():
|
|
|
344
344
|
assert calls[0].args == {"q": "x"}
|
|
345
345
|
|
|
346
346
|
|
|
347
|
+
def test_parse_textual_tool_calls_reads_real_deepseek_dsml():
|
|
348
|
+
from reactifact.native_tool_use import parse_textual_tool_calls
|
|
349
|
+
|
|
350
|
+
text = (
|
|
351
|
+
'<||DSML||calls><||DSML||invoke name="read_source">'
|
|
352
|
+
'<||DSML|| parameter name="id">support://doc</||DSML|| parameter>'
|
|
353
|
+
'<||DSML|| parameter name="limit" string="true">5'
|
|
354
|
+
"</||DSML|| parameter>"
|
|
355
|
+
"</||DSML|| invoke></||DSML|| calls>"
|
|
356
|
+
)
|
|
357
|
+
calls = parse_textual_tool_calls(text)
|
|
358
|
+
assert [(call.name, call.args) for call in calls] == [
|
|
359
|
+
("read_source", {"id": "support://doc", "limit": 5})
|
|
360
|
+
]
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
def test_parse_textual_tool_calls_accepts_ascii_pipes_and_single_quotes():
|
|
364
|
+
from reactifact.native_tool_use import parse_textual_tool_calls
|
|
365
|
+
|
|
366
|
+
text = (
|
|
367
|
+
"<||DSML||invoke name='search'>"
|
|
368
|
+
"<||DSML|| parameter name='q'>x</||DSML|| parameter>"
|
|
369
|
+
"</||DSML|| invoke>"
|
|
370
|
+
)
|
|
371
|
+
calls = parse_textual_tool_calls(text)
|
|
372
|
+
assert [(call.name, call.args) for call in calls] == [("search", {"q": "x"})]
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
def test_looks_like_tool_markup_detects_truncated_dsml_remnant():
|
|
376
|
+
from reactifact.native_tool_use import (
|
|
377
|
+
looks_like_tool_markup,
|
|
378
|
+
parse_textual_tool_calls,
|
|
379
|
+
)
|
|
380
|
+
|
|
381
|
+
text = (
|
|
382
|
+
'["support://doc"]</||DSML|| parameter>'
|
|
383
|
+
"\n</||DSML|| invoke>\n</||DSML|| calls>"
|
|
384
|
+
)
|
|
385
|
+
assert looks_like_tool_markup(text) is True
|
|
386
|
+
# No opening `invoke`/name survives, so there is nothing to recover.
|
|
387
|
+
assert parse_textual_tool_calls(text) == []
|
|
388
|
+
|
|
389
|
+
assert looks_like_tool_markup("</invoke>") is True
|
|
390
|
+
assert looks_like_tool_markup("</|| parameter>") is True
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
def test_looks_like_tool_markup_ignores_plain_answer():
|
|
394
|
+
from reactifact.native_tool_use import looks_like_tool_markup
|
|
395
|
+
|
|
396
|
+
assert looks_like_tool_markup("Обычный ответ про <tool> и invoke.") is False
|
|
397
|
+
assert looks_like_tool_markup("") is False
|
|
398
|
+
|
|
399
|
+
|
|
347
400
|
def test_stop_reason_completed():
|
|
348
401
|
llm = ScriptedNativeLLM([_tool_call("1", "search", '{"q": "x"}'), _answer("done")])
|
|
349
402
|
result = asyncio.run(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|