7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/GuardrailConfiguration.h>
9#include <aws/bedrock-agent-runtime/model/InferenceConfig.h>
10#include <aws/bedrock-agent-runtime/model/PerformanceConfiguration.h>
11#include <aws/bedrock-agent-runtime/model/PromptTemplate.h>
12#include <aws/core/utils/Document.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
25namespace BedrockAgentRuntime {
48 return m_additionalModelRequestFields;
51 template <
typename AdditionalModelRequestFieldsT = Aws::Map<Aws::String, Aws::Utils::Document>>
53 m_additionalModelRequestFieldsHasBeenSet =
true;
54 m_additionalModelRequestFields = std::forward<AdditionalModelRequestFieldsT>(value);
56 template <
typename AdditionalModelRequestFieldsT = Aws::Map<Aws::String, Aws::Utils::Document>>
61 template <
typename AdditionalModelRequestFieldsKeyT = Aws::String,
typename AdditionalModelRequestFieldsValueT = Aws::Utils::Document>
64 m_additionalModelRequestFieldsHasBeenSet =
true;
65 m_additionalModelRequestFields.emplace(std::forward<AdditionalModelRequestFieldsKeyT>(
key),
66 std::forward<AdditionalModelRequestFieldsValueT>(value));
77 template <
typename GuardrailConfigurationT = GuardrailConfiguration>
79 m_guardrailConfigurationHasBeenSet =
true;
80 m_guardrailConfiguration = std::forward<GuardrailConfigurationT>(value);
82 template <
typename GuardrailConfigurationT = GuardrailConfiguration>
96 template <
typename InferenceConfigT = InferenceConfig>
98 m_inferenceConfigHasBeenSet =
true;
99 m_inferenceConfig = std::forward<InferenceConfigT>(value);
101 template <
typename InferenceConfigT = InferenceConfig>
114 template <
typename PerformanceConfigT = PerformanceConfiguration>
116 m_performanceConfigHasBeenSet =
true;
117 m_performanceConfig = std::forward<PerformanceConfigT>(value);
119 template <
typename PerformanceConfigT = PerformanceConfiguration>
133 template <
typename PromptTemplateT = PromptTemplate>
135 m_promptTemplateHasBeenSet =
true;
136 m_promptTemplate = std::forward<PromptTemplateT>(value);
138 template <
typename PromptTemplateT = PromptTemplate>
154 bool m_additionalModelRequestFieldsHasBeenSet =
false;
155 bool m_guardrailConfigurationHasBeenSet =
false;
156 bool m_inferenceConfigHasBeenSet =
false;
157 bool m_performanceConfigHasBeenSet =
false;
158 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::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue