Skip to main content

Crate zeph_core

Crate zeph_core 

Source
Expand description

Agent loop, configuration loading, and context builder.

Re-exports§

pub use agent::Agent;
pub use agent::error::AgentError;
pub use agent::session_config::AgentSessionConfig;
pub use agent::session_config::CONTEXT_BUDGET_RESERVE_RATIO;
pub use channel::Attachment;
pub use channel::AttachmentKind;
pub use channel::Channel;
pub use channel::ChannelError;
pub use channel::ChannelMessage;
pub use channel::LoopbackChannel;
pub use channel::LoopbackEvent;
pub use channel::LoopbackHandle;
pub use channel::StopHint;
pub use channel::ToolOutputData;
pub use channel::ToolOutputEvent;
pub use channel::ToolStartData;
pub use channel::ToolStartEvent;
pub use skill_loader::SkillLoaderExecutor;

Modules§

agent
bootstrap
Application bootstrap: config resolution, provider/memory/tool construction.
channel
config
Extension trait for resolving vault secrets into a Config.
config_watcher
context
cost
daemon
Daemon supervisor for component lifecycle management.
debug_dump
Debug dump writer for a single agent session.
file_watcher
http
Shared HTTP client construction for consistent timeout and TLS configuration.
instructions
lsp_hooks
LSP context injection hooks.
memory_tools
metrics
overflow_tools
pipeline
project
redact
runtime_layer
RuntimeLayer trait: middleware hooks for LLM calls and tool dispatch (#2286).
skill_loader
text
String utility functions for Unicode-safe text manipulation.
vault

Structs§

AdversarialPolicyInfo
Snapshot of adversarial policy gate configuration for status display.
Config
Top-level agent configuration.
ContentIsolationConfig
Configuration for the content isolation pipeline, nested under [security.content_isolation] in the agent config file.
ContentSanitizer
Stateless pipeline that sanitizes untrusted content before it enters the LLM context.
ContentSource
Provenance metadata attached to a piece of untrusted content.
DiffData
Data for rendering file diffs in the TUI.
ExfiltrationGuard
Stateless exfiltration guard. All three scanners are independently toggled via config.
ExfiltrationGuardConfig
Configuration for exfiltration guards, nested under [security.exfiltration_guard] in the agent config file.
InjectionFlag
A single detected injection pattern match.
ProviderConfigSnapshot
Minimal config snapshot needed to reconstruct a provider at runtime via /provider <name>.
QuarantineConfig
Configuration for the quarantine summarizer, nested under [security.content_isolation.quarantine] in the agent config file.
SanitizedContent
Result of the sanitization pipeline for a single piece of content.

Enums§

ConfigError
Error type for configuration operations.
ContentSourceKind
All known content source categories.
ContentTrustLevel
Trust tier assigned to content entering the agent context.
ExfiltrationEvent
Describes an exfiltration event detected by the guard.

Functions§

content_hash
Returns the BLAKE3 hex digest of arbitrary bytes.
extract_flagged_urls
Extract http/https URLs from content for use in subsequent validate_tool_call checks.