Skip to main content

machi_types/
lib.rs

1//! Pure shared types for the Machi agent runtime kernel.
2//!
3//! This crate is intentionally free of network and provider dependencies so
4//! orchestration, tools, and runtimes can share one model without pulling
5//! HTTP stacks into the bottom of the DAG.
6//!
7//! Maturity: **core**.
8
9#![forbid(unsafe_code)]
10
11pub mod deadline;
12pub mod error;
13pub mod id;
14pub mod message;
15pub mod usage;
16
17pub use deadline::Deadline;
18pub use error::{ErrorCode, MachiError, Result, RetryClass};
19pub use id::{AgentId, RunId, SessionId, ToolCallId, WorkflowRunId};
20pub use message::{ContentPart, ImageMime, Message, Role, ToolCall};
21pub use usage::{CompletionTokensDetails, PromptTokensDetails, Usage};