Agent Primitives
Layer 1 Primitive - Shared data models for the Agent OS stack.
Purpose
This package provides foundational data models used across multiple Agent OS components. By extracting these primitives into a dedicated Layer 1 package, we ensure proper dependency layering:
Layer 1 (Primitives): cmvk, emk, caas, agent-primitives
Layer 2 (Infrastructure): iatp, amb, atr
Layer 3 (Kernel): agent-control-plane
Layer 4/5 (Intelligence): scak, mute-agent
Installation
pip install agent-primitives
Models
Failure Models
Core failure tracking primitives used by iatp, scak, and other components:
from agent_primitives import (
FailureType,
FailureSeverity,
AgentFailure,
FailureTrace,
)
# Create a failure record
failure = AgentFailure(
agent_id="agent-123",
failure_type=FailureType.TIMEOUT,
error_message="Request timed out after 30s",
severity=FailureSeverity.MEDIUM,
)
Available Types
- FailureType: Enumeration of failure categories (TIMEOUT, INVALID_ACTION, RESOURCE_EXHAUSTED, etc.)
- FailureSeverity: Severity levels (LOW, MEDIUM, HIGH, CRITICAL)
- AgentFailure: Core failure record with agent ID, type, message, and context
- FailureTrace: Detailed trace including reasoning chain and failed action
Design Principles
- Zero Agent OS Dependencies: This package only depends on
pydantic - Backward Compatible: Other packages can re-export these models
- Type Safe: Full typing support with
py.typedmarker
License
MIT
Release files for agent-primitives 0.2.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_primitives-0.2.0.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agent_primitives-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.0 kB
Release files / agent_primitives-0.2.0.tar.gz
| Download URL | agent_primitives-0.2.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b41ca8607e32345d51912193b26504342c5e30c752fac27c8f8c8d43129e972a
|
|
BLAKE2b-256 checksum How to use checksums |
5feeb9276beceaebd11812de57147c757fc7e3c77b6ca45f74b70a26da366432
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Release files / agent_primitives-0.2.0-py3-none-any.whl
| Download URL | agent_primitives-0.2.0-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6d1a92af30850359b8063fe9269ee902d62ceb02de510836938b10978cbb35e3
|
|
BLAKE2b-256 checksum How to use checksums |
d6d6652b5b52fb1bdc53b2352d10955b1d4a7abfaa2d55fe0f3f35e66103d967
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|