YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
IChatBot.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_ICHATBOT_H
7#define YARP_DEV_ICHATBOT_H
8
9#include <yarp/dev/api.h>
11
12#include <string>
13#include <vector>
14
15
16namespace yarp::dev {
17class IChatBot;
18} // namespace yarp
19
26{
27public:
31 virtual ~IChatBot();
32
39 virtual yarp::dev::ReturnValue interact(const std::string& messageIn, std::string& messageOut) = 0;
40
46 virtual yarp::dev::ReturnValue setLanguage(const std::string& language="auto") = 0;
47
53 virtual yarp::dev::ReturnValue getLanguage(std::string& language) = 0;
54
60 virtual yarp::dev::ReturnValue getStatus(std::string& status) = 0;
61
67};
68
69
70#endif //YARP_DEV_ICHATBOT_H
IChatBot interface.
Definition IChatBot.h:26
virtual ~IChatBot()
Destructor.
virtual yarp::dev::ReturnValue resetBot()=0
Resets the chatbot.
virtual yarp::dev::ReturnValue setLanguage(const std::string &language="auto")=0
Sets the chat bot language.
virtual yarp::dev::ReturnValue interact(const std::string &messageIn, std::string &messageOut)=0
Sends a message to the chatbot.
virtual yarp::dev::ReturnValue getLanguage(std::string &language)=0
Gets the current chatbot language.
virtual yarp::dev::ReturnValue getStatus(std::string &status)=0
Gets the current status of the bot.
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