add query for suggested actions

This commit is contained in:
2023-02-23 01:07:44 -03:00
parent d6532715bd
commit 3a23121743
10 changed files with 164 additions and 4 deletions

View File

@@ -73,7 +73,7 @@ namespace obelisk
* @param[in] rightEntity The right entity.
* @return std::string Returns the suggested action.
*/
std::string query_action(const std::string& leftEntity,
std::string queryAction(const std::string& leftEntity,
const std::string& verb,
const std::string& rightEntity);
};

View File

@@ -50,6 +50,21 @@ extern "C"
const char* verb,
const char* right_entity);
/**
* @brief Query the obelisk KnowledgeBase to get a suggested Action to do.
*
* @param[in] obelisk The obelisk object.
* @param[in] left_entity The left entity.
* @param[in] verb The verb.
* @param[in] right_entity The right entity.
* @return char* Returns the Action to do or an empty string if there is no
* action.
*/
extern char* obelisk_query_action(CObelisk* obelisk,
const char* left_entity,
const char* verb,
const char* right_entity);
/**
* @brief Get the obelisk library so version.
*