Skip to main content

Crate matrixcode_core

Crate matrixcode_core 

Source
Expand description

MatrixCode Core - Agent Logic, No UI

This crate contains only Agent core logic, no UI handling. All outputs are structured AgentEvent, UI layer renders them.

Re-exports§

pub use agent::Agent;
pub use agent::AgentBuilder;
pub use approval::ApproveMode;
pub use config::Config;
pub use debug::DebugLog;
pub use debug::DebugStats;
pub use debug::debug_log;
pub use event::AgentEvent;
pub use event::EventCollector;
pub use event::EventData;
pub use event::EventType;
pub use providers::ChatRequest;
pub use providers::ChatResponse;
pub use providers::ContentBlock;
pub use providers::Message;
pub use providers::MessageContent;
pub use providers::Provider;
pub use providers::ProviderType;
pub use providers::Role;
pub use providers::create_provider;
pub use providers::create_provider_with_headers;
pub use providers::infer_provider_type;
pub use session::Session;
pub use session::SessionManager;
pub use truncate::find_boundary;
pub use truncate::truncate_bytes;
pub use truncate::truncate_chars;
pub use truncate::truncate_with_suffix;

Modules§

agent
Agent module - event-driven AI agent implementation.
approval
Approval gate: interactive confirmation before executing mutating or dangerous tools.
cancel
compress
Context compression for conversation history.
config
Configuration loading for matrixcode.
debug
Debug logging for MatrixCode operations
event
MatrixCode Event Protocol
memory
Memory system for MatrixCode.
models
overview
Project overview generation and caching.
path_validator
Path validation for file operations.
prompt
providers
session
skills
Skill discovery and loading.
tools
truncate
Truncation utilities for safe string handling.
workspace
Workspace root enforcement for filesystem-touching tools.

Macros§

debug_api
Convenience macros
debug_api_request
debug_api_response
debug_compress
debug_keywords
debug_log_msg
debug_memory
debug_session
debug_stream_chunk
debug_tool

Constants§

VERSION
Core version