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

#include <PilotPlayer.hpp>

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

Public 类型

enum class  EPlayMode { Sequential , StepByStep }
 

信号

void stepStarted (int index, const std::string &description)
 
void stepCompleted (int index, const std::string &result)
 
void stepFailed (int index, const std::string &error)
 
void playbackFinished ()
 
void playbackPaused ()
 

Public 成员函数

 PilotPlayer (PilotSession *session, QObject *parent=nullptr)
 
bool loadScript (const std::string &filePath)
 
bool loadJson (const std::string &jsonStr)
 
void play (EPlayMode mode=EPlayMode::Sequential)
 
void pause ()
 
void resume ()
 
void step ()
 
void stop ()
 
bool isPlaying () const
 
int currentStep () const
 
int totalSteps () const
 
const std::string & lastError () const
 
std::string progress () const
 

详细描述

录制脚本回放器

加载 JSON 脚本,逐步通过 LLM 执行自然语言描述的操作。


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