agent-types 0.1.1

Pure type definitions for the agent-base runtime
Documentation
//! Pure type definitions for the agent-base runtime.
//!
//! This crate contains data structures and enums with **zero runtime
//! dependencies** — no async, no I/O, no trait objects. It exists so that
//! downstream crates (SDKs, protocol layers, tool definitions) can depend on
//! just the types without pulling in the full agent-base runtime.
//!
//! agent-base re-exports everything from this crate, so existing
//! `use agent_base::Content` continues to work.

mod approval;
mod checkpoint;
mod execution;
mod guard;
mod message;
mod plan;
mod session;
mod tool;

pub use approval::{ApprovalDecision, ApprovalRequest, RiskLevel};
pub use checkpoint::{CheckpointData, CheckpointStep, ToolResultData};
pub use execution::{FinishReason, RunOutcome};
pub use guard::{GuardCtx, GuardDecision};
pub use message::MessageRole;
pub use plan::{PlanItem, PlanStepStatus, UpdatePlanArgs};
pub use session::SessionId;
pub use tool::{ActivationContext, Content, ToolExposure, ToolMetadata, content_details, content_text};