command
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Feb 23, 2026
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
高级 Agent 功能 (Advanced Agent Features)
展示联邦编排、深思模式、长时运行执行器、技能注册表。
功能
- 联邦编排:多节点注册和能力发现(Federated Orchestration)
- 深思模式:Agent 在即时响应和深度思考之间切换(Deliberation Mode)
- 长时运行:多步骤任务的检查点和自动恢复(Long-Running Executor)
- 技能注册表:按类别和标签管理 Agent 技能(Skills Registry)
前置条件
运行
cd examples/18_advanced_agent_features
go run main.go
代码说明
federation.NewOrchestrator 管理联邦节点;deliberation.NewEngine 支持 Immediate/Deliberate 模式切换;longrunning.NewExecutor 管理多步骤执行和检查点;skills.NewRegistry 提供技能的注册、分类查询和标签搜索。
Documentation
¶
示例 18_advanced_agent_features 演示了 AgentFlow 的高级 Agent 特性。
演示内容 ¶
本示例展示四项进阶能力:
- Federated Orchestration:联邦编排,支持多节点注册与能力发现,
实现跨节点的分布式 Agent 协调
- Deliberation Mode:深度思考模式,支持 Immediate 与 Deliberate 两种推理策略,
可配置最大思考时间、最低置信度及自我批判机制
- Long-Running Executor:长时任务执行器,支持多步骤流水线、
Checkpoint 持久化及自动恢复
- Skills Registry:技能注册中心,支持按 Category 和 Tag 检索,
提供 Research、Coding、Data 等技能分类
运行方式 ¶
go run .
Source Files
¶
Click to show internal directories.
Click to hide internal directories.