AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InferenceConfiguration.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockRuntime
23{
24namespace Model
25{
26
45 {
46 public:
47 AWS_BEDROCKRUNTIME_API InferenceConfiguration();
48 AWS_BEDROCKRUNTIME_API InferenceConfiguration(Aws::Utils::Json::JsonView jsonValue);
50 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
51
52
54
61 inline int GetMaxTokens() const{ return m_maxTokens; }
62 inline bool MaxTokensHasBeenSet() const { return m_maxTokensHasBeenSet; }
63 inline void SetMaxTokens(int value) { m_maxTokensHasBeenSet = true; m_maxTokens = value; }
64 inline InferenceConfiguration& WithMaxTokens(int value) { SetMaxTokens(value); return *this;}
66
68
77 inline double GetTemperature() const{ return m_temperature; }
78 inline bool TemperatureHasBeenSet() const { return m_temperatureHasBeenSet; }
79 inline void SetTemperature(double value) { m_temperatureHasBeenSet = true; m_temperature = value; }
80 inline InferenceConfiguration& WithTemperature(double value) { SetTemperature(value); return *this;}
82
84
93 inline double GetTopP() const{ return m_topP; }
94 inline bool TopPHasBeenSet() const { return m_topPHasBeenSet; }
95 inline void SetTopP(double value) { m_topPHasBeenSet = true; m_topP = value; }
96 inline InferenceConfiguration& WithTopP(double value) { SetTopP(value); return *this;}
98
100
104 inline const Aws::Vector<Aws::String>& GetStopSequences() const{ return m_stopSequences; }
105 inline bool StopSequencesHasBeenSet() const { return m_stopSequencesHasBeenSet; }
106 inline void SetStopSequences(const Aws::Vector<Aws::String>& value) { m_stopSequencesHasBeenSet = true; m_stopSequences = value; }
107 inline void SetStopSequences(Aws::Vector<Aws::String>&& value) { m_stopSequencesHasBeenSet = true; m_stopSequences = std::move(value); }
109 inline InferenceConfiguration& WithStopSequences(Aws::Vector<Aws::String>&& value) { SetStopSequences(std::move(value)); return *this;}
110 inline InferenceConfiguration& AddStopSequences(const Aws::String& value) { m_stopSequencesHasBeenSet = true; m_stopSequences.push_back(value); return *this; }
111 inline InferenceConfiguration& AddStopSequences(Aws::String&& value) { m_stopSequencesHasBeenSet = true; m_stopSequences.push_back(std::move(value)); return *this; }
112 inline InferenceConfiguration& AddStopSequences(const char* value) { m_stopSequencesHasBeenSet = true; m_stopSequences.push_back(value); return *this; }
114 private:
115
116 int m_maxTokens;
117 bool m_maxTokensHasBeenSet = false;
118
119 double m_temperature;
120 bool m_temperatureHasBeenSet = false;
121
122 double m_topP;
123 bool m_topPHasBeenSet = false;
124
125 Aws::Vector<Aws::String> m_stopSequences;
126 bool m_stopSequencesHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace BedrockRuntime
131} // namespace Aws
AWS_BEDROCKRUNTIME_API InferenceConfiguration(Aws::Utils::Json::JsonView jsonValue)
InferenceConfiguration & AddStopSequences(Aws::String &&value)
const Aws::Vector< Aws::String > & GetStopSequences() const
InferenceConfiguration & WithTopP(double value)
AWS_BEDROCKRUNTIME_API InferenceConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
InferenceConfiguration & AddStopSequences(const char *value)
InferenceConfiguration & WithStopSequences(Aws::Vector< Aws::String > &&value)
InferenceConfiguration & WithStopSequences(const Aws::Vector< Aws::String > &value)
void SetStopSequences(Aws::Vector< Aws::String > &&value)
InferenceConfiguration & WithTemperature(double value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStopSequences(const Aws::Vector< Aws::String > &value)
InferenceConfiguration & AddStopSequences(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue