集成操作指南
分三步完成深度集成:
- 工具开发阶段:
- 参考模板开发Python工具类:
from eigent.tools import BaseTool
class HRSystemTool(BaseTool):
def execute(self, input):
# 调用内部HR系统API - 测试脚本:
eigent test-tool --path hr_tool.py
- 参考模板开发Python工具类:
- 注册部署阶段:
- 打包工具:
eigent register-tool --name hr_system --version 1.0
- 设置权限:
eigent set-permission --tool hr_system --level department
- 打包工具:
- 实际应用阶段:
- 分配给智能体:
eigent add-tool --agent document --tool hr_system
- 在任务中调用:
task: "Generate employee performance report"
tools: [hr_system, document]
- 分配给智能体:
完整案例可参考docs/integration.md
本答案来源于文章《Eigent:自动化多智能体协作的开源桌面应用》