iron_cage_types
Shared types and traits for the Iron Cage multi-agent safety framework.
Installation
[]
= { = "0.1", = ["full"] }
Features
enabled(default): Core functionality with all required dependenciesfull: All functionality (currently same asenabled)
Quick Start
use ;
// Create configuration for multi-agent system
let config = Config ;
// Configuration is serializable when `enabled` feature is active
let json = to_string?;
Documentation
Responsibilities: Defines shared types, traits, and error types used across all iron_cage crates as foundation layer. Provides type-safe builders for configuration, comprehensive error handling with error_tools integration, and Serde serialization support. Requires Rust 1.75+, all platforms supported, serves as dependency for all other workspace crates.
In Scope:
- Common configuration types (SafetyConfig, CostConfig, ReliabilityConfig)
- Shared error types and Result aliases
- Core trait definitions (Agent, SafetyGuard, CostTracker, CircuitBreaker)
- Type-safe builders for configuration
- Serde serialization support (behind
enabledfeature)
Out of Scope:
- Implementation logic (see iron_cage_safety, iron_cage_cost, iron_cage_reliability)
- CLI interface (see iron_cage_cli)
- Python bindings (see iron_cage_cli)
- Business logic or orchestration
Source Files
| File | Responsibility |
|---|---|
| lib.rs | Foundational types and type-safe identifiers for Iron Runtime |
| ids.rs | Type-safe entity identifiers with validation |
Notes:
- Entries marked 'TBD' require manual documentation
- Entries marked '⚠️ ANTI-PATTERN' should be renamed to specific responsibilities
License
MIT