Skip to main content

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

  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

agentmesh_primitives-3.5.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

agentmesh_primitives-3.5.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file agentmesh_primitives-3.5.0.tar.gz.

File metadata

  • Download URL: agentmesh_primitives-3.5.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

Hashes for agentmesh_primitives-3.5.0.tar.gz
Algorithm Hash digest
SHA256 f8952cdac7d780cab06403ae306a1dd3b3202cee9c7fd7f1063939252fa47f94
MD5 55b01cbfcec3ac4b489dc9dc9f1405df
BLAKE2b-256 d77ef2d928004c8266511474cd5d93d80ca9bfbfa2f07937fa42ab01a13ba483

See more details on using hashes here.

File details

Details for the file agentmesh_primitives-3.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agentmesh_primitives-3.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c915063319f00bc1f616f77605da710113ea0708d5b693f0c82b1dff12f2844
MD5 f17ce0b91fabc1a6747b8c1b7b9db555
BLAKE2b-256 e2489d641b6f4221d40c66b5c27cc703ab3fa5c8f0c1c4069fedd078c09f6064

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