agentenv-framework-protocol 0.1.659__tar.gz → 0.1.660__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.
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/PKG-INFO +3 -2
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/README.md +2 -1
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/pyproject.toml +1 -1
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/PROFILE.md +14 -9
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/__init__.py +2 -1
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/builder.py +12 -5
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/fixtures/coding.json +1 -1
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/fixtures/computer_use.json +1 -1
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/fixtures/late_result.json +1 -1
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/fixtures/multi_agent.json +1 -1
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/fixtures/odd_parts.json +1 -1
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/fixtures/subagent.json +1 -1
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/fixtures/two_turns.json +1 -1
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/profile.py +12 -2
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/validator.py +8 -2
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_atif_builder.py +13 -7
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_atif_validator.py +12 -2
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/.gitignore +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/LICENSE +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/NOTICE +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/THIRD_PARTY_NOTICES.md +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/examples/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/examples/advanced_agent.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/examples/basic_agent.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/examples/custom_extensions_agent.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/examples/multimodal_agent.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/examples/reference_model.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/examples/streaming_agent.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/examples/website/notes/.gitignore +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/examples/website/notes/Dockerfile +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/examples/website/notes/Dockerfile.dockerignore +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/examples/website/notes/README.md +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/examples/website/notes/data/seed.json +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/examples/website/notes/env.toml +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/examples/website/notes/site.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/examples/website/notes/web/index.html +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/examples/website/notes/web/package-lock.json +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/examples/website/notes/web/package.json +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/examples/website/notes/web/src/main.js +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/examples/website/notes/web/src/style.css +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/examples/website/notes/web/vite.config.js +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/a2a_agent/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/a2a_agent/_atif_copy.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/a2a_agent/_media_spool.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/a2a_agent/_secrets.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/a2a_agent/_snapshot_state.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/a2a_agent/_trajectory_log.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/a2a_agent/_triggers.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/a2a_agent/_turn_index.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/a2a_agent/clock.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/a2a_agent/control_token.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/a2a_agent/extensions.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/a2a_agent/framework.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/a2a_agent/peer_agents.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/a2a_agent/proxy.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/a2a_agent/registry.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/a2a_agent/staging.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/a2a_agent/tasks/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/a2a_agent/tasks/v1.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/agent_env_environment.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/__main__.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/_image_size.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/adapter.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/fixtures/coding.stripped.json +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/fixtures/media/482405b002a62efa8516c36709a7a100637507670576fa73a20ad5420d55c66f.png +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/fixtures/media/55c64d0fcd6f9d5f7c828093857e3fdfda68478bb4e9bd24d481ef391c7804e8.heic +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/fixtures/media/67905ad3cc2dd52b1f5f6a6d2814de0396618b29b4238b9af5207aeb69936e6d.mp4 +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/fixtures/media/69a8aa01fe5537076d023dd5e9cc4275b39fc0434aa6483a9f58b66ef2f3c896.png +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/fixtures/media/82e60066a2de261b6653bcdda90d1cb9a7af2f474cecd82e8d371e8384d72315.png +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/fixtures/media/845e91831319e89c4d656bdb80c278ac09a7230d61e5dfd2e1b1fbb436ac8917.pdf +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/kit.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/models/LICENSE +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/models/VENDORED.md +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/models/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/models/agent.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/models/content.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/models/final_metrics.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/models/metrics.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/models/observation.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/models/observation_result.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/models/step.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/models/subagent_trajectory_ref.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/models/tool_call.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/models/trajectory.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/reader.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/runner.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/atif/served.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/client.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/_declare.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/_desktop.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/_job.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/_linux.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/_load.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/_macos.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/_reaping.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/_session_posix.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/_session_windows.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/_windows.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/_with_fds.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/_x11.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/annotate.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/app.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/app_data.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/app_runtime.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/apps.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/card.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/checks.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/clock.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/conformance/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/conformance/__main__.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/conformance/checks.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/conformance/client.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/conformance/desk.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/conformance/fixture.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/conformance/mp4.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/conformance/page_fixture.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/conformance/report.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/conformance/wayland_fixture.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/dataplane.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/driver.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/errors.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/extensions.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/frames.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/keys.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/launch.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/manifest.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/operations.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/platform.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/prefix.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/queue.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/recording.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/results.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/run_install_step.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/runtime.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/seed.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/serve.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/serve_app.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/served.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/session.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/settings.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/skill.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/spaces.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/svc.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/computer/tools.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/errors.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/manifest.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/passthrough.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/preflight.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/tool_access.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/tool_client.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/tool_context.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/transfers.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/types.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/website/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/website/clock.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/website/conformance.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/website/environment.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/website/errors.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/website/forwarding.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/website/readiness.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/website/routes.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/website/session.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/website_browser/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/website_browser/cdp.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/website_browser/contexts.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/website_browser/control.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/website_browser/data.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/website_browser/devtools.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/website_browser/environment.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/website_browser/log.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/website_browser/network.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/website_browser/recording.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/website_browser/scope.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/website_browser/shapes.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/src/agentenv_protocol/website_browser/stream.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/atif_cases.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/computer_fake.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/conftest.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/probe_fake.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_a2a_agent.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_a2a_agent_clock.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_a2a_agent_examples.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_a2a_atif_media.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_a2a_atif_prescribe.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_a2a_atif_scrubbing.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_a2a_atif_serving.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_a2a_atif_turns.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_a2a_cdp_config.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_a2a_object_transfers.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_a2a_peer_agents.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_a2a_proxy.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_a2a_staging.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_a2a_trajectory_log.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_agent_env_environment.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_atif_fixtures.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_atif_kit.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_atif_profile.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_atif_reader.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_atif_vendored.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_browser_cdp.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_browser_contexts.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_browser_data.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_browser_log.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_browser_network.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_browser_recording.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_browser_state.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_client.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_computer_app_data.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_computer_app_server.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_computer_clock.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_computer_conformance.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_computer_conformance_attempts.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_computer_conformance_checks.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_computer_conformance_page.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_computer_conformance_recording.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_computer_dataplane.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_computer_declare.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_computer_driver.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_computer_driver_keys.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_computer_extensions.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_computer_frames.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_computer_macos.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_computer_page.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_computer_queue.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_computer_recording.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_computer_recording_annotate.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_computer_screenshot_delay.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_computer_seed.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_computer_serve.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_computer_served.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_computer_session_windows.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_computer_spaces.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_computer_svc_forward.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_computer_tool_prefix.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_computer_windows_driver.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_control_token.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_data_objects.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_devtools_pipe.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_errors.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_extension_methods.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_intake.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_manifest.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_preflight.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_tool_access.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_tool_annotations.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_tool_client.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_tool_context.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_tool_context_fastmcp.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_tool_context_injection.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_tool_defers.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_usage.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_usage_models.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_website_api.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_website_browser.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_website_conformance.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_website_environment.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_website_forwarding.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_website_live.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_website_mcp.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_website_notes_example.py +0 -0
- {agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/tests/test_website_readiness.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: agentenv-framework-protocol
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.660
|
|
4
4
|
Summary: Open data-plane protocol and server SDK for agent environments.
|
|
5
5
|
Project-URL: Homepage, https://www.agentenvframework.com
|
|
6
6
|
Project-URL: Documentation, https://www.agentenvframework.com/docs
|
|
@@ -1441,7 +1441,8 @@ the profile's spec, and `fixtures/` holds its canonical examples. The package ne
|
|
|
1441
1441
|
command's output, is `turn.system_message(text=...)`, a `source: system` step of its own. A compaction, a summary
|
|
1442
1442
|
that replaced the conversation in what the agent sees, is the message of the step of the call that wrote it,
|
|
1443
1443
|
marked by `turn.compaction(step=..., written_by="assistant" | "harness", trigger="manual" | "auto")`, its usage
|
|
1444
|
-
that call's (profile 1.1)
|
|
1444
|
+
that call's (profile 1.1), with the conversation's `tokens_before` and `tokens_after` when the harness counts them
|
|
1445
|
+
(1.2).
|
|
1445
1446
|
- **The runner** (`AdapterRun`, `replay`) feeds one A2A context's records through one adapter instance, a task at a
|
|
1446
1447
|
time. It writes each task's user step from its `TurnContext`, and the final response once, with the task's
|
|
1447
1448
|
terminal state on its last step. Its `page()` is the live view, built when it's read: closed steps only, so a
|
|
@@ -1370,7 +1370,8 @@ the profile's spec, and `fixtures/` holds its canonical examples. The package ne
|
|
|
1370
1370
|
command's output, is `turn.system_message(text=...)`, a `source: system` step of its own. A compaction, a summary
|
|
1371
1371
|
that replaced the conversation in what the agent sees, is the message of the step of the call that wrote it,
|
|
1372
1372
|
marked by `turn.compaction(step=..., written_by="assistant" | "harness", trigger="manual" | "auto")`, its usage
|
|
1373
|
-
that call's (profile 1.1)
|
|
1373
|
+
that call's (profile 1.1), with the conversation's `tokens_before` and `tokens_after` when the harness counts them
|
|
1374
|
+
(1.2).
|
|
1374
1375
|
- **The runner** (`AdapterRun`, `replay`) feeds one A2A context's records through one adapter instance, a task at a
|
|
1375
1376
|
time. It writes each task's user step from its `TurnContext`, and the final response once, with the task's
|
|
1376
1377
|
terminal state on its last step. Its `page()` is the live view, built when it's read: closed steps only, so a
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# The agentenv profile of ATIF
|
|
2
2
|
|
|
3
|
-
Profile 1.
|
|
3
|
+
Profile 1.2. agentenv records what an agent did as an ATIF v1.8 document: Harbor's
|
|
4
4
|
[Agent Trajectory Interchange Format](https://github.com/harbor-framework/harbor/blob/main/rfcs/0001-trajectory-format.md),
|
|
5
5
|
whose models are vendored in `models/`. An agent serves it as format `atif/1`, beside its native log. What ATIF has no
|
|
6
6
|
typed field for, agentenv adds under `extra.agentenv` on the objects that have an `extra`. This file is the profile's spec.
|
|
@@ -36,7 +36,7 @@ to native exactly.
|
|
|
36
36
|
call's result by `subagent_trajectory_ref`. It belongs to the task of the call that spawned it. A sub-agent that
|
|
37
37
|
wrote no step is left out, and so is the reference to it. A spawning call with no result when its task ends gets
|
|
38
38
|
one, with no content and `status: canceled`, so its sub-agent stays referenced.
|
|
39
|
-
- `schema_version` is the oldest ATIF version that holds the document's fields: `ATIF-v1.8` for profile 1.
|
|
39
|
+
- `schema_version` is the oldest ATIF version that holds the document's fields: `ATIF-v1.8` for profile 1.2.
|
|
40
40
|
- Format id: `atif/1`. The profile's own version is the root's `extra.agentenv.version`.
|
|
41
41
|
|
|
42
42
|
## Steps
|
|
@@ -48,8 +48,9 @@ to native exactly.
|
|
|
48
48
|
the agent's words nor the user's. A reader that stages a turn for a judge shows it as a note. (1.1)
|
|
49
49
|
- A compaction is when the harness replaces the conversation so far with a summary, in what the agent sees from then
|
|
50
50
|
on. The summary is the message of the step of the model call that wrote it: a `source: agent` step carrying that
|
|
51
|
-
call's metrics, its profile's `compaction` saying who wrote it and what set it off.
|
|
52
|
-
|
|
51
|
+
call's metrics, its profile's `compaction` saying who wrote it and what set it off (1.1), and, when the harness
|
|
52
|
+
counts them, the tokens of the conversation the agent sees just before and just after it (1.2). A reader that stages
|
|
53
|
+
a turn for a judge shows it as a note, not as the agent speaking.
|
|
53
54
|
- A result always sits in the step that made its call, as ATIF requires. One that arrives after that step closed records
|
|
54
55
|
when, in `arrived`.
|
|
55
56
|
- A live reader is served closed steps only, each trajectory up to its first step still waiting on a result or
|
|
@@ -123,7 +124,7 @@ One vocabulary, in three places:
|
|
|
123
124
|
|
|
124
125
|
| Object | Field | Meaning | Read by |
|
|
125
126
|
| --- | --- | --- | --- |
|
|
126
|
-
| Trajectory | `version` | The profile version: `1.
|
|
127
|
+
| Trajectory | `version` | The profile version: `1.2` | every reader |
|
|
127
128
|
| Trajectory | `native_format` | The native format id the copy was built from | the worker that stores copies; renormalizing |
|
|
128
129
|
| Trajectory | `adapter` | The adapter's `name` and `version` | the worker that stores copies; renormalizing |
|
|
129
130
|
| Trajectory | `unmatched` | Native records no method took, counted by type | the adapter kit |
|
|
@@ -132,7 +133,7 @@ One vocabulary, in three places:
|
|
|
132
133
|
| Step | `attempt` | The harness attempt the step belongs to; absent means 1 | the explorer |
|
|
133
134
|
| Step | `error` | A step-level error: `kind`, `message`, `code` | the explorer |
|
|
134
135
|
| Step | `data` | On a task's last step: its final response's diagnostic DataParts, in order, each `data` and its `metadata` | the explorer |
|
|
135
|
-
| Step | `compaction` | On a compaction's step: who wrote the summary (`written_by`) and what set it off (`trigger`)
|
|
136
|
+
| Step | `compaction` | On a compaction's step: who wrote the summary (`written_by`) and what set it off (`trigger`) (1.1), and the conversation's tokens before and after it (`tokens_before`, `tokens_after`) (1.2) | judges' turn events |
|
|
136
137
|
| Step | `reasoning` | Each reasoning block: `chars`, `visibility`, `signature`, `data` | resuming a session; RL replay |
|
|
137
138
|
| Step | `media` | Details of the media the message names, by path | media transfer; the explorer |
|
|
138
139
|
| ObservationResult | `status` | The result's status; absent means `ok` | the explorer, judges' turn events |
|
|
@@ -150,7 +151,9 @@ share of `reasoning_content` (0 when the provider withheld the text), its `visib
|
|
|
150
151
|
a redacted block's ciphertext as `data`, byte for byte. A step error (StepError) holds `kind`, `message` and `code`. An
|
|
151
152
|
arrival (Arrival) holds `at` and `step_id`. A compaction (Compaction) holds `written_by`, `assistant` for the agent's
|
|
152
153
|
own model or `harness`, and `trigger`, `manual` when something asked for it, such as a command, or `auto` when the
|
|
153
|
-
harness set it off itself.
|
|
154
|
+
harness set it off itself (1.1), and `tokens_before` and `tokens_after`, the tokens of the conversation the agent sees
|
|
155
|
+
just before and just after it, when the harness counts them (1.2). The Agent, ToolCall and SubagentTrajectoryRef
|
|
156
|
+
profiles define no fields in 1.2.
|
|
154
157
|
|
|
155
158
|
## Vocabularies
|
|
156
159
|
|
|
@@ -173,6 +176,8 @@ field added in a later minor names the version it arrived in, and a reader of a
|
|
|
173
176
|
|
|
174
177
|
- 1.1 adds `compaction` and `source: system` steps as the harness's own messages. Their first producer is Claude
|
|
175
178
|
Code's adapter, and their reader the judges' turn events.
|
|
179
|
+
- 1.2 adds a compaction's `tokens_before` and `tokens_after`. Their first producer is Claude Code's adapter, and their
|
|
180
|
+
reader the judges' turn events, which tell the judge how much of the conversation a summary replaced.
|
|
176
181
|
- Proposed for a later minor, with their first producer:
|
|
177
182
|
- `input_includes_cache` on the root and `cost_status` (`reported`, `priced` or `unpriced`), with the usage
|
|
178
183
|
cross-check that reads them;
|
|
@@ -200,8 +205,8 @@ and exits 1 when one is an error.
|
|
|
200
205
|
| `atif` | ATIF's own models, vendored from Harbor, accept it | error | error |
|
|
201
206
|
| `profile` | Each `extra.agentenv` parses with its profile model | error | error |
|
|
202
207
|
| `profile-key` | Each `extra.agentenv` holds only the fields this profile defines | error | warning |
|
|
203
|
-
| `profile-version` | The root's `extra.agentenv.version`, when given, is a 1.x this validator knows: 1.0
|
|
204
|
-
| `compaction` | A step's `compaction` is on a `source: agent` step and names who wrote its summary | error | warning |
|
|
208
|
+
| `profile-version` | The root's `extra.agentenv.version`, when given, is a 1.x this validator knows: 1.0 to 1.2 | error | warning |
|
|
209
|
+
| `compaction` | A step's `compaction` is on a `source: agent` step and names who wrote its summary, and its token counts, when given, are whole numbers, not negative | error | warning |
|
|
205
210
|
| `vocabulary` | A vocabulary field holds one of its values | error | warning |
|
|
206
211
|
| `outside-key` | No `extra` holds a key outside `agentenv` but `ToolCall.extra.raw_arguments` | error | warning |
|
|
207
212
|
| `call-id` | Each `tool_call_id` is unique across the document and its sub-agents | error | warning |
|
|
@@ -45,6 +45,7 @@ from .profile import (
|
|
|
45
45
|
ToolCallProfile,
|
|
46
46
|
TrajectoryProfile,
|
|
47
47
|
dump_profile,
|
|
48
|
+
is_token_count,
|
|
48
49
|
profile_of,
|
|
49
50
|
read_profile,
|
|
50
51
|
)
|
|
@@ -74,7 +75,7 @@ __all__ = [
|
|
|
74
75
|
"AtifError", "AtifTurn", "AudioSource", "aux", "AuxEntry", "check", "check_adapter", "check_media", "Compaction",
|
|
75
76
|
"COMPACTION_TRIGGERS", "ContentItem", "ContentPart",
|
|
76
77
|
"Document", "dump_profile", "errors_in", "Fed", "FinalMetrics", "FinalMetricsProfile", "Finding", "finish",
|
|
77
|
-
"FORMAT", "ImageSource", "is_prefix", "KIT_RULES", "KitResult", "load", "Media", "MEDIA_PATH", "media_file", "media_paths", "MediaInfo",
|
|
78
|
+
"FORMAT", "ImageSource", "is_prefix", "is_token_count", "KIT_RULES", "KitResult", "load", "Media", "MEDIA_PATH", "media_file", "media_paths", "MediaInfo",
|
|
78
79
|
"MediaItem", "MediaRef", "media_refs", "Metrics", "MetricsProfile", "Native", "native", "Observation", "ObservationResult",
|
|
79
80
|
"ObservationResultProfile", "PROFILE_KEY", "profile_of", "PROFILE_VERSION", "PROFILES", "RAW_ARGUMENTS",
|
|
80
81
|
"read_profile", "ReasoningBlock", "RecordedTask", "replay", "Rule", "RULES", "SCHEMA_VERSION", "Selector",
|
|
@@ -32,6 +32,7 @@ from .profile import (
|
|
|
32
32
|
TASK_STATES,
|
|
33
33
|
VISIBILITIES,
|
|
34
34
|
AtifError,
|
|
35
|
+
is_token_count,
|
|
35
36
|
)
|
|
36
37
|
|
|
37
38
|
#: Media types ATIF has a part type for; any other medium is written as a text note naming its file.
|
|
@@ -915,18 +916,24 @@ class AtifTurn:
|
|
|
915
916
|
target.media.update(media)
|
|
916
917
|
self._touch(target, when)
|
|
917
918
|
|
|
918
|
-
def compaction(self, *, step: str, written_by: str, trigger: str | None = None,
|
|
919
|
+
def compaction(self, *, step: str, written_by: str, trigger: str | None = None, tokens_before: int | None = None,
|
|
920
|
+
tokens_after: int | None = None, agent: str | None = None) -> None:
|
|
919
921
|
"""Mark step ``step`` a compaction: its message a summary that replaced the conversation before it in what the
|
|
920
922
|
agent sees, written by ``written_by`` (``assistant``, the agent's own model, or ``harness``) and set off by
|
|
921
|
-
``trigger`` (``manual``, something asked for it, or ``auto``)
|
|
922
|
-
|
|
923
|
+
``trigger`` (``manual``, something asked for it, or ``auto``), the conversation counting ``tokens_before`` just
|
|
924
|
+
before it and ``tokens_after`` just after, when the harness counts them. The step is the call that wrote the
|
|
925
|
+
summary, so its usage goes on it with ``step``. Profile 1.1; its tokens 1.2."""
|
|
923
926
|
if written_by not in SUMMARY_WRITERS:
|
|
924
927
|
raise AtifError(f"written_by {written_by!r} isn't one of {', '.join(SUMMARY_WRITERS)}")
|
|
925
928
|
if trigger is not None and trigger not in COMPACTION_TRIGGERS:
|
|
926
929
|
raise AtifError(f"trigger {trigger!r} isn't one of {', '.join(COMPACTION_TRIGGERS)}")
|
|
930
|
+
for name, count in (("tokens_before", tokens_before), ("tokens_after", tokens_after)):
|
|
931
|
+
if count is not None and not is_token_count(count):
|
|
932
|
+
raise AtifError(f"{name} {count!r} isn't a count of tokens")
|
|
927
933
|
target = self._doc.step_for(_key(step), agent)
|
|
928
|
-
target.profile["compaction"] = {key: value for key, value in (
|
|
929
|
-
|
|
934
|
+
target.profile["compaction"] = {key: value for key, value in (
|
|
935
|
+
("written_by", written_by), ("trigger", trigger), ("tokens_before", tokens_before),
|
|
936
|
+
("tokens_after", tokens_after)) if value is not None}
|
|
930
937
|
|
|
931
938
|
def attempt(self, number: int) -> None:
|
|
932
939
|
"""A harness retry: steps from here on carry attempt ``number``."""
|
|
@@ -12,7 +12,7 @@ from pydantic import BaseModel, ConfigDict, ValidationError
|
|
|
12
12
|
FORMAT = "atif/1"
|
|
13
13
|
#: The key under each ``extra`` that holds the profile.
|
|
14
14
|
PROFILE_KEY = "agentenv"
|
|
15
|
-
PROFILE_VERSION = "1.
|
|
15
|
+
PROFILE_VERSION = "1.2"
|
|
16
16
|
#: The ATIF version producers write: the oldest that holds the fields they use.
|
|
17
17
|
SCHEMA_VERSION = "ATIF-v1.8"
|
|
18
18
|
#: The only key outside ``extra.agentenv`` a producer writes: Harbor's, on a ToolCall whose input wasn't an object.
|
|
@@ -28,6 +28,13 @@ COST_SOURCES = ("harness", "provider")
|
|
|
28
28
|
SUMMARY_WRITERS = ("assistant", "harness")
|
|
29
29
|
#: What set a compaction off: something asked for it (a command), or the harness on its own. Added in 1.1.
|
|
30
30
|
COMPACTION_TRIGGERS = ("manual", "auto")
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def is_token_count(value: Any) -> bool:
|
|
34
|
+
"""Whether ``value`` counts tokens, as a compaction's ``tokens_before`` and ``tokens_after`` do: a whole number,
|
|
35
|
+
not a bool, not negative."""
|
|
36
|
+
return isinstance(value, int) and not isinstance(value, bool) and value >= 0
|
|
37
|
+
|
|
31
38
|
VOCABULARIES = {
|
|
32
39
|
"StepProfile.state": TASK_STATES,
|
|
33
40
|
"ObservationResultProfile.status": RESULT_STATUSES,
|
|
@@ -85,10 +92,13 @@ class StepError(_Profile):
|
|
|
85
92
|
|
|
86
93
|
class Compaction(_Profile):
|
|
87
94
|
"""A step whose message is a summary that replaced the conversation before it, in what the agent sees from then on:
|
|
88
|
-
who wrote it, and what set it off
|
|
95
|
+
who wrote it, and what set it off; added in 1.1. With the tokens of the conversation the agent sees just before it
|
|
96
|
+
and just after it, when the harness counts them; added in 1.2."""
|
|
89
97
|
|
|
90
98
|
written_by: str | None = None
|
|
91
99
|
trigger: str | None = None
|
|
100
|
+
tokens_before: int | None = None
|
|
101
|
+
tokens_after: int | None = None
|
|
92
102
|
|
|
93
103
|
|
|
94
104
|
class Arrival(_Profile):
|
|
@@ -25,6 +25,7 @@ from .profile import (
|
|
|
25
25
|
MediaInfo,
|
|
26
26
|
ReasoningBlock,
|
|
27
27
|
StepError,
|
|
28
|
+
is_token_count,
|
|
28
29
|
profile_of,
|
|
29
30
|
)
|
|
30
31
|
from .reader import MEDIA_PATH, _resolver, _trajectories, is_prefix, media_refs, tasks
|
|
@@ -69,9 +70,9 @@ RULES: dict[str, Rule] = {rule.id: rule for rule in (
|
|
|
69
70
|
Rule("profile", ERROR, ERROR, "Each `extra.agentenv` parses with its profile model"),
|
|
70
71
|
Rule("profile-key", ERROR, WARNING, "Each `extra.agentenv` holds only the fields this profile defines"),
|
|
71
72
|
Rule("profile-version", ERROR, WARNING, "The root's `extra.agentenv.version`, when given, is a 1.x this validator "
|
|
72
|
-
"knows: 1.0
|
|
73
|
+
"knows: 1.0 to 1.2"),
|
|
73
74
|
Rule("compaction", ERROR, WARNING, "A step's `compaction` is on a `source: agent` step and names who wrote its "
|
|
74
|
-
"summary"),
|
|
75
|
+
"summary, and its token counts, when given, are whole numbers, not negative"),
|
|
75
76
|
Rule("vocabulary", ERROR, WARNING, "A vocabulary field holds one of its values"),
|
|
76
77
|
Rule("outside-key", ERROR, WARNING, "No `extra` holds a key outside `agentenv` but `ToolCall.extra.raw_arguments`"),
|
|
77
78
|
Rule("call-id", ERROR, WARNING, "Each `tool_call_id` is unique across the document and its sub-agents"),
|
|
@@ -298,6 +299,11 @@ def _profiles(objects: list[tuple[str, str, Mapping[str, Any]]], found: _Finding
|
|
|
298
299
|
for name in ("written_by", "trigger"):
|
|
299
300
|
if compaction.get(name) is not None:
|
|
300
301
|
_vocabulary(f"Compaction.{name}", f"{at}.compaction.{name}", compaction[name], found)
|
|
302
|
+
for name in ("tokens_before", "tokens_after"):
|
|
303
|
+
count = compaction.get(name)
|
|
304
|
+
if count is not None and not is_token_count(count):
|
|
305
|
+
found.add("compaction", f"{at}.compaction.{name}",
|
|
306
|
+
f"{name} counts tokens, a whole number that isn't negative, not {count!r}")
|
|
301
307
|
if kind == "Trajectory" and where == "" and not _known_version(profile.get("version")):
|
|
302
308
|
found.add("profile-version", f"{at}.version",
|
|
303
309
|
f"this is profile {profile['version']!r}; the validator checks profile {PROFILE_VERSION} and "
|
|
@@ -98,7 +98,8 @@ class Compacting(Adapter):
|
|
|
98
98
|
@native(type="compact")
|
|
99
99
|
def compact(self, r, turn):
|
|
100
100
|
turn.message(step=r["step"], text=r["text"])
|
|
101
|
-
turn.compaction(step=r["step"], written_by=r.get("by", "assistant"), trigger=r.get("trigger")
|
|
101
|
+
turn.compaction(step=r["step"], written_by=r.get("by", "assistant"), trigger=r.get("trigger"),
|
|
102
|
+
tokens_before=r.get("before"), tokens_after=r.get("after"))
|
|
102
103
|
turn.step(key=r["step"], input_tokens=100, output_tokens=20)
|
|
103
104
|
|
|
104
105
|
@native(type="system")
|
|
@@ -108,14 +109,16 @@ class Compacting(Adapter):
|
|
|
108
109
|
|
|
109
110
|
def test_a_compaction_is_the_step_of_the_call_that_wrote_its_summary_and_the_harnesss_message_a_system_step():
|
|
110
111
|
run, pages = run_task([{"type": "say", "step": "s1", "text": "working"},
|
|
111
|
-
{"type": "compact", "step": "c1", "text": "the summary so far", "trigger": "manual"
|
|
112
|
+
{"type": "compact", "step": "c1", "text": "the summary so far", "trigger": "manual",
|
|
113
|
+
"before": 28634, "after": 2839},
|
|
112
114
|
{"type": "system", "text": "Compacted"},
|
|
113
115
|
{"type": "say", "step": "s2", "text": "after it"}], cls=Compacting)
|
|
114
116
|
user, before, compaction, system, after = run.document()["steps"]
|
|
115
117
|
assert (compaction["source"], compaction["message"], compaction["llm_call_count"]) == (
|
|
116
118
|
"agent", "the summary so far", 1)
|
|
117
119
|
assert compaction["metrics"] == {"prompt_tokens": 100, "completion_tokens": 20}
|
|
118
|
-
assert profile_of(compaction)["compaction"] == {"written_by": "assistant", "trigger": "manual"
|
|
120
|
+
assert profile_of(compaction)["compaction"] == {"written_by": "assistant", "trigger": "manual",
|
|
121
|
+
"tokens_before": 28634, "tokens_after": 2839}
|
|
119
122
|
assert (system["source"], system["message"]) == ("system", "Compacted")
|
|
120
123
|
assert not {"model_name", "metrics", "llm_call_count", "tool_calls"} & set(system)
|
|
121
124
|
assert after["message"] == "after it"
|
|
@@ -123,10 +126,13 @@ def test_a_compaction_is_the_step_of_the_call_that_wrote_its_summary_and_the_har
|
|
|
123
126
|
assert all(is_prefix(a, b) for a, b in zip(pages, pages[1:]) if a is not None)
|
|
124
127
|
|
|
125
128
|
|
|
126
|
-
@pytest.mark.parametrize("record",
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
129
|
+
@pytest.mark.parametrize(("record", "refusal"), [
|
|
130
|
+
({"type": "compact", "step": "c1", "text": "x", "by": "someone"}, "isn't one of"),
|
|
131
|
+
({"type": "compact", "step": "c1", "text": "x", "trigger": "now"}, "isn't one of"),
|
|
132
|
+
({"type": "compact", "step": "c1", "text": "x", "before": -1}, "isn't a count of tokens"),
|
|
133
|
+
({"type": "compact", "step": "c1", "text": "x", "after": "2839"}, "isn't a count of tokens")])
|
|
134
|
+
def test_a_compaction_names_a_writer_and_trigger_of_its_vocabularies_and_counts_tokens(record, refusal):
|
|
135
|
+
with pytest.raises(AtifError, match=refusal):
|
|
130
136
|
run_task([record], cls=Compacting)
|
|
131
137
|
|
|
132
138
|
|
|
@@ -156,11 +156,21 @@ def test_a_compaction_sits_on_an_agent_step_names_who_wrote_it_and_holds_its_voc
|
|
|
156
156
|
assert [(f.rule, f.where) for f in errors_in(validate(document))] == [
|
|
157
157
|
("vocabulary", "steps[1].extra.agentenv.compaction.written_by"),
|
|
158
158
|
("vocabulary", "steps[1].extra.agentenv.compaction.trigger")]
|
|
159
|
+
profile["compaction"] = {"written_by": "assistant", "tokens_before": 28634, "tokens_after": 2839}
|
|
160
|
+
assert errors_in(validate(document)) == []
|
|
161
|
+
# Counts the profile model takes as ints in lax mode are this rule's; 2.5 its model refuses itself.
|
|
162
|
+
for count in (-1, "-1", -1.0, "300", True):
|
|
163
|
+
profile["compaction"] = {"written_by": "assistant", "tokens_before": count}
|
|
164
|
+
assert [(f.rule, f.where) for f in errors_in(validate(document))] == [
|
|
165
|
+
("compaction", "steps[1].extra.agentenv.compaction.tokens_before")], count
|
|
166
|
+
profile["compaction"] = {"written_by": "assistant", "tokens_before": 2.5}
|
|
167
|
+
assert [f.rule for f in errors_in(validate(document))] == ["profile"]
|
|
159
168
|
|
|
160
169
|
|
|
161
|
-
@pytest.mark.parametrize(("version", "known"), [("1.0", True), ("1.1", True), ("1.2",
|
|
170
|
+
@pytest.mark.parametrize(("version", "known"), [("1.0", True), ("1.1", True), ("1.2", True), ("1.3", False),
|
|
171
|
+
("2.0", False)])
|
|
162
172
|
def test_a_document_of_an_earlier_minor_is_read_whole_and_a_later_one_is_flagged(version, known):
|
|
163
|
-
"""A minor only adds optional fields, so a validator of 1.
|
|
173
|
+
"""A minor only adds optional fields, so a validator of 1.2 checks a 1.0 copy, from an agent on an older SDK, as its
|
|
164
174
|
own; one it doesn't know yet is flagged, as a newer document is."""
|
|
165
175
|
document = _fixture("coding")
|
|
166
176
|
document["extra"]["agentenv"]["version"] = version
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/THIRD_PARTY_NOTICES.md
RENAMED
|
File without changes
|
{agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/examples/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{agentenv_framework_protocol-0.1.659 → agentenv_framework_protocol-0.1.660}/examples/basic_agent.py
RENAMED
|
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
|