35 bool close()
override;
38 bool setPrompt(
const std::string& prompt)
override;
39 bool readPrompt(std::string& oPrompt)
override;
41 bool getConversation(std::vector<yarp::dev::LLM_Message>& oConversation)
override;
This class is the parameters parser for class LLM_nwc_yarp.
LLM_nwc_yarp: The client side of any ILLM capable device.
bool ask(const std::string &question, yarp::dev::LLM_Message &oAnswer) override
Performs a question.
bool setPrompt(const std::string &prompt) override
Performs a question.
bool close() override
Close the DeviceDriver.
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
bool getConversation(std::vector< yarp::dev::LLM_Message > &oConversation) override
Retrieves the whole conversation.
bool readPrompt(std::string &oPrompt) override
Retrieves the provided prompt.
yarp::os::Port m_rpc_port_to_LLM_server
bool deleteConversation() override
Delete the conversation and clear the system context from any internally stored context.
yarp::dev::llm::ILLMMsgs m_LLM_RPC
bool refreshConversation() override
Refresh the conversation.
Interface implemented by all device drivers.
A mini-server for network communication.
A base class for nested structures that can be searched.