Agent Primitives
Part of Agent OS - Kernel-level governance for AI agents
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 agentmesh-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
Metadata
Release files for agentmesh_primitives 3.7.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 | Provenance | |
|---|---|---|---|---|
| agentmesh_primitives-3.7.0.tar.gz | 4.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agentmesh_primitives-3.7.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.8 kB
Release files / agentmesh_primitives-3.7.0.tar.gz
| Download URL | agentmesh_primitives-3.7.0.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c597acdce7ada41fee6d94f1f99d3c460056f3c8cbce280b1fb85adb2489ce82
|
|
BLAKE2b-256 checksum How to use checksums |
557fdeeb6c09472bc7a2470f068856b7ddf5538cf45d83c1b53691e9e53d4a44
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
RestSharp/106.13.0.0
|
Release files / agentmesh_primitives-3.7.0-py3-none-any.whl
| Download URL | agentmesh_primitives-3.7.0-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
98f43f4074d8d1bcdd290c1c1d7dfacdb9bbe00da7223f0fae6e9d500cf1a402
|
|
BLAKE2b-256 checksum How to use checksums |
2900f6889b0e698bcdfd6df606d31d8856330c4a8d054ca5d25d9dd2a564aa27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
RestSharp/106.13.0.0
|
Security for agentmesh_primitives 3.7.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.