AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
KnowledgeBaseOrchestrationConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/KnowledgeBasePromptTemplate.h>
9#include <aws/bedrock-agent/model/PerformanceConfiguration.h>
10#include <aws/bedrock-agent/model/PromptInferenceConfiguration.h>
11#include <aws/core/utils/Document.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace BedrockAgent {
25namespace Model {
26
35 public:
36 AWS_BEDROCKAGENT_API KnowledgeBaseOrchestrationConfiguration() = default;
39 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
46 inline const KnowledgeBasePromptTemplate& GetPromptTemplate() const { return m_promptTemplate; }
47 inline bool PromptTemplateHasBeenSet() const { return m_promptTemplateHasBeenSet; }
48 template <typename PromptTemplateT = KnowledgeBasePromptTemplate>
50 m_promptTemplateHasBeenSet = true;
51 m_promptTemplate = std::forward<PromptTemplateT>(value);
52 }
53 template <typename PromptTemplateT = KnowledgeBasePromptTemplate>
55 SetPromptTemplate(std::forward<PromptTemplateT>(value));
56 return *this;
57 }
59
61
64 inline const PromptInferenceConfiguration& GetInferenceConfig() const { return m_inferenceConfig; }
65 inline bool InferenceConfigHasBeenSet() const { return m_inferenceConfigHasBeenSet; }
66 template <typename InferenceConfigT = PromptInferenceConfiguration>
68 m_inferenceConfigHasBeenSet = true;
69 m_inferenceConfig = std::forward<InferenceConfigT>(value);
70 }
71 template <typename InferenceConfigT = PromptInferenceConfiguration>
73 SetInferenceConfig(std::forward<InferenceConfigT>(value));
74 return *this;
75 }
77
79
84 return m_additionalModelRequestFields;
85 }
86 inline bool AdditionalModelRequestFieldsHasBeenSet() const { return m_additionalModelRequestFieldsHasBeenSet; }
87 template <typename AdditionalModelRequestFieldsT = Aws::Map<Aws::String, Aws::Utils::Document>>
89 m_additionalModelRequestFieldsHasBeenSet = true;
90 m_additionalModelRequestFields = std::forward<AdditionalModelRequestFieldsT>(value);
91 }
92 template <typename AdditionalModelRequestFieldsT = Aws::Map<Aws::String, Aws::Utils::Document>>
94 SetAdditionalModelRequestFields(std::forward<AdditionalModelRequestFieldsT>(value));
95 return *this;
96 }
97 template <typename AdditionalModelRequestFieldsKeyT = Aws::String, typename AdditionalModelRequestFieldsValueT = Aws::Utils::Document>
100 m_additionalModelRequestFieldsHasBeenSet = true;
101 m_additionalModelRequestFields.emplace(std::forward<AdditionalModelRequestFieldsKeyT>(key),
102 std::forward<AdditionalModelRequestFieldsValueT>(value));
103 return *this;
104 }
106
108
112 inline const PerformanceConfiguration& GetPerformanceConfig() const { return m_performanceConfig; }
113 inline bool PerformanceConfigHasBeenSet() const { return m_performanceConfigHasBeenSet; }
114 template <typename PerformanceConfigT = PerformanceConfiguration>
116 m_performanceConfigHasBeenSet = true;
117 m_performanceConfig = std::forward<PerformanceConfigT>(value);
118 }
119 template <typename PerformanceConfigT = PerformanceConfiguration>
121 SetPerformanceConfig(std::forward<PerformanceConfigT>(value));
122 return *this;
123 }
125 private:
126 KnowledgeBasePromptTemplate m_promptTemplate;
127
128 PromptInferenceConfiguration m_inferenceConfig;
129
130 Aws::Map<Aws::String, Aws::Utils::Document> m_additionalModelRequestFields;
131
132 PerformanceConfiguration m_performanceConfig;
133 bool m_promptTemplateHasBeenSet = false;
134 bool m_inferenceConfigHasBeenSet = false;
135 bool m_additionalModelRequestFieldsHasBeenSet = false;
136 bool m_performanceConfigHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace BedrockAgent
141} // namespace Aws
KnowledgeBaseOrchestrationConfiguration & WithPerformanceConfig(PerformanceConfigT &&value)
KnowledgeBaseOrchestrationConfiguration & WithPromptTemplate(PromptTemplateT &&value)
AWS_BEDROCKAGENT_API KnowledgeBaseOrchestrationConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
KnowledgeBaseOrchestrationConfiguration & WithInferenceConfig(InferenceConfigT &&value)
AWS_BEDROCKAGENT_API KnowledgeBaseOrchestrationConfiguration(Aws::Utils::Json::JsonView jsonValue)
KnowledgeBaseOrchestrationConfiguration & AddAdditionalModelRequestFields(AdditionalModelRequestFieldsKeyT &&key, AdditionalModelRequestFieldsValueT &&value)
KnowledgeBaseOrchestrationConfiguration & WithAdditionalModelRequestFields(AdditionalModelRequestFieldsT &&value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::Utils::Document > & GetAdditionalModelRequestFields() const
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