Expand description
Common type re-exports.
Import everything with use echo_agent::prelude::*.
Re-exports§
pub use crate::agent::AgentConfig;pub use crate::agent::AgentRole;pub use crate::agent::ReactAgent;pub use crate::agent::ReactAgentBuilder;pub use crate::agent::Runner;pub use crate::agent::StructuredAgent;pub use crate::config::AppConfig;pub use crate::tools::builtin::think::ThinkTool;pub use crate::workflow::WorkflowDefinition;
Structs§
- Activate
Skill Tool - Tool for model-driven skill activation.
- Anthropic
Client - Audit
Callback - 基于
AgentCallback的审计日志自动记录器 - Audit
Event - Audit event
- Audit
Filter - 审计查询过滤器
- Cancellation
Token - A token which can be used to signal a cancellation request to one or more tasks.
- Chat
Chunk - Streaming response chunk
- Chat
Request - Chat request parameters
- Chat
Response - Chat response
- Circuit
Breaker - Circuit Breaker
- Circuit
Breaker Config - Circuit breaker configuration
- Compression
Input - Compression pipeline input
- Compression
Output - Compression pipeline output
- Concurrent
Workflow - Concurrent workflow: all registered agents execute in parallel; results are merged via a
mergefunction. - Context
Manager - Context manager: maintains full conversation history and automatically triggers compression when tokens exceed the limit.
- DagWorkflow
- DAG workflow: nodes execute in topological order; independent nodes run concurrently.
- Default
Permission Policy - Default permission policy (retains backward compatibility)
- Docker
Sandbox - Docker 容器沙箱
- Embedding
Store - 向量增强 Store:在任意
Store外包装余弦相似度语义检索 - File
Audit Logger - 文件审计日志记录器
- File
Checkpointer - JSON file-based persistent Checkpointer
- File
Store - JSON file-based persistent Store
- File
System Skill - Filesystem skill
- Force
Compress Stats - Compression statistics returned by
force_compress() - Graph
- Compiled graph workflow (immutable)
- Graph
Builder - Graph workflow builder
- Graph
Result - Graph execution result
- Guard
Manager - Guard manager
- Heuristic
Tokenizer - Heuristic Tokenizer that estimates token count using character weights.
- Hook
Registry - Registry of hooks from all activated skills.
- Hook
Result - Result of executing a hook.
- Hook
Rule - A hook rule: a matcher pattern + one or more actions.
- Hooks
Definition - Complete hooks definition from a skill’s frontmatter.
- Http
Embedder - OpenAI-compatible HTTP embedding client
- Hybrid
Compressor - 混合压缩:将多个
ContextCompressor串联为有序管道 - Image
Fetch Tool media - Image fetch tool
- Image
Url - Image URL or Base64 data
- InMemory
Audit Logger - 内存审计日志记录器
- InMemory
Checkpointer - In-process memory Checkpointer, state is lost on restart, suitable for tests
- InMemory
Store - In-process memory Store, no persistence, suitable for testing and short-lived use
- Json
Schema Spec - JSON Schema spec for structured output
- K8sSandbox
- Kubernetes Pod 沙箱
- LlmConfig
- LLM 运行时配置(依赖注入模式)
- LlmGuard
content-guard - LLM guard
- Local
Sandbox - 本地沙箱执行器
- Message
- Conversation message
- Ollama
Client - Open
AiClient - OpenAI-compatible client.
- Prepare
Result - Result of
ContextManager::prepare()— includes the prepared messages and optional compression stats if auto-compression was triggered. - Prompt
Context - Context for variable substitution and command execution.
- Provider
Factory - Provider 工厂:通过配置字符串自动实例化 LLM 客户端
- Read
Skill Resource Tool - Tool for reading resource files from activated skill directories.
- Resource
Limits - Resource limits
- Retry
Policy - Unified retry policy configuration
- Rule
Guard content-guard - Rule guard
- Rule
Guard Builder content-guard - RuleGuard builder
- RunSkill
Script Tool - Tool for executing scripts from activated skill directories.
- Sandbox
Command - Sandbox execution command
- Sandbox
Manager - 沙箱管理器:统一调度三层沙箱
- Sandbox
Policy - 沙箱策略:根据命令和上下文决定所需隔离级别
- Sandbox
Result - Execution result
- Sequential
Workflow - Sequential workflow: each agent runs in registration order; the former’s output flows into the latter’s input.
- Shared
State - Shared state for graph workflows
- Shell
Skill - Shell command execution skill
- Simple
Tokenizer - Simple Tokenizer:
byte_count / 4 + 1(backward compatible with old behavior) - Skill
Content - Full skill content returned when a skill is activated (Tier 2).
- Skill
Descriptor - Lightweight skill metadata loaded at discovery time (Tier 1).
- Skill
Info - Metadata snapshot for an installed code-based skill.
- Skill
Loader - Multi-scope skill loader with agentskills.io-compliant parsing.
- Skill
Registry - Central skill lifecycle manager.
- Skill
Resource Entry - A bundled resource file discovered in the skill directory.
- Sliding
Window Compressor - 滑动窗口压缩:保留最近
window_size条非 system 消息,裁掉更早的部分。 - Snapshot
Manager - 管理状态快照的环形缓冲区
- Sqlite
Store sqlite - SQLite persistent Store with FTS5 full-text search and optional vector search
- State
Snapshot - 单次状态快照,记录某一时刻的完整对话历史
- Step
Output - Detailed output of a single step execution
- Store
Item - A single record in the Store
- Summary
Compressor - LLM 摘要压缩策略。
- Tool
Call - A single tool call initiated by the LLM
- Tool
Definition - Tool definition sent to the LLM
- Tool
Execution Config - Tool execution config: timeout, retry, concurrency
- Tool
Result - 工具执行结果
- WebFetch
Tool web - Web page fetching tool
- WebFetch
Tool Enhanced media - Enhanced web fetch tool with image download support
- WebSearch
Tool web - Web search tool
- Workflow
Output - Complete output of a workflow execution
Enums§
- Agent
Event - Events produced during Agent execution
- Audit
Event Type - Audit event types
- Content
Part - A single component of message content (multimodal)
- Discovery
Scope - Where to scan for skills.
- Guard
Direction - Guard check direction
- Guard
Result - Guard check result
- Hook
Action - A single hook action.
- Hook
Event - When a hook fires relative to tool execution.
- Isolation
Level - Isolation level
- LlmProvider
- LLM 供应商类型
- Message
Content - Message content: compatible with both plain text and multimodal parts forms.
- Permission
Decision - Permission decision
- Response
Format - Response format control
- Security
Level - 安全级别
- Skill
Resource Kind - Classification of a bundled resource file.
- Skill
Source - Source of a skill (affects security policy).
- Snapshot
Policy - 自动快照策略
- Step
Type - Parsed step type from LLM response
- Tool
Permission - Tool permission types
- Workflow
Event - Step-by-step events emitted during workflow execution.
Traits§
- Agent
- Unified Agent execution interface
- Agent
Callback - Agent lifecycle callback interface
- Audit
Logger - 审计日志记录器 trait
- Checkpointer
- Persistence interface for short-term conversation memory
- Context
Compressor - Unified interface for all compression strategies (async, supports
dyntrait object) - Embedder
- Text embedding interface: maps text to dense float vectors
- Guard
- Guard trait
- LlmClient
- LLM client unified interface
- Permission
Policy - Permission policy trait
- Sandbox
Executor - Sandbox executor unified interface.
- Skill
- Agent skill – a higher-level capability unit that bundles related tools with an optional system-prompt injection.
- Store
- Unified storage interface for long-term memory
- Tokenizer
- Token counter abstraction
- Tool
- Tool interface trait
- Workflow
- Unified workflow execution interface
Functions§
- default_
summary_ prompt - 使用内置中文模板生成默认摘要提示词。
- shared_
agent - Wrap arbitrary
impl Agentas aSharedAgent - with_
retry - Execute an async operation with the given retry policy (all errors are considered retryable).
- with_
retry_ if - Execute an async operation with the given retry policy.
Type Aliases§
- Agent
Builder - Alias for backward compatibility.
- Result
- Convenience Result alias
- Shared
Agent - Shareable agent handle for safe access across async tasks
- Tool
Parameters - Tool parameter type