Shared primitive data models for Agent OS - failure types, severity levels, and base structures
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentmesh_primitives-3.4.0.tar.gz.
File metadata
- Download URL: agentmesh_primitives-3.4.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: RestSharp/106.13.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
622274f9c1da3e76a38a2ec156ed56f2c36d3710324ac87b08e5ac9df9be3be7
|
|
| MD5 |
d438578a79fa8ca61695ac4aa1f7d6e8
|
|
| BLAKE2b-256 |
17c4535c2248fbecd13bdf54fdeeabfa47aaa5f6710c2b113bd0db2aabc267a9
|
File details
Details for the file agentmesh_primitives-3.4.0-py3-none-any.whl.
File metadata
- Download URL: agentmesh_primitives-3.4.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: RestSharp/106.13.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2db2021e9adaf2c6d73cc4b38fa3fb859cbb872c49735fe5671175ddea1394aa
|
|
| MD5 |
95485e0c8aff3700e9f5beb94bd80daa
|
|
| BLAKE2b-256 |
253f03f5b809207245b7bad72f1302d8fbad8dabb7798846dff80ff979aba50a
|