6#ifndef FAKE_LLMDEVICE_H
7#define FAKE_LLMDEVICE_H
36 bool open(
yarp::os::Searchable& config) override;
37 bool close() override;
40 std::vector<
yarp::dev::LLM_Message> m_conversation;
This class is the parameters parser for class FakeLLMDevice.
fakeLLMDevice : a fake device which implements the ILLM interface for testing purposes.
yarp::dev::ReturnValue getConversation(std::vector< yarp::dev::LLM_Message > &oConversation) override
Retrieves the whole conversation.
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
yarp::dev::ReturnValue ask(const std::string &question, yarp::dev::LLM_Message &oAnswer) override
Performs a question.
yarp::dev::ReturnValue refreshConversation() noexcept override
Refresh the conversation.
bool close() override
Close the DeviceDriver.
yarp::dev::ReturnValue deleteConversation() noexcept 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.
yarp::dev::ReturnValue readPrompt(std::string &oPromp) override
Retrieves the provided prompt.
Interface implemented by all device drivers.
The main, catch-all namespace for YARP.