7#include <aws/core/utils/HashingUtils.h>
8#include <aws/core/utils/event/EventStreamHandler.h>
9#include <aws/core/client/AWSError.h>
10#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
11#include <aws/lexv2-runtime/LexRuntimeV2Errors.h>
13#include <aws/lexv2-runtime/model/StartConversationInitialResponse.h>
14#include <aws/lexv2-runtime/model/PlaybackInterruptionEvent.h>
15#include <aws/lexv2-runtime/model/TranscriptEvent.h>
16#include <aws/lexv2-runtime/model/IntentResultEvent.h>
17#include <aws/lexv2-runtime/model/TextResponseEvent.h>
18#include <aws/lexv2-runtime/model/AudioResponseEvent.h>
19#include <aws/lexv2-runtime/model/HeartbeatEvent.h>
44 typedef std::function<void(
const TranscriptEvent&)> TranscriptEventCallback;
48 typedef std::function<void(
const HeartbeatEvent&)> HeartbeatEventCallback;
55 AWS_LEXRUNTIMEV2_API
virtual void OnEvent()
override;
84 AWS_LEXRUNTIMEV2_API
void HandleEventInMessage();
85 AWS_LEXRUNTIMEV2_API
void HandleErrorInMessage();
88 StartConversationInitialResponseCallbackEx m_onInitialResponse;
89 PlaybackInterruptionEventCallback m_onPlaybackInterruptionEvent;
90 TranscriptEventCallback m_onTranscriptEvent;
91 IntentResultEventCallback m_onIntentResultEvent;
92 TextResponseEventCallback m_onTextResponseEvent;
93 AudioResponseEventCallback m_onAudioResponseEvent;
94 HeartbeatEventCallback m_onHeartbeatEvent;
95 ErrorCallback m_onError;
98namespace StartConversationEventMapper
AWS_LEXRUNTIMEV2_API StartConversationHandler & operator=(const StartConversationHandler &)=default
StartConversationInitialResponseCallbackEx & GetInitialResponseCallbackEx()
void SetPlaybackInterruptionEventCallback(const PlaybackInterruptionEventCallback &callback)
void SetAudioResponseEventCallback(const AudioResponseEventCallback &callback)
void SetHeartbeatEventCallback(const HeartbeatEventCallback &callback)
void SetTranscriptEventCallback(const TranscriptEventCallback &callback)
void SetOnErrorCallback(const ErrorCallback &callback)
void SetInitialResponseCallback(const StartConversationInitialResponseCallback &noArgCallback)
void SetIntentResultEventCallback(const IntentResultEventCallback &callback)
AWS_LEXRUNTIMEV2_API StartConversationHandler()
void SetInitialResponseCallbackEx(const StartConversationInitialResponseCallbackEx &callback)
void SetTextResponseEventCallback(const TextResponseEventCallback &callback)
virtual AWS_LEXRUNTIMEV2_API void OnEvent() override
AWS_LEXRUNTIMEV2_API StartConversationEventType GetStartConversationEventTypeForName(const Aws::String &name)
AWS_LEXRUNTIMEV2_API Aws::String GetNameForStartConversationEventType(StartConversationEventType value)
StartConversationEventType
@ PLAYBACKINTERRUPTIONEVENT
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String