7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/BedrockRuntimeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/bedrock-runtime/model/InferenceConfiguration.h>
12#include <aws/bedrock-runtime/model/ToolConfiguration.h>
13#include <aws/bedrock-runtime/model/GuardrailConfiguration.h>
14#include <aws/core/utils/Document.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <aws/bedrock-runtime/model/PerformanceConfiguration.h>
17#include <aws/bedrock-runtime/model/Message.h>
18#include <aws/bedrock-runtime/model/SystemContentBlock.h>
19#include <aws/bedrock-runtime/model/PromptVariableValues.h>
24namespace BedrockRuntime
75 template<
typename ModelIdT = Aws::String>
76 void SetModelId(ModelIdT&& value) { m_modelIdHasBeenSet =
true; m_modelId = std::forward<ModelIdT>(value); }
77 template<
typename ModelIdT = Aws::String>
87 template<
typename MessagesT = Aws::Vector<Message>>
88 void SetMessages(MessagesT&& value) { m_messagesHasBeenSet =
true; m_messages = std::forward<MessagesT>(value); }
89 template<
typename MessagesT = Aws::Vector<Message>>
91 template<
typename MessagesT = Message>
92 ConverseRequest&
AddMessages(MessagesT&& value) { m_messagesHasBeenSet =
true; m_messages.emplace_back(std::forward<MessagesT>(value));
return *
this; }
102 template<
typename SystemT = Aws::Vector<SystemContentBlock>>
103 void SetSystem(SystemT&& value) { m_systemHasBeenSet =
true; m_system = std::forward<SystemT>(value); }
104 template<
typename SystemT = Aws::Vector<SystemContentBlock>>
106 template<
typename SystemT = SystemContentBlock>
107 ConverseRequest&
AddSystem(SystemT&& value) { m_systemHasBeenSet =
true; m_system.emplace_back(std::forward<SystemT>(value));
return *
this; }
119 template<
typename InferenceConfigT = InferenceConfiguration>
120 void SetInferenceConfig(InferenceConfigT&& value) { m_inferenceConfigHasBeenSet =
true; m_inferenceConfig = std::forward<InferenceConfigT>(value); }
121 template<
typename InferenceConfigT = InferenceConfiguration>
135 template<
typename ToolConfigT = ToolConfiguration>
136 void SetToolConfig(ToolConfigT&& value) { m_toolConfigHasBeenSet =
true; m_toolConfig = std::forward<ToolConfigT>(value); }
137 template<
typename ToolConfigT = ToolConfiguration>
152 template<
typename GuardrailConfigT = GuardrailConfiguration>
153 void SetGuardrailConfig(GuardrailConfigT&& value) { m_guardrailConfigHasBeenSet =
true; m_guardrailConfig = std::forward<GuardrailConfigT>(value); }
154 template<
typename GuardrailConfigT = GuardrailConfiguration>
169 template<
typename AdditionalModelRequestFieldsT = Aws::Utils::Document>
170 void SetAdditionalModelRequestFields(AdditionalModelRequestFieldsT&& value) { m_additionalModelRequestFieldsHasBeenSet =
true; m_additionalModelRequestFields = std::forward<AdditionalModelRequestFieldsT>(value); }
171 template<
typename AdditionalModelRequestFieldsT = Aws::Utils::Document>
184 template<
typename PromptVariablesT = Aws::Map<Aws::String, PromptVariableValues>>
185 void SetPromptVariables(PromptVariablesT&& value) { m_promptVariablesHasBeenSet =
true; m_promptVariables = std::forward<PromptVariablesT>(value); }
186 template<
typename PromptVariablesT = Aws::Map<Aws::String, PromptVariableValues>>
188 template<
typename PromptVariablesKeyT = Aws::String,
typename PromptVariablesValueT = PromptVariableValues>
190 m_promptVariablesHasBeenSet =
true; m_promptVariables.emplace(std::forward<PromptVariablesKeyT>(key), std::forward<PromptVariablesValueT>(value));
return *
this;
211 template<
typename AdditionalModelResponseFieldPathsT = Aws::Vector<Aws::String>>
212 void SetAdditionalModelResponseFieldPaths(AdditionalModelResponseFieldPathsT&& value) { m_additionalModelResponseFieldPathsHasBeenSet =
true; m_additionalModelResponseFieldPaths = std::forward<AdditionalModelResponseFieldPathsT>(value); }
213 template<
typename AdditionalModelResponseFieldPathsT = Aws::Vector<Aws::String>>
215 template<
typename AdditionalModelResponseFieldPathsT = Aws::String>
216 ConverseRequest&
AddAdditionalModelResponseFieldPaths(AdditionalModelResponseFieldPathsT&& value) { m_additionalModelResponseFieldPathsHasBeenSet =
true; m_additionalModelResponseFieldPaths.emplace_back(std::forward<AdditionalModelResponseFieldPathsT>(value));
return *
this; }
225 template<
typename RequestMetadataT = Aws::Map<Aws::String, Aws::String>>
226 void SetRequestMetadata(RequestMetadataT&& value) { m_requestMetadataHasBeenSet =
true; m_requestMetadata = std::forward<RequestMetadataT>(value); }
227 template<
typename RequestMetadataT = Aws::Map<Aws::String, Aws::String>>
229 template<
typename RequestMetadataKeyT = Aws::String,
typename RequestMetadataValueT = Aws::String>
231 m_requestMetadataHasBeenSet =
true; m_requestMetadata.emplace(std::forward<RequestMetadataKeyT>(key), std::forward<RequestMetadataValueT>(value));
return *
this;
241 template<
typename PerformanceConfigT = PerformanceConfiguration>
242 void SetPerformanceConfig(PerformanceConfigT&& value) { m_performanceConfigHasBeenSet =
true; m_performanceConfig = std::forward<PerformanceConfigT>(value); }
243 template<
typename PerformanceConfigT = PerformanceConfiguration>
249 bool m_modelIdHasBeenSet =
false;
252 bool m_messagesHasBeenSet =
false;
255 bool m_systemHasBeenSet =
false;
258 bool m_inferenceConfigHasBeenSet =
false;
261 bool m_toolConfigHasBeenSet =
false;
264 bool m_guardrailConfigHasBeenSet =
false;
267 bool m_additionalModelRequestFieldsHasBeenSet =
false;
270 bool m_promptVariablesHasBeenSet =
false;
273 bool m_additionalModelResponseFieldPathsHasBeenSet =
false;
276 bool m_requestMetadataHasBeenSet =
false;
279 bool m_performanceConfigHasBeenSet =
false;
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
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
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