Skip to main content

Shared primitive data models for Agent OS - failure types, severity levels, and base structures

Project description

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

  1. Zero Agent OS Dependencies: This package only depends on pydantic
  2. Backward Compatible: Other packages can re-export these models
  3. Type Safe: Full typing support with py.typed marker

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agent_primitives-0.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agent_primitives-0.1.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file agent_primitives-0.1.0.tar.gz.

File metadata

  • Download URL: agent_primitives-0.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for agent_primitives-0.1.0.tar.gz
Algorithm Hash digest
SHA256 62b5e555011c43bf6f7a33609af567534d3619d8373942c65479c276bdf36a17
MD5 58e8c95193b463dd5b3bb49395d34265
BLAKE2b-256 f7fcab56afabe51247a7a09e3fc23ec5fb59e603f7afe01634e93a8341c5a688

See more details on using hashes here.

File details

Details for the file agent_primitives-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agent_primitives-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 87c6e3da9aa7fbb0ee714ae2250447c287ae9451810083b28fa47c394c23720b
MD5 c6aabf5a42259ea44d28a4ed3e5e39dd
BLAKE2b-256 b50982618867a0e0b925d403f005db27af6ff3f1c149c58f114f9102a2ca89b9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page