YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
yarp::dev::ILLM Class Referenceabstract

ILLM interface. More...

#include <yarp/dev/ILLM.h>

+ Inheritance diagram for yarp::dev::ILLM:

Public Member Functions

virtual ~ILLM ()
 Destructor.
 
virtual bool setPrompt (const std::string &prompt)=0
 Performs a question.
 
virtual bool readPrompt (std::string &oPrompt)=0
 Retrieves the provided prompt.
 
virtual bool ask (const std::string &question, yarp::dev::LLM_Message &answer)=0
 Performs a question.
 
virtual bool getConversation (std::vector< yarp::dev::LLM_Message > &conversation)=0
 Retrieves the whole conversation.
 
virtual bool deleteConversation ()=0
 Delete the conversation and clear the system context from any internally stored context.
 
virtual bool refreshConversation ()=0
 Refresh the conversation.
 

Detailed Description

ILLM interface.

Provides methods to interact with a LLM.

Definition at line 24 of file ILLM.h.

Constructor & Destructor Documentation

◆ ~ILLM()

yarp::dev::ILLM::~ILLM ( )
virtualdefault

Destructor.

Member Function Documentation

◆ ask()

virtual bool yarp::dev::ILLM::ask ( const std::string &  question,
yarp::dev::LLM_Message answer 
)
pure virtual

Performs a question.

Parameters
questionthe text of the question provided by the user
answerthe returned answer
Returns
true/false

Implemented in GPTDevice, FakeLLMDevice, and LLM_nwc_yarp.

◆ deleteConversation()

virtual bool yarp::dev::ILLM::deleteConversation ( )
pure virtual

Delete the conversation and clear the system context from any internally stored context.

Returns
true/false

Implemented in GPTDevice, FakeLLMDevice, and LLM_nwc_yarp.

◆ getConversation()

virtual bool yarp::dev::ILLM::getConversation ( std::vector< yarp::dev::LLM_Message > &  conversation)
pure virtual

Retrieves the whole conversation.

Parameters
conversationthe conversation
Returns
true/false

Implemented in GPTDevice, FakeLLMDevice, and LLM_nwc_yarp.

◆ readPrompt()

virtual bool yarp::dev::ILLM::readPrompt ( std::string &  oPrompt)
pure virtual

Retrieves the provided prompt.

Parameters
promptthe stored prompt
Returns
true/false

Implemented in FakeLLMDevice, GPTDevice, and LLM_nwc_yarp.

◆ refreshConversation()

virtual bool yarp::dev::ILLM::refreshConversation ( )
pure virtual

Refresh the conversation.

Returns
true/false

Implemented in GPTDevice, FakeLLMDevice, and LLM_nwc_yarp.

◆ setPrompt()

virtual bool yarp::dev::ILLM::setPrompt ( const std::string &  prompt)
pure virtual

Performs a question.

Parameters
promptprovides a prompt to the LLM
Returns
true/false

Implemented in GPTDevice, FakeLLMDevice, and LLM_nwc_yarp.


The documentation for this class was generated from the following files: