55 std::string
execute(
const std::string& command);
59 void chat(
const std::string& message,
int maxIterForToolCalls=100);
聊天会话
定义 ChatSession.hpp:44
Qt控件生命周期管理与界面快照生成
定义 PilotAgent.hpp:46
AstUiPilot 对话会话
定义 PilotSession.hpp:40
void chat(const std::string &message, int maxIterForToolCalls=100)
发送消息
~PilotSession() override
析构函数
ChatSession & session()
获取 ChatSession(用于高级配置)
PilotAgent * agent() const
获取 PilotAgent
定义 PilotSession.hpp:65
PilotSession(PilotAgent *agent, QObject *parent=nullptr)
构造函数
std::string buildSystemPrompt() const
构建完整的系统提示词(含应用信息)
std::string execute(const std::string &command)
执行自然语言指令
static const char * systemPrompt()
获取系统提示词