Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 1.25 KB

File metadata and controls

33 lines (25 loc) · 1.25 KB

示例:如何快速测试各个组件

1. 基础模块测试

# 测试核心模块导入
python -c "from Core.Agent import AgentBase; print('✅ Core.Agent OK')"
python -c "from Core.CometToolUse import CometToolUse; print('✅ CometToolUse OK')"
python -c "from Core.LLMUse import LLMUse; print('✅ LLMUse OK')"

# 测试高级模块
python -c "from Modules.TaskGraph.graph import TaskGraph; print('✅ TaskGraph OK')"
python -c "from Modules.Planner.Planner import Planner; print('✅ Planner OK')"
python -c "from Modules.AgentRouter.AgentRouter import AgentRouter; print('✅ AgentRouter OK')"

2. Agent功能测试

# 测试MetaAgent
python -c "from CometLoop.MetaAgent import MetaAgent; agent = MetaAgent('你好'); print('✅ MetaAgent创建成功')"

# 测试具体代理
python -c "from Agents.XWebSearchAgent.XWebSearchAgent import XWebSearchAgent; agent = XWebSearchAgent('test', '.', True); print('✅ XWebSearchAgent OK')"
python -c "from Agents.XLifeGetAgent.XLifeGetAgent import XLifeGetAgent; agent = XLifeGetAgent('test', '.', True); print('✅ XLifeGetAgent OK')"

3. 插件系统测试

# 测试插件加载
python -c "from Plugin.Plug_Loader import PlugLoader; loader = PlugLoader(); print('✅ Plugin Loader OK')"