- README 添加 feature 组合表 + 模块级 features 清单 + 升级指南 - 18 个 example 顶部添加 Required features 注释 - roadmap.md 和 roadmap-v0.3.2.md 同步 Phase 26-27 完成状态 - cargo fmt 全量格式化(修复预存格式问题,CI format job 可通过)
36 lines
1.2 KiB
Rust
36 lines
1.2 KiB
Rust
//! Agent Runtime —— 智能体(Agent)核心胶水层。
|
||
//!
|
||
//! 把 Phase 0-3 的能力(LlmCycle / ToolRegistry / MemoryStore / HookExecutor)"装配"为
|
||
//! 上层可用的智能体抽象:`Agent` / `AgentSession` / `RuntimeBundle` / `AgentBuilder` / `Plan`。
|
||
//!
|
||
//! **不**实现业务循环,**不**假设上层如何使用 memory。
|
||
//! 详细设计见 `docs/7-agent-runtime.md`。
|
||
|
||
// 模块根文件 `agent.rs` 与子模块 `agent/agent.rs` 同名(项目惯例,与 `llm/cycle.rs` 一致)。
|
||
#![allow(clippy::module_inception)]
|
||
|
||
pub mod agent;
|
||
pub mod builder;
|
||
pub mod context;
|
||
pub mod error;
|
||
pub mod runtime;
|
||
pub mod session;
|
||
pub mod session_memory;
|
||
pub mod summary;
|
||
pub mod task;
|
||
|
||
// 重导出公共 API(按使用频度排序)
|
||
pub use agent::Agent;
|
||
pub use builder::AgentBuilder;
|
||
pub use context::{
|
||
ContextBudget, ContextSlot, DeriveStrategy, FocusedConfig, MergeStrategy, SlotConfig, SlotMeta,
|
||
SlotMode, SlotSource,
|
||
};
|
||
pub use error::AgentError;
|
||
pub use runtime::{AgentConfig, RuntimeBundle};
|
||
pub use session::AgentSession;
|
||
pub use session_memory::SessionMemory;
|
||
pub use summary::SummaryConfig;
|
||
pub use task::JsonPlanParser;
|
||
pub use task::{Plan, PlanParser, Step, StepStatus, TaskAgent};
|