Skip to main content

matrixcode_core/
lib.rs

1//! MatrixCode Core - Agent Logic, No UI
2//!
3//! This crate contains only Agent core logic, no UI handling.
4//! All outputs are structured AgentEvent, UI layer renders them.
5
6pub mod agent;
7pub mod approval;
8pub mod cancel;
9pub mod compress;
10pub mod config;
11pub mod debug;
12pub mod event;
13pub mod memory;
14pub mod models;
15pub mod overview;
16pub mod prompt;
17pub mod providers;
18pub mod session;
19pub mod skills;
20pub mod tools;
21pub mod truncate;
22pub mod workspace;
23
24// Public exports
25pub use agent::{Agent, AgentBuilder};
26pub use approval::ApproveMode;
27pub use config::Config;
28pub use debug::{DebugLog, DebugStats, debug_log};
29pub use event::{AgentEvent, EventCollector, EventData, EventType};
30pub use providers::{
31    ChatRequest, ChatResponse, ContentBlock, Message, MessageContent, Provider, Role,
32    create_provider, infer_provider_type, ProviderType,
33};
34pub use session::{Session, SessionManager};
35pub use truncate::{find_boundary, truncate_bytes, truncate_chars, truncate_with_suffix};
36
37/// Core version
38pub const VERSION: &str = env!("CARGO_PKG_VERSION");