YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
ILLM.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2023-2023 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef YARP_DEV_ILLM_H
7#define YARP_DEV_ILLM_H
8
9#include <yarp/dev/api.h>
12
13#include <string>
14#include <vector>
15
16namespace yarp::dev {
17class ILLM;
18} // namespace yarp
19
26{
27public:
31 virtual ~ILLM();
32
38 virtual yarp::dev::ReturnValue setPrompt(const std::string& prompt) = 0;
39
45 virtual yarp::dev::ReturnValue readPrompt(std::string& oPrompt) = 0;
46
53 virtual yarp::dev::ReturnValue ask(const std::string& question, yarp::dev::LLM_Message& answer) = 0;
54
60 virtual yarp::dev::ReturnValue getConversation(std::vector<yarp::dev::LLM_Message>& conversation) = 0;
61
67
73};
74
75#endif
ILLM interface.
Definition ILLM.h:26
virtual yarp::dev::ReturnValue deleteConversation()=0
Delete the conversation and clear the system context from any internally stored context.
virtual yarp::dev::ReturnValue setPrompt(const std::string &prompt)=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 refreshConversation()=0
Refresh the conversation.
virtual ~ILLM()
Destructor.
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.
For streams capable of holding different kinds of content, check what they actually have.
The main, catch-all namespace for YARP.
Definition dirs.h:16
#define YARP_dev_API
Definition api.h:18