7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/BedrockRuntimeRequest.h>
9#include <aws/bedrock-runtime/model/ConverseStreamHandler.h>
10#include <aws/core/utils/event/EventStreamDecoder.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/bedrock-runtime/model/InferenceConfiguration.h>
14#include <aws/bedrock-runtime/model/ToolConfiguration.h>
15#include <aws/bedrock-runtime/model/GuardrailStreamConfiguration.h>
16#include <aws/core/utils/Document.h>
17#include <aws/core/utils/memory/stl/AWSMap.h>
18#include <aws/bedrock-runtime/model/PerformanceConfiguration.h>
19#include <aws/bedrock-runtime/model/Message.h>
20#include <aws/bedrock-runtime/model/SystemContentBlock.h>
21#include <aws/bedrock-runtime/model/PromptVariableValues.h>
26namespace BedrockRuntime
98 template<
typename ModelIdT = Aws::String>
99 void SetModelId(ModelIdT&& value) { m_modelIdHasBeenSet =
true; m_modelId = std::forward<ModelIdT>(value); }
100 template<
typename ModelIdT = Aws::String>
110 template<
typename MessagesT = Aws::Vector<Message>>
111 void SetMessages(MessagesT&& value) { m_messagesHasBeenSet =
true; m_messages = std::forward<MessagesT>(value); }
112 template<
typename MessagesT = Aws::Vector<Message>>
114 template<
typename MessagesT = Message>
125 template<
typename SystemT = Aws::Vector<SystemContentBlock>>
126 void SetSystem(SystemT&& value) { m_systemHasBeenSet =
true; m_system = std::forward<SystemT>(value); }
127 template<
typename SystemT = Aws::Vector<SystemContentBlock>>
129 template<
typename SystemT = SystemContentBlock>
142 template<
typename InferenceConfigT = InferenceConfiguration>
143 void SetInferenceConfig(InferenceConfigT&& value) { m_inferenceConfigHasBeenSet =
true; m_inferenceConfig = std::forward<InferenceConfigT>(value); }
144 template<
typename InferenceConfigT = InferenceConfiguration>
158 template<
typename ToolConfigT = ToolConfiguration>
159 void SetToolConfig(ToolConfigT&& value) { m_toolConfigHasBeenSet =
true; m_toolConfig = std::forward<ToolConfigT>(value); }
160 template<
typename ToolConfigT = ToolConfiguration>
175 template<
typename GuardrailConfigT = GuardrailStreamConfiguration>
176 void SetGuardrailConfig(GuardrailConfigT&& value) { m_guardrailConfigHasBeenSet =
true; m_guardrailConfig = std::forward<GuardrailConfigT>(value); }
177 template<
typename GuardrailConfigT = GuardrailStreamConfiguration>
192 template<
typename AdditionalModelRequestFieldsT = Aws::Utils::Document>
193 void SetAdditionalModelRequestFields(AdditionalModelRequestFieldsT&& value) { m_additionalModelRequestFieldsHasBeenSet =
true; m_additionalModelRequestFields = std::forward<AdditionalModelRequestFieldsT>(value); }
194 template<
typename AdditionalModelRequestFieldsT = Aws::Utils::Document>
207 template<
typename PromptVariablesT = Aws::Map<Aws::String, PromptVariableValues>>
208 void SetPromptVariables(PromptVariablesT&& value) { m_promptVariablesHasBeenSet =
true; m_promptVariables = std::forward<PromptVariablesT>(value); }
209 template<
typename PromptVariablesT = Aws::Map<Aws::String, PromptVariableValues>>
211 template<
typename PromptVariablesKeyT = Aws::String,
typename PromptVariablesValueT = PromptVariableValues>
213 m_promptVariablesHasBeenSet =
true; m_promptVariables.emplace(std::forward<PromptVariablesKeyT>(key), std::forward<PromptVariablesValueT>(value));
return *
this;
234 template<
typename AdditionalModelResponseFieldPathsT = Aws::Vector<Aws::String>>
235 void SetAdditionalModelResponseFieldPaths(AdditionalModelResponseFieldPathsT&& value) { m_additionalModelResponseFieldPathsHasBeenSet =
true; m_additionalModelResponseFieldPaths = std::forward<AdditionalModelResponseFieldPathsT>(value); }
236 template<
typename AdditionalModelResponseFieldPathsT = Aws::Vector<Aws::String>>
238 template<
typename AdditionalModelResponseFieldPathsT = Aws::String>
248 template<
typename RequestMetadataT = Aws::Map<Aws::String, Aws::String>>
249 void SetRequestMetadata(RequestMetadataT&& value) { m_requestMetadataHasBeenSet =
true; m_requestMetadata = std::forward<RequestMetadataT>(value); }
250 template<
typename RequestMetadataT = Aws::Map<Aws::String, Aws::String>>
252 template<
typename RequestMetadataKeyT = Aws::String,
typename RequestMetadataValueT = Aws::String>
254 m_requestMetadataHasBeenSet =
true; m_requestMetadata.emplace(std::forward<RequestMetadataKeyT>(key), std::forward<RequestMetadataValueT>(value));
return *
this;
264 template<
typename PerformanceConfigT = PerformanceConfiguration>
265 void SetPerformanceConfig(PerformanceConfigT&& value) { m_performanceConfigHasBeenSet =
true; m_performanceConfig = std::forward<PerformanceConfigT>(value); }
266 template<
typename PerformanceConfigT = PerformanceConfiguration>
272 bool m_modelIdHasBeenSet =
false;
275 bool m_messagesHasBeenSet =
false;
278 bool m_systemHasBeenSet =
false;
281 bool m_inferenceConfigHasBeenSet =
false;
284 bool m_toolConfigHasBeenSet =
false;
287 bool m_guardrailConfigHasBeenSet =
false;
290 bool m_additionalModelRequestFieldsHasBeenSet =
false;
293 bool m_promptVariablesHasBeenSet =
false;
296 bool m_additionalModelResponseFieldPathsHasBeenSet =
false;
299 bool m_requestMetadataHasBeenSet =
false;
302 bool m_performanceConfigHasBeenSet =
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
ConverseStreamRequest & WithToolConfig(ToolConfigT &&value)
AWS_BEDROCKRUNTIME_API ConverseStreamRequest()=default
const Aws::Vector< Aws::String > & GetAdditionalModelResponseFieldPaths() const
void SetInferenceConfig(InferenceConfigT &&value)
ConverseStreamRequest & WithRequestMetadata(RequestMetadataT &&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
bool MessagesHasBeenSet() const
ConverseStreamRequest & WithInferenceConfig(InferenceConfigT &&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)
ConverseStreamRequest & WithGuardrailConfig(GuardrailConfigT &&value)
bool ToolConfigHasBeenSet() const
bool GuardrailConfigHasBeenSet() const
AWS_BEDROCKRUNTIME_API Aws::String SerializePayload() const override
bool PromptVariablesHasBeenSet() 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::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