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-agent/BedrockAgent_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 BedrockAgent
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_BEDROCKAGENT_API InferenceConfiguration();
40 AWS_BEDROCKAGENT_API InferenceConfiguration(Aws::Utils::Json::JsonView jsonValue);
42 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline int GetMaximumLength() const{ return m_maximumLength; }
50 inline bool MaximumLengthHasBeenSet() const { return m_maximumLengthHasBeenSet; }
51 inline void SetMaximumLength(int value) { m_maximumLengthHasBeenSet = true; m_maximumLength = value; }
52 inline InferenceConfiguration& WithMaximumLength(int value) { SetMaximumLength(value); return *this;}
54
56
60 inline const Aws::Vector<Aws::String>& GetStopSequences() const{ return m_stopSequences; }
61 inline bool StopSequencesHasBeenSet() const { return m_stopSequencesHasBeenSet; }
62 inline void SetStopSequences(const Aws::Vector<Aws::String>& value) { m_stopSequencesHasBeenSet = true; m_stopSequences = value; }
63 inline void SetStopSequences(Aws::Vector<Aws::String>&& value) { m_stopSequencesHasBeenSet = true; m_stopSequences = std::move(value); }
65 inline InferenceConfiguration& WithStopSequences(Aws::Vector<Aws::String>&& value) { SetStopSequences(std::move(value)); return *this;}
66 inline InferenceConfiguration& AddStopSequences(const Aws::String& value) { m_stopSequencesHasBeenSet = true; m_stopSequences.push_back(value); return *this; }
67 inline InferenceConfiguration& AddStopSequences(Aws::String&& value) { m_stopSequencesHasBeenSet = true; m_stopSequences.push_back(std::move(value)); return *this; }
68 inline InferenceConfiguration& AddStopSequences(const char* value) { m_stopSequencesHasBeenSet = true; m_stopSequences.push_back(value); return *this; }
70
72
78 inline double GetTemperature() const{ return m_temperature; }
79 inline bool TemperatureHasBeenSet() const { return m_temperatureHasBeenSet; }
80 inline void SetTemperature(double value) { m_temperatureHasBeenSet = true; m_temperature = value; }
81 inline InferenceConfiguration& WithTemperature(double value) { SetTemperature(value); return *this;}
83
85
93 inline int GetTopK() const{ return m_topK; }
94 inline bool TopKHasBeenSet() const { return m_topKHasBeenSet; }
95 inline void SetTopK(int value) { m_topKHasBeenSet = true; m_topK = value; }
96 inline InferenceConfiguration& WithTopK(int value) { SetTopK(value); return *this;}
98
100
108 inline double GetTopP() const{ return m_topP; }
109 inline bool TopPHasBeenSet() const { return m_topPHasBeenSet; }
110 inline void SetTopP(double value) { m_topPHasBeenSet = true; m_topP = value; }
111 inline InferenceConfiguration& WithTopP(double value) { SetTopP(value); return *this;}
113 private:
114
115 int m_maximumLength;
116 bool m_maximumLengthHasBeenSet = false;
117
118 Aws::Vector<Aws::String> m_stopSequences;
119 bool m_stopSequencesHasBeenSet = false;
120
121 double m_temperature;
122 bool m_temperatureHasBeenSet = false;
123
124 int m_topK;
125 bool m_topKHasBeenSet = false;
126
127 double m_topP;
128 bool m_topPHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace BedrockAgent
133} // namespace Aws
AWS_BEDROCKAGENT_API InferenceConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
InferenceConfiguration & WithStopSequences(const Aws::Vector< Aws::String > &value)
InferenceConfiguration & WithStopSequences(Aws::Vector< Aws::String > &&value)
void SetStopSequences(Aws::Vector< Aws::String > &&value)
InferenceConfiguration & AddStopSequences(const Aws::String &value)
InferenceConfiguration & WithTemperature(double value)
InferenceConfiguration & AddStopSequences(Aws::String &&value)
InferenceConfiguration & WithMaximumLength(int value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetStopSequences() const
void SetStopSequences(const Aws::Vector< Aws::String > &value)
InferenceConfiguration & AddStopSequences(const char *value)
AWS_BEDROCKAGENT_API InferenceConfiguration(Aws::Utils::Json::JsonView jsonValue)
InferenceConfiguration & WithTopP(double 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