AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
PromptConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/CreationMode.h>
9#include <aws/bedrock-agent-runtime/model/InferenceConfiguration.h>
10#include <aws/bedrock-agent-runtime/model/PromptState.h>
11#include <aws/bedrock-agent-runtime/model/PromptType.h>
12#include <aws/core/utils/Document.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 BedrockAgentRuntime {
25namespace Model {
26
36 public:
37 AWS_BEDROCKAGENTRUNTIME_API PromptConfiguration() = default;
40 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
51 inline Aws::Utils::DocumentView GetAdditionalModelRequestFields() const { return m_additionalModelRequestFields; }
52 inline bool AdditionalModelRequestFieldsHasBeenSet() const { return m_additionalModelRequestFieldsHasBeenSet; }
53 template <typename AdditionalModelRequestFieldsT = Aws::Utils::Document>
55 m_additionalModelRequestFieldsHasBeenSet = true;
56 m_additionalModelRequestFields = std::forward<AdditionalModelRequestFieldsT>(value);
57 }
58 template <typename AdditionalModelRequestFieldsT = Aws::Utils::Document>
60 SetAdditionalModelRequestFields(std::forward<AdditionalModelRequestFieldsT>(value));
61 return *this;
62 }
64
66
75 inline const Aws::String& GetBasePromptTemplate() const { return m_basePromptTemplate; }
76 inline bool BasePromptTemplateHasBeenSet() const { return m_basePromptTemplateHasBeenSet; }
77 template <typename BasePromptTemplateT = Aws::String>
79 m_basePromptTemplateHasBeenSet = true;
80 m_basePromptTemplate = std::forward<BasePromptTemplateT>(value);
81 }
82 template <typename BasePromptTemplateT = Aws::String>
84 SetBasePromptTemplate(std::forward<BasePromptTemplateT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetFoundationModel() const { return m_foundationModel; }
94 inline bool FoundationModelHasBeenSet() const { return m_foundationModelHasBeenSet; }
95 template <typename FoundationModelT = Aws::String>
97 m_foundationModelHasBeenSet = true;
98 m_foundationModel = std::forward<FoundationModelT>(value);
99 }
100 template <typename FoundationModelT = Aws::String>
102 SetFoundationModel(std::forward<FoundationModelT>(value));
103 return *this;
104 }
106
108
115 inline const InferenceConfiguration& GetInferenceConfiguration() const { return m_inferenceConfiguration; }
116 inline bool InferenceConfigurationHasBeenSet() const { return m_inferenceConfigurationHasBeenSet; }
117 template <typename InferenceConfigurationT = InferenceConfiguration>
119 m_inferenceConfigurationHasBeenSet = true;
120 m_inferenceConfiguration = std::forward<InferenceConfigurationT>(value);
121 }
122 template <typename InferenceConfigurationT = InferenceConfiguration>
124 SetInferenceConfiguration(std::forward<InferenceConfigurationT>(value));
125 return *this;
126 }
128
130
138 inline CreationMode GetParserMode() const { return m_parserMode; }
139 inline bool ParserModeHasBeenSet() const { return m_parserModeHasBeenSet; }
140 inline void SetParserMode(CreationMode value) {
141 m_parserModeHasBeenSet = true;
142 m_parserMode = value;
143 }
145 SetParserMode(value);
146 return *this;
147 }
149
151
157 inline CreationMode GetPromptCreationMode() const { return m_promptCreationMode; }
158 inline bool PromptCreationModeHasBeenSet() const { return m_promptCreationModeHasBeenSet; }
160 m_promptCreationModeHasBeenSet = true;
161 m_promptCreationMode = value;
162 }
165 return *this;
166 }
168
170
180 inline PromptState GetPromptState() const { return m_promptState; }
181 inline bool PromptStateHasBeenSet() const { return m_promptStateHasBeenSet; }
182 inline void SetPromptState(PromptState value) {
183 m_promptStateHasBeenSet = true;
184 m_promptState = value;
185 }
187 SetPromptState(value);
188 return *this;
189 }
191
193
197 inline PromptType GetPromptType() const { return m_promptType; }
198 inline bool PromptTypeHasBeenSet() const { return m_promptTypeHasBeenSet; }
199 inline void SetPromptType(PromptType value) {
200 m_promptTypeHasBeenSet = true;
201 m_promptType = value;
202 }
204 SetPromptType(value);
205 return *this;
206 }
208 private:
209 Aws::Utils::Document m_additionalModelRequestFields;
210
211 Aws::String m_basePromptTemplate;
212
213 Aws::String m_foundationModel;
214
215 InferenceConfiguration m_inferenceConfiguration;
216
218
219 CreationMode m_promptCreationMode{CreationMode::NOT_SET};
220
221 PromptState m_promptState{PromptState::NOT_SET};
222
223 PromptType m_promptType{PromptType::NOT_SET};
224 bool m_additionalModelRequestFieldsHasBeenSet = false;
225 bool m_basePromptTemplateHasBeenSet = false;
226 bool m_foundationModelHasBeenSet = false;
227 bool m_inferenceConfigurationHasBeenSet = false;
228 bool m_parserModeHasBeenSet = false;
229 bool m_promptCreationModeHasBeenSet = false;
230 bool m_promptStateHasBeenSet = false;
231 bool m_promptTypeHasBeenSet = false;
232};
233
234} // namespace Model
235} // namespace BedrockAgentRuntime
236} // namespace Aws
PromptConfiguration & WithParserMode(CreationMode value)
PromptConfiguration & WithFoundationModel(FoundationModelT &&value)
const InferenceConfiguration & GetInferenceConfiguration() const
void SetBasePromptTemplate(BasePromptTemplateT &&value)
PromptConfiguration & WithInferenceConfiguration(InferenceConfigurationT &&value)
AWS_BEDROCKAGENTRUNTIME_API PromptConfiguration()=default
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
PromptConfiguration & WithPromptState(PromptState value)
Aws::Utils::DocumentView GetAdditionalModelRequestFields() const
PromptConfiguration & WithPromptType(PromptType value)
PromptConfiguration & WithAdditionalModelRequestFields(AdditionalModelRequestFieldsT &&value)
void SetInferenceConfiguration(InferenceConfigurationT &&value)
PromptConfiguration & WithBasePromptTemplate(BasePromptTemplateT &&value)
AWS_BEDROCKAGENTRUNTIME_API PromptConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API PromptConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetAdditionalModelRequestFields(AdditionalModelRequestFieldsT &&value)
PromptConfiguration & WithPromptCreationMode(CreationMode value)
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