7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/bedrock-agent-runtime/model/GuardrailConfiguration.h>
10#include <aws/bedrock-agent-runtime/model/InferenceConfig.h>
11#include <aws/bedrock-agent-runtime/model/PerformanceConfiguration.h>
12#include <aws/bedrock-agent-runtime/model/PromptTemplate.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/Document.h>
27namespace BedrockAgentRuntime
55 template<
typename AdditionalModelRequestFieldsT = Aws::Map<Aws::String, Aws::Utils::Document>>
56 void SetAdditionalModelRequestFields(AdditionalModelRequestFieldsT&& value) { m_additionalModelRequestFieldsHasBeenSet =
true; m_additionalModelRequestFields = std::forward<AdditionalModelRequestFieldsT>(value); }
57 template<
typename AdditionalModelRequestFieldsT = Aws::Map<Aws::String, Aws::Utils::Document>>
59 template<
typename AdditionalModelRequestFieldsKeyT = Aws::String,
typename AdditionalModelRequestFieldsValueT = Aws::Utils::Document>
61 m_additionalModelRequestFieldsHasBeenSet =
true; m_additionalModelRequestFields.emplace(std::forward<AdditionalModelRequestFieldsKeyT>(key), std::forward<AdditionalModelRequestFieldsValueT>(value));
return *
this;
71 template<
typename GuardrailConfigurationT = GuardrailConfiguration>
72 void SetGuardrailConfiguration(GuardrailConfigurationT&& value) { m_guardrailConfigurationHasBeenSet =
true; m_guardrailConfiguration = std::forward<GuardrailConfigurationT>(value); }
73 template<
typename GuardrailConfigurationT = GuardrailConfiguration>
84 template<
typename InferenceConfigT = InferenceConfig>
85 void SetInferenceConfig(InferenceConfigT&& value) { m_inferenceConfigHasBeenSet =
true; m_inferenceConfig = std::forward<InferenceConfigT>(value); }
86 template<
typename InferenceConfigT = InferenceConfig>
96 template<
typename PerformanceConfigT = PerformanceConfiguration>
97 void SetPerformanceConfig(PerformanceConfigT&& value) { m_performanceConfigHasBeenSet =
true; m_performanceConfig = std::forward<PerformanceConfigT>(value); }
98 template<
typename PerformanceConfigT = PerformanceConfiguration>
109 template<
typename PromptTemplateT = PromptTemplate>
110 void SetPromptTemplate(PromptTemplateT&& value) { m_promptTemplateHasBeenSet =
true; m_promptTemplate = std::forward<PromptTemplateT>(value); }
111 template<
typename PromptTemplateT = PromptTemplate>
117 bool m_additionalModelRequestFieldsHasBeenSet =
false;
120 bool m_guardrailConfigurationHasBeenSet =
false;
123 bool m_inferenceConfigHasBeenSet =
false;
126 bool m_performanceConfigHasBeenSet =
false;
129 bool m_promptTemplateHasBeenSet =
false;
void SetAdditionalModelRequestFields(AdditionalModelRequestFieldsT &&value)
bool AdditionalModelRequestFieldsHasBeenSet() const
void SetPromptTemplate(PromptTemplateT &&value)
AWS_BEDROCKAGENTRUNTIME_API ExternalSourcesGenerationConfiguration()=default
const Aws::Map< Aws::String, Aws::Utils::Document > & GetAdditionalModelRequestFields() const
const InferenceConfig & GetInferenceConfig() const
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetInferenceConfig(InferenceConfigT &&value)
ExternalSourcesGenerationConfiguration & WithPerformanceConfig(PerformanceConfigT &&value)
AWS_BEDROCKAGENTRUNTIME_API ExternalSourcesGenerationConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API ExternalSourcesGenerationConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPerformanceConfig(PerformanceConfigT &&value)
const PerformanceConfiguration & GetPerformanceConfig() const
bool PromptTemplateHasBeenSet() const
bool GuardrailConfigurationHasBeenSet() const
const PromptTemplate & GetPromptTemplate() const
ExternalSourcesGenerationConfiguration & WithPromptTemplate(PromptTemplateT &&value)
void SetGuardrailConfiguration(GuardrailConfigurationT &&value)
ExternalSourcesGenerationConfiguration & WithAdditionalModelRequestFields(AdditionalModelRequestFieldsT &&value)
bool InferenceConfigHasBeenSet() const
ExternalSourcesGenerationConfiguration & WithInferenceConfig(InferenceConfigT &&value)
ExternalSourcesGenerationConfiguration & AddAdditionalModelRequestFields(AdditionalModelRequestFieldsKeyT &&key, AdditionalModelRequestFieldsValueT &&value)
const GuardrailConfiguration & GetGuardrailConfiguration() const
bool PerformanceConfigHasBeenSet() const
ExternalSourcesGenerationConfiguration & WithGuardrailConfiguration(GuardrailConfigurationT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue