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::reasoning;pub use core::retention;pub use core::session;pub use core::session_catalog;pub use core::session_journal;pub use core::session_lock;pub use error::Result;pub use error::RuntimeError;pub use text::BoundedText;
Modules§
- context_
archive - Durable, disclosure-filtered context segments; never a summary or a session log.
- core
- Core infrastructure — config, session, auth, logging, error types, protocol.
- git_
program - Which Git program the host executes.
- memory
- Local-first memory store.
- orchestration
- pricing
- Centralised pricing logic for Anthropic models.
- prompt
- text
- Shared UTF-8-safe, byte-budgeted text truncation (T2).
Constants§
- AXEL_
BACKEND_ REMOVED_ IN - The release that removed the built-in Axel memory backend and built-in
automatic memory. Separate from
REMOVED_IN: that one moves when the command stubs go, this removal must not move with it. - REMOVED_
IN - The release that removed
synaps agent,synaps watcherandsynaps server. The one-release CLI stubs and the warnings for their config keys name it. - SIDECAR_
REMOVED_ IN - The release that removed the plugin sidecar system (
provides.sidecar,/sidecar,sidecar_toggle_key).
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.