Skip to main content

Agent Control Models

Shared Pydantic models used by the server and SDKs. These models define the API contract for agents, controls, evaluation requests, and responses.

What this package provides

  • Strongly typed request/response schemas
  • Consistent validation and serialization across server and SDKs
  • A single source of truth for model changes

Usage

from agent_control_models import Agent, Step

agent = Agent(agent_name="support-bot", agent_description="Support agent")
step = Step(type="llm", name="chat", input="hello")

Control execution duration

Evaluation responses include an optional top-level execution_duration_ms on each ControlMatch in matches, non_matches, and errors. It measures that control's condition evaluation in wall-clock milliseconds, including the visited condition leaves, evaluator work, and time waiting for an evaluator concurrency slot. Control loading and request/response overhead are outside this measurement.

Completed evaluations include a nonnegative value, including evaluator failures. Precheck failures have no duration, and canceled evaluations produce no result. Older responses without the field remain valid. The Python SDK copies the value to ControlExecutionEvent.execution_duration_ms; the TypeScript SDK exposes it as executionDurationMs.

Tests

cd models
uv run pytest

Full guide: https://docs.agentcontrol.dev/components/models

Metadata

Release files for agent-control-models 8.16.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agent-control-models 8.16.0
File Size Uploaded Provenance Actions
agent_control_models-8.16.0.tar.gz 34.3 kB Without provenance Details for agent_control_models-8.16.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agent-control-models 8.16.0
File Interpreter ABI Platform Actions
agent_control_models-8.16.0-py3-none-any.whl Python 3 none any Details for agent_control_models-8.16.0-py3-none-any.whl

Total release size: 67.7 kB

Release files / agent_control_models-8.16.0.tar.gz

Download URL agent_control_models-8.16.0.tar.gz
Size 34.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8520117e0c000dfa7cea4876df56dcff7d035a58fef896960fa9b98b474bbe89
BLAKE2b-256 checksum
How to use checksums
6b0142303f52f2ba14dd62a8fc8e0c32fd316337d2509080ae07328c8a3ae2f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / agent_control_models-8.16.0-py3-none-any.whl

Download URL agent_control_models-8.16.0-py3-none-any.whl
Size 33.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e2f6602c070571f4fd8fd45c90825c23f7bc812130e260c25134b7a22a941700
BLAKE2b-256 checksum
How to use checksums
7208f96e42908ed7fb200e2d07ee0056646e21387cfbe1dc99a88d07b9330398
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for agent-control-models 8.16.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

8.16.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page