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/OutputConfig.h>
13#include <aws/bedrock-runtime/model/PerformanceConfiguration.h>
14#include <aws/bedrock-runtime/model/PromptVariableValues.h>
15#include <aws/bedrock-runtime/model/ServiceTier.h>
16#include <aws/bedrock-runtime/model/SystemContentBlock.h>
17#include <aws/bedrock-runtime/model/ToolConfiguration.h>
18#include <aws/core/utils/Document.h>
19#include <aws/core/utils/memory/stl/AWSMap.h>
20#include <aws/core/utils/memory/stl/AWSString.h>
21#include <aws/core/utils/memory/stl/AWSVector.h>
26namespace BedrockRuntime {
73 template <
typename ModelIdT = Aws::String>
75 m_modelIdHasBeenSet =
true;
76 m_modelId = std::forward<ModelIdT>(value);
78 template <
typename ModelIdT = Aws::String>
91 template <
typename MessagesT = Aws::Vector<Message>>
93 m_messagesHasBeenSet =
true;
94 m_messages = std::forward<MessagesT>(value);
96 template <
typename MessagesT = Aws::Vector<Message>>
101 template <
typename MessagesT = Message>
103 m_messagesHasBeenSet =
true;
104 m_messages.emplace_back(std::forward<MessagesT>(value));
116 template <
typename SystemT = Aws::Vector<SystemContentBlock>>
118 m_systemHasBeenSet =
true;
119 m_system = std::forward<SystemT>(value);
121 template <
typename SystemT = Aws::Vector<SystemContentBlock>>
126 template <
typename SystemT = SystemContentBlock>
128 m_systemHasBeenSet =
true;
129 m_system.emplace_back(std::forward<SystemT>(value));
143 template <
typename InferenceConfigT = InferenceConfiguration>
145 m_inferenceConfigHasBeenSet =
true;
146 m_inferenceConfig = std::forward<InferenceConfigT>(value);
148 template <
typename InferenceConfigT = InferenceConfiguration>
165 template <
typename ToolConfigT = ToolConfiguration>
167 m_toolConfigHasBeenSet =
true;
168 m_toolConfig = std::forward<ToolConfigT>(value);
170 template <
typename ToolConfigT = ToolConfiguration>
188 template <
typename GuardrailConfigT = GuardrailConfiguration>
190 m_guardrailConfigHasBeenSet =
true;
191 m_guardrailConfig = std::forward<GuardrailConfigT>(value);
193 template <
typename GuardrailConfigT = GuardrailConfiguration>
211 template <
typename AdditionalModelRequestFieldsT = Aws::Utils::Document>
213 m_additionalModelRequestFieldsHasBeenSet =
true;
214 m_additionalModelRequestFields = std::forward<AdditionalModelRequestFieldsT>(value);
216 template <
typename AdditionalModelRequestFieldsT = Aws::Utils::Document>
232 template <
typename PromptVariablesT = Aws::Map<Aws::String, PromptVariableValues>>
234 m_promptVariablesHasBeenSet =
true;
235 m_promptVariables = std::forward<PromptVariablesT>(value);
237 template <
typename PromptVariablesT = Aws::Map<Aws::String, PromptVariableValues>>
242 template <
typename PromptVariablesKeyT = Aws::String,
typename PromptVariablesValueT = PromptVariableValues>
244 m_promptVariablesHasBeenSet =
true;
245 m_promptVariables.emplace(std::forward<PromptVariablesKeyT>(
key), std::forward<PromptVariablesValueT>(value));
267 template <
typename AdditionalModelResponseFieldPathsT = Aws::Vector<Aws::String>>
269 m_additionalModelResponseFieldPathsHasBeenSet =
true;
270 m_additionalModelResponseFieldPaths = std::forward<AdditionalModelResponseFieldPathsT>(value);
272 template <
typename AdditionalModelResponseFieldPathsT = Aws::Vector<Aws::String>>
277 template <
typename AdditionalModelResponseFieldPathsT = Aws::String>
279 m_additionalModelResponseFieldPathsHasBeenSet =
true;
280 m_additionalModelResponseFieldPaths.emplace_back(std::forward<AdditionalModelResponseFieldPathsT>(value));
291 template <
typename RequestMetadataT = Aws::Map<Aws::String, Aws::String>>
293 m_requestMetadataHasBeenSet =
true;
294 m_requestMetadata = std::forward<RequestMetadataT>(value);
296 template <
typename RequestMetadataT = Aws::Map<Aws::String, Aws::String>>
301 template <
typename RequestMetadataKeyT = Aws::String,
typename RequestMetadataValueT = Aws::String>
303 m_requestMetadataHasBeenSet =
true;
304 m_requestMetadata.emplace(std::forward<RequestMetadataKeyT>(
key), std::forward<RequestMetadataValueT>(value));
315 template <
typename PerformanceConfigT = PerformanceConfiguration>
317 m_performanceConfigHasBeenSet =
true;
318 m_performanceConfig = std::forward<PerformanceConfigT>(value);
320 template <
typename PerformanceConfigT = PerformanceConfiguration>
333 template <
typename ServiceTierT = ServiceTier>
335 m_serviceTierHasBeenSet =
true;
336 m_serviceTier = std::forward<ServiceTierT>(value);
338 template <
typename ServiceTierT = ServiceTier>
351 template <
typename OutputConfigT = OutputConfig>
353 m_outputConfigHasBeenSet =
true;
354 m_outputConfig = std::forward<OutputConfigT>(value);
356 template <
typename OutputConfigT = OutputConfig>
388 bool m_modelIdHasBeenSet =
false;
389 bool m_messagesHasBeenSet =
false;
390 bool m_systemHasBeenSet =
false;
391 bool m_inferenceConfigHasBeenSet =
false;
392 bool m_toolConfigHasBeenSet =
false;
393 bool m_guardrailConfigHasBeenSet =
false;
394 bool m_additionalModelRequestFieldsHasBeenSet =
false;
395 bool m_promptVariablesHasBeenSet =
false;
396 bool m_additionalModelResponseFieldPathsHasBeenSet =
false;
397 bool m_requestMetadataHasBeenSet =
false;
398 bool m_performanceConfigHasBeenSet =
false;
399 bool m_serviceTierHasBeenSet =
false;
400 bool m_outputConfigHasBeenSet =
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 & WithOutputConfig(OutputConfigT &&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
const OutputConfig & GetOutputConfig() const
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)
void SetOutputConfig(OutputConfigT &&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)
bool OutputConfigHasBeenSet() const
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::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