7#include <aws/bedrock-runtime/BedrockRuntimeRequest.h>
8#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
9#include <aws/bedrock-runtime/model/GuardrailConfiguration.h>
10#include <aws/bedrock-runtime/model/InferenceConfiguration.h>
11#include <aws/bedrock-runtime/model/Message.h>
12#include <aws/bedrock-runtime/model/PerformanceConfiguration.h>
13#include <aws/bedrock-runtime/model/PromptVariableValues.h>
14#include <aws/bedrock-runtime/model/ServiceTier.h>
15#include <aws/bedrock-runtime/model/SystemContentBlock.h>
16#include <aws/bedrock-runtime/model/ToolConfiguration.h>
17#include <aws/core/utils/Document.h>
18#include <aws/core/utils/memory/stl/AWSMap.h>
19#include <aws/core/utils/memory/stl/AWSString.h>
20#include <aws/core/utils/memory/stl/AWSVector.h>
25namespace BedrockRuntime {
72 template <
typename ModelIdT = Aws::String>
74 m_modelIdHasBeenSet =
true;
75 m_modelId = std::forward<ModelIdT>(value);
77 template <
typename ModelIdT = Aws::String>
90 template <
typename MessagesT = Aws::Vector<Message>>
92 m_messagesHasBeenSet =
true;
93 m_messages = std::forward<MessagesT>(value);
95 template <
typename MessagesT = Aws::Vector<Message>>
100 template <
typename MessagesT = Message>
102 m_messagesHasBeenSet =
true;
103 m_messages.emplace_back(std::forward<MessagesT>(value));
115 template <
typename SystemT = Aws::Vector<SystemContentBlock>>
117 m_systemHasBeenSet =
true;
118 m_system = std::forward<SystemT>(value);
120 template <
typename SystemT = Aws::Vector<SystemContentBlock>>
125 template <
typename SystemT = SystemContentBlock>
127 m_systemHasBeenSet =
true;
128 m_system.emplace_back(std::forward<SystemT>(value));
142 template <
typename InferenceConfigT = InferenceConfiguration>
144 m_inferenceConfigHasBeenSet =
true;
145 m_inferenceConfig = std::forward<InferenceConfigT>(value);
147 template <
typename InferenceConfigT = InferenceConfiguration>
164 template <
typename ToolConfigT = ToolConfiguration>
166 m_toolConfigHasBeenSet =
true;
167 m_toolConfig = std::forward<ToolConfigT>(value);
169 template <
typename ToolConfigT = ToolConfiguration>
187 template <
typename GuardrailConfigT = GuardrailConfiguration>
189 m_guardrailConfigHasBeenSet =
true;
190 m_guardrailConfig = std::forward<GuardrailConfigT>(value);
192 template <
typename GuardrailConfigT = GuardrailConfiguration>
210 template <
typename AdditionalModelRequestFieldsT = Aws::Utils::Document>
212 m_additionalModelRequestFieldsHasBeenSet =
true;
213 m_additionalModelRequestFields = std::forward<AdditionalModelRequestFieldsT>(value);
215 template <
typename AdditionalModelRequestFieldsT = Aws::Utils::Document>
231 template <
typename PromptVariablesT = Aws::Map<Aws::String, PromptVariableValues>>
233 m_promptVariablesHasBeenSet =
true;
234 m_promptVariables = std::forward<PromptVariablesT>(value);
236 template <
typename PromptVariablesT = Aws::Map<Aws::String, PromptVariableValues>>
241 template <
typename PromptVariablesKeyT = Aws::String,
typename PromptVariablesValueT = PromptVariableValues>
243 m_promptVariablesHasBeenSet =
true;
244 m_promptVariables.emplace(std::forward<PromptVariablesKeyT>(key), std::forward<PromptVariablesValueT>(value));
266 template <
typename AdditionalModelResponseFieldPathsT = Aws::Vector<Aws::String>>
268 m_additionalModelResponseFieldPathsHasBeenSet =
true;
269 m_additionalModelResponseFieldPaths = std::forward<AdditionalModelResponseFieldPathsT>(value);
271 template <
typename AdditionalModelResponseFieldPathsT = Aws::Vector<Aws::String>>
276 template <
typename AdditionalModelResponseFieldPathsT = Aws::String>
278 m_additionalModelResponseFieldPathsHasBeenSet =
true;
279 m_additionalModelResponseFieldPaths.emplace_back(std::forward<AdditionalModelResponseFieldPathsT>(value));
290 template <
typename RequestMetadataT = Aws::Map<Aws::String, Aws::String>>
292 m_requestMetadataHasBeenSet =
true;
293 m_requestMetadata = std::forward<RequestMetadataT>(value);
295 template <
typename RequestMetadataT = Aws::Map<Aws::String, Aws::String>>
300 template <
typename RequestMetadataKeyT = Aws::String,
typename RequestMetadataValueT = Aws::String>
302 m_requestMetadataHasBeenSet =
true;
303 m_requestMetadata.emplace(std::forward<RequestMetadataKeyT>(key), std::forward<RequestMetadataValueT>(value));
314 template <
typename PerformanceConfigT = PerformanceConfiguration>
316 m_performanceConfigHasBeenSet =
true;
317 m_performanceConfig = std::forward<PerformanceConfigT>(value);
319 template <
typename PerformanceConfigT = PerformanceConfiguration>
332 template <
typename ServiceTierT = ServiceTier>
334 m_serviceTierHasBeenSet =
true;
335 m_serviceTier = std::forward<ServiceTierT>(value);
337 template <
typename ServiceTierT = ServiceTier>
345 bool m_modelIdHasBeenSet =
false;
348 bool m_messagesHasBeenSet =
false;
351 bool m_systemHasBeenSet =
false;
354 bool m_inferenceConfigHasBeenSet =
false;
357 bool m_toolConfigHasBeenSet =
false;
360 bool m_guardrailConfigHasBeenSet =
false;
363 bool m_additionalModelRequestFieldsHasBeenSet =
false;
366 bool m_promptVariablesHasBeenSet =
false;
369 bool m_additionalModelResponseFieldPathsHasBeenSet =
false;
372 bool m_requestMetadataHasBeenSet =
false;
375 bool m_performanceConfigHasBeenSet =
false;
378 bool m_serviceTierHasBeenSet =
false;
void SetServiceTier(ServiceTierT &&value)
ConverseRequest & AddPromptVariables(PromptVariablesKeyT &&key, PromptVariablesValueT &&value)
ConverseRequest & WithAdditionalModelResponseFieldPaths(AdditionalModelResponseFieldPathsT &&value)
void SetToolConfig(ToolConfigT &&value)
ConverseRequest & WithGuardrailConfig(GuardrailConfigT &&value)
ConverseRequest & WithAdditionalModelRequestFields(AdditionalModelRequestFieldsT &&value)
ConverseRequest & AddRequestMetadata(RequestMetadataKeyT &&key, RequestMetadataValueT &&value)
bool AdditionalModelResponseFieldPathsHasBeenSet() const
Aws::Utils::DocumentView GetAdditionalModelRequestFields() const
ConverseRequest & WithServiceTier(ServiceTierT &&value)
void SetSystem(SystemT &&value)
void SetModelId(ModelIdT &&value)
bool PerformanceConfigHasBeenSet() const
virtual const char * GetServiceRequestName() const override
ConverseRequest & WithMessages(MessagesT &&value)
const InferenceConfiguration & GetInferenceConfig() const
void SetPromptVariables(PromptVariablesT &&value)
const GuardrailConfiguration & GetGuardrailConfig() const
const ServiceTier & GetServiceTier() const
bool ServiceTierHasBeenSet() const
ConverseRequest & WithToolConfig(ToolConfigT &&value)
ConverseRequest & WithModelId(ModelIdT &&value)
ConverseRequest & WithSystem(SystemT &&value)
const Aws::Vector< SystemContentBlock > & GetSystem() const
const PerformanceConfiguration & GetPerformanceConfig() const
ConverseRequest & AddSystem(SystemT &&value)
ConverseRequest & AddMessages(MessagesT &&value)
const Aws::Map< Aws::String, PromptVariableValues > & GetPromptVariables() const
ConverseRequest & AddAdditionalModelResponseFieldPaths(AdditionalModelResponseFieldPathsT &&value)
bool ToolConfigHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetRequestMetadata() const
ConverseRequest & WithInferenceConfig(InferenceConfigT &&value)
void SetRequestMetadata(RequestMetadataT &&value)
ConverseRequest & WithRequestMetadata(RequestMetadataT &&value)
bool MessagesHasBeenSet() const
bool GuardrailConfigHasBeenSet() const
ConverseRequest & WithPromptVariables(PromptVariablesT &&value)
void SetMessages(MessagesT &&value)
const ToolConfiguration & GetToolConfig() const
bool SystemHasBeenSet() const
void SetPerformanceConfig(PerformanceConfigT &&value)
bool AdditionalModelRequestFieldsHasBeenSet() const
AWS_BEDROCKRUNTIME_API ConverseRequest()=default
AWS_BEDROCKRUNTIME_API Aws::String SerializePayload() const override
bool InferenceConfigHasBeenSet() const
void SetAdditionalModelRequestFields(AdditionalModelRequestFieldsT &&value)
const Aws::Vector< Message > & GetMessages() const
void SetAdditionalModelResponseFieldPaths(AdditionalModelResponseFieldPathsT &&value)
bool RequestMetadataHasBeenSet() const
bool ModelIdHasBeenSet() const
void SetGuardrailConfig(GuardrailConfigT &&value)
ConverseRequest & WithPerformanceConfig(PerformanceConfigT &&value)
const Aws::String & GetModelId() const
void SetInferenceConfig(InferenceConfigT &&value)
const Aws::Vector< Aws::String > & GetAdditionalModelResponseFieldPaths() const
bool PromptVariablesHasBeenSet() const
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