AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
InvokeModelWithBidirectionalStreamInput.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/BidirectionalInputPayloadPart.h>
9#include <utility>
10#include <aws/core/utils/event/EventStream.h>
11
12namespace Aws
13{
14namespace BedrockRuntime
15{
16namespace Model
17{
18
26 {
27 public:
29 {
31 msg.InsertEventHeader(":message-type", Aws::String("event"));
32 msg.InsertEventHeader(":event-type", Aws::String("chunk"));
33 msg.InsertEventHeader(":content-type", Aws::String("application/json"));
35 WriteEvent(msg);
36 return *this;
37 }
38
39 };
40
41} // namespace Model
42} // namespace BedrockRuntime
43} // namespace Aws
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
InvokeModelWithBidirectionalStreamInput & WriteBidirectionalInputPayloadPart(const BidirectionalInputPayloadPart &value)
void WriteEventPayload(const unsigned char *data, size_t length)
void InsertEventHeader(const Aws::String &headerName, const EventHeaderValue &eventHeaderValue)
Aws::String WriteCompact(bool treatAsObject=true) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String