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/qbusiness/QBusiness_EXPORTS.h>
11#include <aws/qbusiness/QBusinessErrors.h>
13#include <aws/qbusiness/model/ChatInitialResponse.h>
14#include <aws/qbusiness/model/TextOutputEvent.h>
15#include <aws/qbusiness/model/MetadataEvent.h>
16#include <aws/qbusiness/model/ActionReviewEvent.h>
17#include <aws/qbusiness/model/FailedAttachmentEvent.h>
18#include <aws/qbusiness/model/AuthChallengeRequestEvent.h>
41 typedef std::function<void(
const TextOutputEvent&)> TextOutputEventCallback;
42 typedef std::function<void(
const MetadataEvent&)> MetadataEventCallback;
52 AWS_QBUSINESS_API
virtual void OnEvent()
override;
80 AWS_QBUSINESS_API
void HandleEventInMessage();
81 AWS_QBUSINESS_API
void HandleErrorInMessage();
84 ChatInitialResponseCallbackEx m_onInitialResponse;
85 TextOutputEventCallback m_onTextOutputEvent;
86 MetadataEventCallback m_onMetadataEvent;
87 ActionReviewEventCallback m_onActionReviewEvent;
88 FailedAttachmentEventCallback m_onFailedAttachmentEvent;
89 AuthChallengeRequestEventCallback m_onAuthChallengeRequestEvent;
90 ErrorCallback m_onError;
93namespace ChatEventMapper
void SetActionReviewEventCallback(const ActionReviewEventCallback &callback)
virtual AWS_QBUSINESS_API void OnEvent() override
AWS_QBUSINESS_API ChatHandler()
AWS_QBUSINESS_API ChatHandler & operator=(const ChatHandler &)=default
void SetInitialResponseCallback(const ChatInitialResponseCallback &noArgCallback)
void SetAuthChallengeRequestEventCallback(const AuthChallengeRequestEventCallback &callback)
void SetFailedAttachmentEventCallback(const FailedAttachmentEventCallback &callback)
void SetOnErrorCallback(const ErrorCallback &callback)
void SetTextOutputEventCallback(const TextOutputEventCallback &callback)
void SetInitialResponseCallbackEx(const ChatInitialResponseCallbackEx &callback)
ChatInitialResponseCallbackEx & GetInitialResponseCallbackEx()
void SetMetadataEventCallback(const MetadataEventCallback &callback)
AWS_QBUSINESS_API ChatEventType GetChatEventTypeForName(const Aws::String &name)
AWS_QBUSINESS_API Aws::String GetNameForChatEventType(ChatEventType value)
@ AUTHCHALLENGEREQUESTEVENT
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String