7#include <aws/bedrock-runtime/BedrockRuntimeRequest.h>
8#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
9#include <aws/bedrock-runtime/model/ConverseStreamHandler.h>
10#include <aws/bedrock-runtime/model/GuardrailStreamConfiguration.h>
11#include <aws/bedrock-runtime/model/InferenceConfiguration.h>
12#include <aws/bedrock-runtime/model/Message.h>
13#include <aws/bedrock-runtime/model/OutputConfig.h>
14#include <aws/bedrock-runtime/model/PerformanceConfiguration.h>
15#include <aws/bedrock-runtime/model/PromptVariableValues.h>
16#include <aws/bedrock-runtime/model/ServiceTier.h>
17#include <aws/bedrock-runtime/model/SystemContentBlock.h>
18#include <aws/bedrock-runtime/model/ToolConfiguration.h>
19#include <aws/core/utils/Document.h>
20#include <aws/core/utils/event/EventStreamDecoder.h>
21#include <aws/core/utils/memory/stl/AWSMap.h>
22#include <aws/core/utils/memory/stl/AWSString.h>
23#include <aws/core/utils/memory/stl/AWSVector.h>
28namespace BedrockRuntime {
102 template <
typename ModelIdT = Aws::String>
104 m_modelIdHasBeenSet =
true;
105 m_modelId = std::forward<ModelIdT>(value);
107 template <
typename ModelIdT = Aws::String>
120 template <
typename MessagesT = Aws::Vector<Message>>
122 m_messagesHasBeenSet =
true;
123 m_messages = std::forward<MessagesT>(value);
125 template <
typename MessagesT = Aws::Vector<Message>>
130 template <
typename MessagesT = Message>
132 m_messagesHasBeenSet =
true;
133 m_messages.emplace_back(std::forward<MessagesT>(value));
145 template <
typename SystemT = Aws::Vector<SystemContentBlock>>
147 m_systemHasBeenSet =
true;
148 m_system = std::forward<SystemT>(value);
150 template <
typename SystemT = Aws::Vector<SystemContentBlock>>
155 template <
typename SystemT = SystemContentBlock>
157 m_systemHasBeenSet =
true;
158 m_system.emplace_back(std::forward<SystemT>(value));
172 template <
typename InferenceConfigT = InferenceConfiguration>
174 m_inferenceConfigHasBeenSet =
true;
175 m_inferenceConfig = std::forward<InferenceConfigT>(value);
177 template <
typename InferenceConfigT = InferenceConfiguration>
194 template <
typename ToolConfigT = ToolConfiguration>
196 m_toolConfigHasBeenSet =
true;
197 m_toolConfig = std::forward<ToolConfigT>(value);
199 template <
typename ToolConfigT = ToolConfiguration>
217 template <
typename GuardrailConfigT = GuardrailStreamConfiguration>
219 m_guardrailConfigHasBeenSet =
true;
220 m_guardrailConfig = std::forward<GuardrailConfigT>(value);
222 template <
typename GuardrailConfigT = GuardrailStreamConfiguration>
240 template <
typename AdditionalModelRequestFieldsT = Aws::Utils::Document>
242 m_additionalModelRequestFieldsHasBeenSet =
true;
243 m_additionalModelRequestFields = std::forward<AdditionalModelRequestFieldsT>(value);
245 template <
typename AdditionalModelRequestFieldsT = Aws::Utils::Document>
261 template <
typename PromptVariablesT = Aws::Map<Aws::String, PromptVariableValues>>
263 m_promptVariablesHasBeenSet =
true;
264 m_promptVariables = std::forward<PromptVariablesT>(value);
266 template <
typename PromptVariablesT = Aws::Map<Aws::String, PromptVariableValues>>
271 template <
typename PromptVariablesKeyT = Aws::String,
typename PromptVariablesValueT = PromptVariableValues>
273 m_promptVariablesHasBeenSet =
true;
274 m_promptVariables.emplace(std::forward<PromptVariablesKeyT>(
key), std::forward<PromptVariablesValueT>(value));
296 template <
typename AdditionalModelResponseFieldPathsT = Aws::Vector<Aws::String>>
298 m_additionalModelResponseFieldPathsHasBeenSet =
true;
299 m_additionalModelResponseFieldPaths = std::forward<AdditionalModelResponseFieldPathsT>(value);
301 template <
typename AdditionalModelResponseFieldPathsT = Aws::Vector<Aws::String>>
306 template <
typename AdditionalModelResponseFieldPathsT = Aws::String>
308 m_additionalModelResponseFieldPathsHasBeenSet =
true;
309 m_additionalModelResponseFieldPaths.emplace_back(std::forward<AdditionalModelResponseFieldPathsT>(value));
320 template <
typename RequestMetadataT = Aws::Map<Aws::String, Aws::String>>
322 m_requestMetadataHasBeenSet =
true;
323 m_requestMetadata = std::forward<RequestMetadataT>(value);
325 template <
typename RequestMetadataT = Aws::Map<Aws::String, Aws::String>>
330 template <
typename RequestMetadataKeyT = Aws::String,
typename RequestMetadataValueT = Aws::String>
332 m_requestMetadataHasBeenSet =
true;
333 m_requestMetadata.emplace(std::forward<RequestMetadataKeyT>(
key), std::forward<RequestMetadataValueT>(value));
344 template <
typename PerformanceConfigT = PerformanceConfiguration>
346 m_performanceConfigHasBeenSet =
true;
347 m_performanceConfig = std::forward<PerformanceConfigT>(value);
349 template <
typename PerformanceConfigT = PerformanceConfiguration>
362 template <
typename ServiceTierT = ServiceTier>
364 m_serviceTierHasBeenSet =
true;
365 m_serviceTier = std::forward<ServiceTierT>(value);
367 template <
typename ServiceTierT = ServiceTier>
380 template <
typename OutputConfigT = OutputConfig>
382 m_outputConfigHasBeenSet =
true;
383 m_outputConfig = std::forward<OutputConfigT>(value);
385 template <
typename OutputConfigT = OutputConfig>
420 bool m_modelIdHasBeenSet =
false;
421 bool m_messagesHasBeenSet =
false;
422 bool m_systemHasBeenSet =
false;
423 bool m_inferenceConfigHasBeenSet =
false;
424 bool m_toolConfigHasBeenSet =
false;
425 bool m_guardrailConfigHasBeenSet =
false;
426 bool m_additionalModelRequestFieldsHasBeenSet =
false;
427 bool m_promptVariablesHasBeenSet =
false;
428 bool m_additionalModelResponseFieldPathsHasBeenSet =
false;
429 bool m_requestMetadataHasBeenSet =
false;
430 bool m_performanceConfigHasBeenSet =
false;
431 bool m_serviceTierHasBeenSet =
false;
432 bool m_outputConfigHasBeenSet =
false;
ConverseStreamRequest & WithEventStreamHandler(const ConverseStreamHandler &value)
void SetPromptVariables(PromptVariablesT &&value)
ConverseStreamRequest & WithAdditionalModelRequestFields(AdditionalModelRequestFieldsT &&value)
const Aws::Vector< SystemContentBlock > & GetSystem() const
const Aws::Map< Aws::String, Aws::String > & GetRequestMetadata() const
void SetPerformanceConfig(PerformanceConfigT &&value)
void SetAdditionalModelRequestFields(AdditionalModelRequestFieldsT &&value)
ConverseStreamRequest & WithModelId(ModelIdT &&value)
const ToolConfiguration & GetToolConfig() const
void SetMessages(MessagesT &&value)
void SetEventStreamHandler(const ConverseStreamHandler &value)
bool AdditionalModelRequestFieldsHasBeenSet() const
const OutputConfig & GetOutputConfig() const
ConverseStreamRequest & WithToolConfig(ToolConfigT &&value)
AWS_BEDROCKRUNTIME_API ConverseStreamRequest()=default
const Aws::Vector< Aws::String > & GetAdditionalModelResponseFieldPaths() const
bool OutputConfigHasBeenSet() const
void SetInferenceConfig(InferenceConfigT &&value)
ConverseStreamRequest & WithRequestMetadata(RequestMetadataT &&value)
ConverseStreamRequest & WithServiceTier(ServiceTierT &&value)
ConverseStreamRequest & AddMessages(MessagesT &&value)
ConverseStreamRequest & AddPromptVariables(PromptVariablesKeyT &&key, PromptVariablesValueT &&value)
virtual bool HasEventStreamResponse() const override
ConverseStreamRequest & AddSystem(SystemT &&value)
ConverseStreamHandler & GetEventStreamHandler()
Aws::Utils::Event::EventStreamDecoder & GetEventStreamDecoder()
bool RequestMetadataHasBeenSet() const
ConverseStreamRequest & WithOutputConfig(OutputConfigT &&value)
bool MessagesHasBeenSet() const
ConverseStreamRequest & WithInferenceConfig(InferenceConfigT &&value)
void SetOutputConfig(OutputConfigT &&value)
void SetGuardrailConfig(GuardrailConfigT &&value)
const Aws::Map< Aws::String, PromptVariableValues > & GetPromptVariables() const
ConverseStreamRequest & WithSystem(SystemT &&value)
void SetSystem(SystemT &&value)
void SetModelId(ModelIdT &&value)
ConverseStreamRequest & AddAdditionalModelResponseFieldPaths(AdditionalModelResponseFieldPathsT &&value)
ConverseStreamRequest & WithMessages(MessagesT &&value)
void SetRequestMetadata(RequestMetadataT &&value)
const PerformanceConfiguration & GetPerformanceConfig() const
const GuardrailStreamConfiguration & GetGuardrailConfig() const
const Aws::Vector< Message > & GetMessages() const
bool SystemHasBeenSet() const
ConverseStreamRequest & WithPromptVariables(PromptVariablesT &&value)
ConverseStreamRequest & AddRequestMetadata(RequestMetadataKeyT &&key, RequestMetadataValueT &&value)
void SetAdditionalModelResponseFieldPaths(AdditionalModelResponseFieldPathsT &&value)
virtual const char * GetServiceRequestName() const override
bool ModelIdHasBeenSet() const
ConverseStreamRequest & WithAdditionalModelResponseFieldPaths(AdditionalModelResponseFieldPathsT &&value)
const InferenceConfiguration & GetInferenceConfig() const
void SetToolConfig(ToolConfigT &&value)
bool ServiceTierHasBeenSet() const
ConverseStreamRequest & WithGuardrailConfig(GuardrailConfigT &&value)
bool ToolConfigHasBeenSet() const
void SetServiceTier(ServiceTierT &&value)
bool GuardrailConfigHasBeenSet() const
AWS_BEDROCKRUNTIME_API Aws::String SerializePayload() const override
bool PromptVariablesHasBeenSet() const
const ServiceTier & GetServiceTier() const
bool AdditionalModelResponseFieldPathsHasBeenSet() const
const Aws::String & GetModelId() const
Aws::Utils::DocumentView GetAdditionalModelRequestFields() const
bool PerformanceConfigHasBeenSet() const
ConverseStreamRequest & WithPerformanceConfig(PerformanceConfigT &&value)
bool InferenceConfigHasBeenSet() const
void ResetEventStreamHandler(EventStreamHandler *handler)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector