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>
11
12#include <string>
13#include <vector>
14
15namespace yarp::dev {
16class ILLM;
17} // namespace yarp
18
25{
26public:
30 virtual ~ILLM();
31
37 virtual bool setPrompt(const std::string& prompt) = 0;
38
44 virtual bool readPrompt(std::string& oPrompt) = 0;
45
52 virtual bool ask(const std::string& question, yarp::dev::LLM_Message& answer) = 0;
53
59 virtual bool getConversation(std::vector<yarp::dev::LLM_Message>& conversation) = 0;
60
65 virtual bool deleteConversation() = 0;
66};
67
68#endif
ILLM interface.
Definition ILLM.h:25
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 ~ILLM()
Destructor.
virtual bool setPrompt(const std::string &prompt)=0
Performs a question.
virtual bool readPrompt(std::string &oPrompt)=0
Retrieves the provided prompt.
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