| Crates.io | iron_types |
| lib.rs | iron_types |
| version | 0.3.0 |
| created_at | 2025-11-25 17:03:47.24401+00 |
| updated_at | 2025-12-16 16:01:01.27091+00 |
| description | Shared types and data structures for Iron Cage AI agent management |
| homepage | |
| repository | https://github.com/.../iron_cage |
| max_upload_size | |
| id | 1950088 |
| size | 69,285 |
Shared types and traits for the Iron Cage multi-agent safety framework.
[dependencies]
iron_cage_types = { version = "0.1", features = ["full"] }
enabled (default): Core functionality with all required dependencies
full: All functionality (currently same as enabled)
use iron_cage_types::{Config, SafetyConfig, CostConfig};
// Create configuration for multi-agent system
let config = Config {
safety: SafetyConfig {
pii_detection_enabled: true,
audit_log_path: Some("/var/log/safety.log".into()),
},
cost: CostConfig {
budget_usd: 100.0,
alert_threshold: 0.8,
},
reliability: Default::default(),
};
// Configuration is serializable when `enabled` feature is active
let json = serde_json::to_string(&config)?;
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:
enabled feature)Out of Scope:
| File | Responsibility |
|---|---|
| lib.rs | Foundational types and type-safe identifiers for Iron Runtime |
| ids.rs | Type-safe entity identifiers with validation |
Notes:
MIT