|
🛰️航天仿真算法库 SpaceAST 0.0.1
|
#include <ChatTool.hpp>
类 ast::ChatTool 继承关系图:Public 成员函数 | |
| virtual std::string | call (const JsonValue &arguments)=0 |
| const std::string & | name () const |
| void | setName (StringView name) |
| const std::string & | description () const |
| void | setDescription (StringView description) |
| const JsonValue & | parameters () const |
| void | setParameters (const JsonValue ¶meters) |
| JsonValue | toJson () const |
AI工具基类
所有AI工具的基类,定义了工具的基本属性和方法
|
pure virtual |
|
inline |
获取工具描述
|
inline |
获取工具名称
|
inline |
获取工具参数schema
|
inline |
设置工具描述
| description | 工具描述 |
|
inline |
设置工具名称
| name | 工具名称 |
|
inline |
设置工具参数schema
| parameters | 工具参数schema |
| JsonValue ast::ChatTool::toJson | ( | ) | const |
转换为JSON值