AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
PromptModelInferenceConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockAgent {
21namespace Model {
22
32 public:
33 AWS_BEDROCKAGENT_API PromptModelInferenceConfiguration() = default;
36 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline double GetTemperature() const { return m_temperature; }
44 inline bool TemperatureHasBeenSet() const { return m_temperatureHasBeenSet; }
45 inline void SetTemperature(double value) {
46 m_temperatureHasBeenSet = true;
47 m_temperature = value;
48 }
50 SetTemperature(value);
51 return *this;
52 }
54
56
60 inline double GetTopP() const { return m_topP; }
61 inline bool TopPHasBeenSet() const { return m_topPHasBeenSet; }
62 inline void SetTopP(double value) {
63 m_topPHasBeenSet = true;
64 m_topP = value;
65 }
67 SetTopP(value);
68 return *this;
69 }
71
73
76 inline int GetMaxTokens() const { return m_maxTokens; }
77 inline bool MaxTokensHasBeenSet() const { return m_maxTokensHasBeenSet; }
78 inline void SetMaxTokens(int value) {
79 m_maxTokensHasBeenSet = true;
80 m_maxTokens = value;
81 }
83 SetMaxTokens(value);
84 return *this;
85 }
87
89
93 inline const Aws::Vector<Aws::String>& GetStopSequences() const { return m_stopSequences; }
94 inline bool StopSequencesHasBeenSet() const { return m_stopSequencesHasBeenSet; }
95 template <typename StopSequencesT = Aws::Vector<Aws::String>>
97 m_stopSequencesHasBeenSet = true;
98 m_stopSequences = std::forward<StopSequencesT>(value);
99 }
100 template <typename StopSequencesT = Aws::Vector<Aws::String>>
102 SetStopSequences(std::forward<StopSequencesT>(value));
103 return *this;
104 }
105 template <typename StopSequencesT = Aws::String>
107 m_stopSequencesHasBeenSet = true;
108 m_stopSequences.emplace_back(std::forward<StopSequencesT>(value));
109 return *this;
110 }
112 private:
113 double m_temperature{0.0};
114
115 double m_topP{0.0};
116
117 int m_maxTokens{0};
118
119 Aws::Vector<Aws::String> m_stopSequences;
120 bool m_temperatureHasBeenSet = false;
121 bool m_topPHasBeenSet = false;
122 bool m_maxTokensHasBeenSet = false;
123 bool m_stopSequencesHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace BedrockAgent
128} // namespace Aws
AWS_BEDROCKAGENT_API PromptModelInferenceConfiguration()=default
PromptModelInferenceConfiguration & WithStopSequences(StopSequencesT &&value)
PromptModelInferenceConfiguration & WithTemperature(double value)
PromptModelInferenceConfiguration & AddStopSequences(StopSequencesT &&value)
AWS_BEDROCKAGENT_API PromptModelInferenceConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API PromptModelInferenceConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue