echo_core 0.1.2

Core traits and types for the echo-agent framework
Documentation

echo-core

crates.io docs.rs License: MIT Rust

Core traits and types for the echo-agent framework.

Quickstart

Add to your Cargo.toml:

[dependencies]
echo_core = "0.1"

Use the prelude to import all core traits:

use echo_core::prelude::*;
use echo_core::error::AgentError;

// Implement the Agent trait
struct MyAgent;
impl Agent for MyAgent {
    fn name(&self) -> &str { "my-agent" }
}

Contents

  • Agent traits: Agent, ReActAgent, SubAgent
  • LLM abstractions: LlmClient, ChatRequest, ChatResponse, TokenUsage
  • Tool system: Tool, TypedTool, ToolResult, ToolPermission
  • Error handling: AgentError, unified error types
  • Guard system: Content filtering traits (Guard, GuardResult)
  • Retry: RetryPolicy with exponential backoff
  • Project rules: .claude/rules parsing

Feature Flags

Flag Description
reqwest HTTP client for remote LLM calls
guard Regex-based content filtering
permission Glob-based tool permission system

License

MIT