fix(llm,docs): 修复 Phase C 审查发现的两个警告
- LlmError::Request 变体补可操作建议:请检查 Provider 端点地址(base_url)和网络连通性 - README.md Mermaid 依赖图删除 Agent --> Prompt 边(编译级不存在) - README.md 依赖规则文本同步:明确 agent 实际编译依赖为 llm/tools/memory,与 prompt 无直接依赖(system prompt 以 &str 传入) 参考审查:PM Director + SA Director 对 Phase C 的联合审查结论
This commit is contained in:
@@ -173,7 +173,6 @@ graph BT
|
||||
Tool --> LLM
|
||||
Memory --> LLM
|
||||
Agent --> LLM
|
||||
Agent --> Prompt
|
||||
Agent --> Tool
|
||||
Agent --> Memory
|
||||
|
||||
@@ -184,7 +183,7 @@ graph BT
|
||||
|
||||
- `llm` 是叶子,被其他四个模块使用
|
||||
- `prompt` / `tools` / `memory` 互相不依赖,可独立使用
|
||||
- `agent` 是聚合层,把前四者"装配"为可用 Agent Runtime
|
||||
- `agent` 编译期依赖 `llm` / `tools` / `memory`,与 `prompt` 无直接编译依赖(system prompt 以 `&str` 形式传入)
|
||||
- 上层应用只应依赖 `agent` + 必要的子模块,不应跨层直接 `use`
|
||||
|
||||
## 环境变量
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ pub enum LlmError {
|
||||
RateLimit { retry_after: Option<Duration> },
|
||||
|
||||
/// HTTP 请求失败(网络错误或非 2xx 状态码),包含状态码与响应体。
|
||||
#[error("LLM 请求失败(HTTP {status}): {body}")]
|
||||
#[error("LLM 请求失败(HTTP {status}): {body}。请检查 Provider 端点地址(base_url)和网络连通性")]
|
||||
Request { status: u16, body: String },
|
||||
|
||||
/// 请求超时。可重试。
|
||||
|
||||
Reference in New Issue
Block a user