mcp_test/app/tools/__init__.py
sun feb1a0b280 feat(agent): 新增MCP Agent客户端和工具系统
- 实现了基于LangChain的MCP Agent,支持连接MCP服务器调用工具
- 添加了环境配置文件(.env),包含LLM模型和API配置信息
- 创建了完整的工具系统,包括BaseTool基类和Bash、Terminate、Add等工具
- 集成了天气查询工具,支持通过中国气象局API获取天气预报信息
- 实现了交互式对话功能,支持多轮工具调用和结果处理
- 添加了详细的CLAUDE.md开发指导文档
2026-02-25 18:04:48 +08:00

16 lines
348 B
Python

from app.tools.base import BaseTool, ToolResult, CLIResult
from app.tools.bash import Bash
from app.tools.terminate import Terminate
from app.tools.add import Add
from app.tools.weather import GetWeatherByLocation
__all__ = [
"BaseTool",
"ToolResult",
"CLIResult",
"Bash",
"Terminate",
"Add",
"GetWeatherByLocation",
]