7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/GuardrailConfiguration.h>
9#include <aws/bedrock-agent/model/PromptInferenceConfiguration.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/bedrock-agent/model/KnowledgeBaseOrchestrationConfiguration.h>
12#include <aws/bedrock-agent/model/KnowledgeBasePromptTemplate.h>
13#include <aws/bedrock-agent/model/VectorSearchRerankingConfiguration.h>
58 template<
typename GuardrailConfigurationT = GuardrailConfiguration>
59 void SetGuardrailConfiguration(GuardrailConfigurationT&& value) { m_guardrailConfigurationHasBeenSet =
true; m_guardrailConfiguration = std::forward<GuardrailConfigurationT>(value); }
60 template<
typename GuardrailConfigurationT = GuardrailConfiguration>
70 template<
typename InferenceConfigurationT = PromptInferenceConfiguration>
71 void SetInferenceConfiguration(InferenceConfigurationT&& value) { m_inferenceConfigurationHasBeenSet =
true; m_inferenceConfiguration = std::forward<InferenceConfigurationT>(value); }
72 template<
typename InferenceConfigurationT = PromptInferenceConfiguration>
82 template<
typename KnowledgeBaseIdT = Aws::String>
83 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet =
true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
84 template<
typename KnowledgeBaseIdT = Aws::String>
97 template<
typename ModelIdT = Aws::String>
98 void SetModelId(ModelIdT&& value) { m_modelIdHasBeenSet =
true; m_modelId = std::forward<ModelIdT>(value); }
99 template<
typename ModelIdT = Aws::String>
109 inline void SetNumberOfResults(
int value) { m_numberOfResultsHasBeenSet =
true; m_numberOfResults = value; }
120 template<
typename OrchestrationConfigurationT = KnowledgeBaseOrchestrationConfiguration>
121 void SetOrchestrationConfiguration(OrchestrationConfigurationT&& value) { m_orchestrationConfigurationHasBeenSet =
true; m_orchestrationConfiguration = std::forward<OrchestrationConfigurationT>(value); }
122 template<
typename OrchestrationConfigurationT = KnowledgeBaseOrchestrationConfiguration>
133 template<
typename PromptTemplateT = KnowledgeBasePromptTemplate>
134 void SetPromptTemplate(PromptTemplateT&& value) { m_promptTemplateHasBeenSet =
true; m_promptTemplate = std::forward<PromptTemplateT>(value); }
135 template<
typename PromptTemplateT = KnowledgeBasePromptTemplate>
146 template<
typename RerankingConfigurationT = VectorSearchRerankingConfiguration>
147 void SetRerankingConfiguration(RerankingConfigurationT&& value) { m_rerankingConfigurationHasBeenSet =
true; m_rerankingConfiguration = std::forward<RerankingConfigurationT>(value); }
148 template<
typename RerankingConfigurationT = VectorSearchRerankingConfiguration>
154 bool m_guardrailConfigurationHasBeenSet =
false;
157 bool m_inferenceConfigurationHasBeenSet =
false;
160 bool m_knowledgeBaseIdHasBeenSet =
false;
163 bool m_modelIdHasBeenSet =
false;
165 int m_numberOfResults{0};
166 bool m_numberOfResultsHasBeenSet =
false;
168 KnowledgeBaseOrchestrationConfiguration m_orchestrationConfiguration;
169 bool m_orchestrationConfigurationHasBeenSet =
false;
171 KnowledgeBasePromptTemplate m_promptTemplate;
172 bool m_promptTemplateHasBeenSet =
false;
174 VectorSearchRerankingConfiguration m_rerankingConfiguration;
175 bool m_rerankingConfigurationHasBeenSet =
false;
KnowledgeBaseFlowNodeConfiguration & WithModelId(ModelIdT &&value)
void SetOrchestrationConfiguration(OrchestrationConfigurationT &&value)
AWS_BEDROCKAGENT_API KnowledgeBaseFlowNodeConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
int GetNumberOfResults() const
void SetPromptTemplate(PromptTemplateT &&value)
void SetKnowledgeBaseId(KnowledgeBaseIdT &&value)
bool RerankingConfigurationHasBeenSet() const
bool PromptTemplateHasBeenSet() const
KnowledgeBaseFlowNodeConfiguration & WithNumberOfResults(int value)
void SetInferenceConfiguration(InferenceConfigurationT &&value)
KnowledgeBaseFlowNodeConfiguration & WithRerankingConfiguration(RerankingConfigurationT &&value)
const VectorSearchRerankingConfiguration & GetRerankingConfiguration() const
void SetNumberOfResults(int value)
AWS_BEDROCKAGENT_API KnowledgeBaseFlowNodeConfiguration()=default
const Aws::String & GetModelId() const
AWS_BEDROCKAGENT_API KnowledgeBaseFlowNodeConfiguration(Aws::Utils::Json::JsonView jsonValue)
KnowledgeBaseFlowNodeConfiguration & WithPromptTemplate(PromptTemplateT &&value)
bool KnowledgeBaseIdHasBeenSet() const
const KnowledgeBasePromptTemplate & GetPromptTemplate() const
bool ModelIdHasBeenSet() const
void SetModelId(ModelIdT &&value)
KnowledgeBaseFlowNodeConfiguration & WithOrchestrationConfiguration(OrchestrationConfigurationT &&value)
void SetGuardrailConfiguration(GuardrailConfigurationT &&value)
bool GuardrailConfigurationHasBeenSet() const
const PromptInferenceConfiguration & GetInferenceConfiguration() const
KnowledgeBaseFlowNodeConfiguration & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
KnowledgeBaseFlowNodeConfiguration & WithGuardrailConfiguration(GuardrailConfigurationT &&value)
const GuardrailConfiguration & GetGuardrailConfiguration() const
bool InferenceConfigurationHasBeenSet() const
void SetRerankingConfiguration(RerankingConfigurationT &&value)
const KnowledgeBaseOrchestrationConfiguration & GetOrchestrationConfiguration() const
bool NumberOfResultsHasBeenSet() const
KnowledgeBaseFlowNodeConfiguration & WithInferenceConfiguration(InferenceConfigurationT &&value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetKnowledgeBaseId() const
bool OrchestrationConfigurationHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue