vault backup: 2026-04-29 19:22:23

This commit is contained in:
2026-04-29 19:22:23 +08:00
parent c464563bcf
commit 2a7b4db644
@@ -114,6 +114,7 @@ type Agent interface {
```mermaid ```mermaid
flowchart LR flowchart LR
classDef noteStyle fill:#fff3e0,stroke:#ffb74d,stroke-width:2px
A["Agent 接口"] --> B["ChatModelAgent"] A["Agent 接口"] --> B["ChatModelAgent"]
A --> C["WorkflowAgent"] A --> C["WorkflowAgent"]
A --> D["SupervisorAgent"] A --> D["SupervisorAgent"]
@@ -121,9 +122,8 @@ flowchart LR
B --> F["统一 Runner 执行"] B --> F["统一 Runner 执行"]
C --> F C --> F
D --> F D --> F
G["统一抽象<br/>运行时多态"] :::noteStyle F -.-> G["统一抽象<br/>运行时多态"]
F -.-> G class G noteStyle
classDef noteStyle fill:#fff3e0,stroke:#ffb74d,stroke-width:2px;
``` ```
1. **统一抽象**:所有 Agent 类型都实现同一个接口,Runner 无需关心 Agent 内部实现 1. **统一抽象**:所有 Agent 类型都实现同一个接口,Runner 无需关心 Agent 内部实现