Expand description
agent-core — foundational types, config, session, auth, logging,
protocol, memory, and pricing. Leaf crate: no in-repo upward deps.
Re-exports§
pub use core::stream_types::next_turn_correlation_id;pub use core::stream_types::AgentEvent;pub use core::stream_types::BudgetDimension;pub use core::stream_types::LlmEvent;pub use core::stream_types::SessionEvent;pub use core::stream_types::StreamEvent;pub use core::stream_types::TurnError;pub use core::stream_types::TurnOutcome;pub use core::auth;pub use core::chain;pub use core::compaction;pub use core::config;pub use core::disclosure;pub use core::error;pub use core::logging;pub use core::models;pub use core::private_fs;pub use core::protocol;pub use core::reasoning;pub use core::retention;pub use core::session;pub use core::session_journal;pub use core::watcher_types;pub use error::Result;pub use error::RuntimeError;pub use text::BoundedText;
Modules§
- core
- Core infrastructure — config, session, auth, logging, error types, protocol.
- memory
- Local-first memory store.
- orchestration
- pricing
- Centralised pricing logic for Anthropic models.
- prompt
- text
- Shared UTF-8-safe, byte-budgeted text truncation (T2).
Functions§
- epoch_
millis - Current time as Unix epoch milliseconds. Panics only if system clock is before 1970.
- truncate_
str - Truncate a string to at most
maxbytes at a valid UTF-8 boundary.