|
🛰️航天仿真算法库 SpaceAST 0.0.1
|
#include <ChatTools.hpp>
Public 成员函数 | |
| ChatTools (bool initAsDefault) | |
| std::string | handleToolCall (const JsonValue &toolCall) |
| void | addTool (std::unique_ptr< ChatTool > &&tool) |
| template<typename Func > | |
| ChatTool * | addTool (Func func) |
| void | clearTools () |
| JsonValue | toJson () const |
AI工具集合
所有AI工具的集合,用于管理工具的添加、删除和调用
|
inline |
添加工具
| tool | 工具指针 |
| std::string ast::ChatTools::handleToolCall | ( | const JsonValue & | toolCall | ) |
处理工具调用
| toolCall | 工具调用参数 |
| JsonValue ast::ChatTools::toJson | ( | ) | const |
将工具集合转换为JSON格式