7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/GuardrailConfiguration.h>
9#include <aws/bedrock-agent/model/KnowledgeBaseOrchestrationConfiguration.h>
10#include <aws/bedrock-agent/model/KnowledgeBasePromptTemplate.h>
11#include <aws/bedrock-agent/model/PromptInferenceConfiguration.h>
12#include <aws/bedrock-agent/model/VectorSearchRerankingConfiguration.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
24namespace BedrockAgent {
51 template <
typename KnowledgeBaseIdT = Aws::String>
53 m_knowledgeBaseIdHasBeenSet =
true;
54 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
56 template <
typename KnowledgeBaseIdT = Aws::String>
72 template <
typename ModelIdT = Aws::String>
74 m_modelIdHasBeenSet =
true;
75 m_modelId = std::forward<ModelIdT>(value);
77 template <
typename ModelIdT = Aws::String>
91 template <
typename GuardrailConfigurationT = GuardrailConfiguration>
93 m_guardrailConfigurationHasBeenSet =
true;
94 m_guardrailConfiguration = std::forward<GuardrailConfigurationT>(value);
96 template <
typename GuardrailConfigurationT = GuardrailConfiguration>
110 m_numberOfResultsHasBeenSet =
true;
111 m_numberOfResults = value;
126 template <
typename PromptTemplateT = KnowledgeBasePromptTemplate>
128 m_promptTemplateHasBeenSet =
true;
129 m_promptTemplate = std::forward<PromptTemplateT>(value);
131 template <
typename PromptTemplateT = KnowledgeBasePromptTemplate>
144 template <
typename InferenceConfigurationT = PromptInferenceConfiguration>
146 m_inferenceConfigurationHasBeenSet =
true;
147 m_inferenceConfiguration = std::forward<InferenceConfigurationT>(value);
149 template <
typename InferenceConfigurationT = PromptInferenceConfiguration>
163 template <
typename RerankingConfigurationT = VectorSearchRerankingConfiguration>
165 m_rerankingConfigurationHasBeenSet =
true;
166 m_rerankingConfiguration = std::forward<RerankingConfigurationT>(value);
168 template <
typename RerankingConfigurationT = VectorSearchRerankingConfiguration>
182 template <
typename OrchestrationConfigurationT = KnowledgeBaseOrchestrationConfiguration>
184 m_orchestrationConfigurationHasBeenSet =
true;
185 m_orchestrationConfiguration = std::forward<OrchestrationConfigurationT>(value);
187 template <
typename OrchestrationConfigurationT = KnowledgeBaseOrchestrationConfiguration>
200 int m_numberOfResults{0};
202 KnowledgeBasePromptTemplate m_promptTemplate;
204 PromptInferenceConfiguration m_inferenceConfiguration;
206 VectorSearchRerankingConfiguration m_rerankingConfiguration;
208 KnowledgeBaseOrchestrationConfiguration m_orchestrationConfiguration;
209 bool m_knowledgeBaseIdHasBeenSet =
false;
210 bool m_modelIdHasBeenSet =
false;
211 bool m_guardrailConfigurationHasBeenSet =
false;
212 bool m_numberOfResultsHasBeenSet =
false;
213 bool m_promptTemplateHasBeenSet =
false;
214 bool m_inferenceConfigurationHasBeenSet =
false;
215 bool m_rerankingConfigurationHasBeenSet =
false;
216 bool m_orchestrationConfigurationHasBeenSet =
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::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue