🛰️航天仿真算法库 SpaceAST 0.3.1
载入中...
搜索中...
未找到
ast::AgentSession类 参考

#include <AgentSession.hpp>

+ 类 ast::AgentSession 继承关系图:

额外继承的成员函数

- Public 成员函数 继承自 ast::ChatSession
 ChatSession ()
 
std::string chat (StringView message, int maxIterForToolCalls=100)
 
std::string chatStream (StringView message, ChatEventHandler &handler, int maxIterForToolCalls=100)
 
errc_t sendMessage (StringView message)
 
void setSystemPrompt (StringView systemPrompt)
 
ChatMessages & messages ()
 
AssistantAgent & agent () const
 
void setAgent (std::unique_ptr< AssistantAgent > agent)
 
ChatTools & tools ()
 
LLMClient & client ()
 
const std::string & lastError () const
 
LLMConfig & config ()
 
const LLMConfig & config () const
 
errc_t makeChatCompletion ()
 
void handleToolCalls (const JsonValue &toolCalls)
 

详细描述

智能体会话


该类的文档由以下文件生成: