-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3019 from elandini84/feature/IChatBot_interface
Feature/i chat bot interface
- Loading branch information
Showing
35 changed files
with
2,777 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
doc/release/yarp_3_9_master/feature_device_iChatBot_interface.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
feature_device_iChatBot_interface {#master} | ||
--------------- | ||
|
||
### Devices - libYARP_dev | ||
|
||
#### `IChatBot` | ||
|
||
* Added a `yarp` `interface` to interact with chatbots. It allows to send messages and receive answers and to manage the bot language. | ||
|
||
* This does not features "implementation-specific" functionalities that could benefit the user but are not universally available among the various chatbot that can be found online. The idea is to open new PR in the future with new interfaces derived from `yarp::dev::IChatBot` that will model different "classes" of | ||
chatbots (an example on how chatbots can be classified, can be found in this article: [A critical review of state-of-the-art chatbot designs and applications](https://doi.org/10.1002/widm.1434)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# SPDX-FileCopyrightText: 2023-2023 Istituto Italiano di Tecnologia (IIT) | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
if(NOT YARP_COMPILE_DEVICE_PLUGINS) | ||
return() | ||
endif() | ||
|
||
include(YarpChooseIDL) | ||
yarp_choose_idl(ICHATBOTMSGS_THRIFT IChatBotMsgs.thrift) | ||
|
||
add_library(IChatBotMsgs OBJECT) | ||
|
||
target_sources(IChatBotMsgs PRIVATE ${ICHATBOTMSGS_THRIFT_GEN_FILES}) | ||
|
||
target_link_libraries(IChatBotMsgs | ||
PRIVATE | ||
YARP::YARP_dev | ||
YARP::YARP_os | ||
YARP::YARP_sig | ||
) | ||
|
||
target_include_directories(IChatBotMsgs PUBLIC ${ICHATBOTMSGS_THRIFT_BUILD_INTERFACE_INCLUDE_DIRS}) | ||
|
||
set_property(TARGET IChatBotMsgs PROPERTY FOLDER "Devices/Shared") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2023-2023 Istituto Italiano di Tecnologia (IIT) | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
struct return_interact{ | ||
1: bool result; | ||
2: string messageOut; | ||
} | ||
|
||
struct return_getLanguage{ | ||
1: bool result; | ||
2: string language; | ||
} | ||
|
||
service IChatBotMsgs { | ||
return_interact interactRPC(1: string messageIn); | ||
bool setLanguageRPC(1: string language); | ||
return_getLanguage getLanguageRPC(); | ||
bool resetBotRPC(); | ||
} |
Oops, something went wrong.