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.17.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.17.0
File Size Uploaded Provenance Actions
agent_control_models-8.17.0.tar.gz 34.3 kB Without provenance Details for agent_control_models-8.17.0.tar.gz

Built distribution (wheel)

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

Total release size: 67.7 kB

Release files / agent_control_models-8.17.0.tar.gz

Download URL agent_control_models-8.17.0.tar.gz
Size 34.3 kB
Tags Source
SHA-256 checksum
How to use checksums
363116953a549fcac2c48ef1a4d113b2db44095b35db4b505311fd840a4b7c58
BLAKE2b-256 checksum
How to use checksums
5831ea253d065145471ba1c956fbf32ff0bf6292f1e0083c7fb11db248ee1926
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.17.0-py3-none-any.whl

Download URL agent_control_models-8.17.0-py3-none-any.whl
Size 33.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9917fbc02191abfee4cc8feda4a824d15b07c28d31a1e740b77ba5c0b04f6a8a
BLAKE2b-256 checksum
How to use checksums
ce28e22823add1a93245240d87b013d40267689172d36fb883783e7b9239468b
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.17.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.17.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