echo-core
Core traits and types for the echo-agent framework.
Quickstart
Add to your Cargo.toml:
[]
= "0.1"
Use the prelude to import all core traits:
use *;
use AgentError;
// Implement the Agent trait
;
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:
RetryPolicywith exponential backoff - Project rules:
.claude/rulesparsing
Feature Flags
| Flag | Description |
|---|---|
reqwest |
HTTP client for remote LLM calls |
guard |
Regex-based content filtering |
permission |
Glob-based tool permission system |
License
MIT