7#include <aws/assurance/Assurance_EXPORTS.h>
8#include <aws/assurance/model/ChatChunkEvent.h>
9#include <aws/assurance/model/ChatErrorEvent.h>
10#include <aws/assurance/model/ChatResponseEvent.h>
11#include <aws/assurance/model/ChatToolCallEvent.h>
12#include <aws/crt/cbor/Cbor.h>
34 AWS_ASSURANCE_API
ChatEventStream(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_ASSURANCE_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
44 template <
typename ChunkT = ChatChunkEvent>
46 m_chunkHasBeenSet =
true;
47 m_chunk = std::forward<ChunkT>(value);
49 template <
typename ChunkT = ChatChunkEvent>
51 SetChunk(std::forward<ChunkT>(value));
62 template <
typename ToolCallT = ChatToolCallEvent>
64 m_toolCallHasBeenSet =
true;
65 m_toolCall = std::forward<ToolCallT>(value);
67 template <
typename ToolCallT = ChatToolCallEvent>
81 template <
typename ResponseT = ChatResponseEvent>
83 m_responseHasBeenSet =
true;
84 m_response = std::forward<ResponseT>(value);
86 template <
typename ResponseT = ChatResponseEvent>
101 template <
typename ErrorT = ChatErrorEvent>
103 m_errorHasBeenSet =
true;
104 m_error = std::forward<ErrorT>(value);
106 template <
typename ErrorT = ChatErrorEvent>
108 SetError(std::forward<ErrorT>(value));
120 bool m_chunkHasBeenSet =
false;
121 bool m_toolCallHasBeenSet =
false;
122 bool m_responseHasBeenSet =
false;
123 bool m_errorHasBeenSet =
false;
void SetToolCall(ToolCallT &&value)
const ChatResponseEvent & GetResponse() const
bool ChunkHasBeenSet() const
bool ToolCallHasBeenSet() const
ChatEventStream & WithChunk(ChunkT &&value)
ChatEventStream & WithResponse(ResponseT &&value)
void SetError(ErrorT &&value)
AWS_ASSURANCE_API ChatEventStream(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const ChatToolCallEvent & GetToolCall() const
bool ResponseHasBeenSet() const
bool ErrorHasBeenSet() const
AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const ChatChunkEvent & GetChunk() const
void SetResponse(ResponseT &&value)
AWS_ASSURANCE_API ChatEventStream & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetChunk(ChunkT &&value)
ChatEventStream & WithError(ErrorT &&value)
AWS_ASSURANCE_API ChatEventStream()=default
const ChatErrorEvent & GetError() const
ChatEventStream & WithToolCall(ToolCallT &&value)