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