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.13.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| agent_control_models-8.13.0.tar.gz | 34.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agent_control_models-8.13.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 67.7 kB
Release files / agent_control_models-8.13.0.tar.gz
| Download URL | agent_control_models-8.13.0.tar.gz |
|---|---|
| Size | 34.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9fbfe9b455c8b2dd2cf2c2e1a8876a8d4798fcb1732eee28bd7193f128eeabc2
|
|
BLAKE2b-256 checksum How to use checksums |
7cecd784612dd460bb9b7fa833c87aa5a5ec0e8f6c84df755cc4b70e02840df4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / agent_control_models-8.13.0-py3-none-any.whl
| Download URL | agent_control_models-8.13.0-py3-none-any.whl |
|---|---|
| Size | 33.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bfe6ccdb1a8114d0df7eda80789dc22a182f2efaa176f174acb9bf65fbc0b636
|
|
BLAKE2b-256 checksum How to use checksums |
2b5f3df2016d4a80949d3c9dd774ab29f09b81a3f66b9e4c02352fee7a78147b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|