#include <yarp/dev/ILLM.h>
Public Member Functions | |
virtual | ~ILLM () |
Destructor. | |
virtual yarp::dev::ReturnValue | setPrompt (const std::string &prompt)=0 |
Performs a question. | |
virtual yarp::dev::ReturnValue | readPrompt (std::string &oPrompt)=0 |
Retrieves the provided prompt. | |
virtual yarp::dev::ReturnValue | ask (const std::string &question, yarp::dev::LLM_Message &answer)=0 |
Performs a question. | |
virtual yarp::dev::ReturnValue | getConversation (std::vector< yarp::dev::LLM_Message > &conversation)=0 |
Retrieves the whole conversation. | |
virtual yarp::dev::ReturnValue | deleteConversation ()=0 |
Delete the conversation and clear the system context from any internally stored context. | |
virtual yarp::dev::ReturnValue | refreshConversation ()=0 |
Refresh the conversation. | |
|
virtualdefault |
Destructor.
|
pure virtual |
Performs a question.
question | the text of the question provided by the user |
answer | the returned answer |
Implemented in GPTDevice, FakeLLMDevice, and LLM_nwc_yarp.
|
pure virtual |
Delete the conversation and clear the system context from any internally stored context.
Implemented in GPTDevice, FakeLLMDevice, and LLM_nwc_yarp.
|
pure virtual |
Retrieves the whole conversation.
conversation | the conversation |
Implemented in GPTDevice, FakeLLMDevice, and LLM_nwc_yarp.
|
pure virtual |
Retrieves the provided prompt.
prompt | the stored prompt |
Implemented in FakeLLMDevice, GPTDevice, and LLM_nwc_yarp.
|
pure virtual |
Refresh the conversation.
Implemented in GPTDevice, FakeLLMDevice, and LLM_nwc_yarp.
|
pure virtual |
Performs a question.
prompt | provides a prompt to the LLM |
Implemented in GPTDevice, FakeLLMDevice, and LLM_nwc_yarp.