16 #ifndef LEX_COMMON__LEX_COMMON_H_ 17 #define LEX_COMMON__LEX_COMMON_H_ 22 #include <aws/lex/LexRuntimeServiceClient.h> 23 #include <aws/lex/model/PostTextRequest.h> 24 #include <aws/lex/model/PostTextResult.h> 25 #include <aws/lex/model/PostContentRequest.h> 26 #include <aws/lex/model/PostContentResult.h> 27 #include <aws/core/Aws.h> 28 #include <aws/core/utils/Outcome.h> 29 #include <aws/core/utils/memory/stl/AWSString.h> 30 #include <aws/core/utils/HashingUtils.h> 31 #include <aws/core/utils/json/JsonSerializer.h> 32 #include <aws/core/utils/logging/AWSLogging.h> 33 #include <aws/core/utils/logging/LogMacros.h> 45 #include <unordered_map> 79 std::unordered_map<std::string, std::string>
slots;
102 Aws::LexRuntimeService::Model::PostContentResult & result,
109 const Aws::LexRuntimeService::Model::PostContentRequest & request);
113 const Aws::LexRuntimeService::Model::PostContentResult & result);
160 std::shared_ptr<LexConfiguration> lex_configuration,
161 std::shared_ptr<Aws::LexRuntimeService::LexRuntimeServiceClient> lex_runtime_client);
186 std::shared_ptr<Client::ParameterReaderInterface> params,
190 auto lex_configuration = std::make_shared<LexConfiguration>();
196 auto lex_runtime_client = Aws::MakeShared<Aws::LexRuntimeService::LexRuntimeServiceClient>(
199 lex_interactor.ConfigureAwsLex(lex_configuration, lex_runtime_client);
206 #endif // LEX_COMMON__LEX_COMMON_H_
std::string session_attributes
static const char * kAllocationTag
std::vector< uint8_t > audio_request
ErrorCode BuildLexInteractor(std::shared_ptr< Client::ParameterReaderInterface > params, LexInteractor &lex_interactor)
Utility function to configure a LexInteractor.
std::shared_ptr< Aws::LexRuntimeService::LexRuntimeServiceClient > lex_runtime_client_
ErrorCode CopyResult(Aws::LexRuntimeService::Model::PostContentResult &result, LexResponse &response)
Copy the PostContentRestult to a LexResponse.
std::ostream & operator<<(std::ostream &os, const Aws::LexRuntimeService::Model::PostContentRequest &request)
std::string message_format_type
std::unordered_map< std::string, std::string > slots
ClientConfiguration GetClientConfiguration(const std::string &ros_version_override="")
std::string text_response
std::shared_ptr< LexConfiguration > lex_configuration_
std::vector< uint8_t > audio_response
ErrorCode LoadLexParameters(const Client::ParameterReaderInterface ¶meter_interface, LexConfiguration &lex_configuration)