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-runtime/BedrockAgentRuntime_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 BedrockAgentRuntime
23{
24namespace Model
25{
26
39 {
40 public:
41 AWS_BEDROCKAGENTRUNTIME_API InferenceConfiguration();
42 AWS_BEDROCKAGENTRUNTIME_API InferenceConfiguration(Aws::Utils::Json::JsonView jsonValue);
43 AWS_BEDROCKAGENTRUNTIME_API InferenceConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline int GetMaximumLength() const{ return m_maximumLength; }
52 inline bool MaximumLengthHasBeenSet() const { return m_maximumLengthHasBeenSet; }
53 inline void SetMaximumLength(int value) { m_maximumLengthHasBeenSet = true; m_maximumLength = value; }
54 inline InferenceConfiguration& WithMaximumLength(int value) { SetMaximumLength(value); return *this;}
56
58
62 inline const Aws::Vector<Aws::String>& GetStopSequences() const{ return m_stopSequences; }
63 inline bool StopSequencesHasBeenSet() const { return m_stopSequencesHasBeenSet; }
64 inline void SetStopSequences(const Aws::Vector<Aws::String>& value) { m_stopSequencesHasBeenSet = true; m_stopSequences = value; }
65 inline void SetStopSequences(Aws::Vector<Aws::String>&& value) { m_stopSequencesHasBeenSet = true; m_stopSequences = std::move(value); }
67 inline InferenceConfiguration& WithStopSequences(Aws::Vector<Aws::String>&& value) { SetStopSequences(std::move(value)); return *this;}
68 inline InferenceConfiguration& AddStopSequences(const Aws::String& value) { m_stopSequencesHasBeenSet = true; m_stopSequences.push_back(value); return *this; }
69 inline InferenceConfiguration& AddStopSequences(Aws::String&& value) { m_stopSequencesHasBeenSet = true; m_stopSequences.push_back(std::move(value)); return *this; }
70 inline InferenceConfiguration& AddStopSequences(const char* value) { m_stopSequencesHasBeenSet = true; m_stopSequences.push_back(value); return *this; }
72
74
80 inline double GetTemperature() const{ return m_temperature; }
81 inline bool TemperatureHasBeenSet() const { return m_temperatureHasBeenSet; }
82 inline void SetTemperature(double value) { m_temperatureHasBeenSet = true; m_temperature = value; }
83 inline InferenceConfiguration& WithTemperature(double value) { SetTemperature(value); return *this;}
85
87
95 inline int GetTopK() const{ return m_topK; }
96 inline bool TopKHasBeenSet() const { return m_topKHasBeenSet; }
97 inline void SetTopK(int value) { m_topKHasBeenSet = true; m_topK = value; }
98 inline InferenceConfiguration& WithTopK(int value) { SetTopK(value); return *this;}
100
102
110 inline double GetTopP() const{ return m_topP; }
111 inline bool TopPHasBeenSet() const { return m_topPHasBeenSet; }
112 inline void SetTopP(double value) { m_topPHasBeenSet = true; m_topP = value; }
113 inline InferenceConfiguration& WithTopP(double value) { SetTopP(value); return *this;}
115 private:
116
117 int m_maximumLength;
118 bool m_maximumLengthHasBeenSet = false;
119
120 Aws::Vector<Aws::String> m_stopSequences;
121 bool m_stopSequencesHasBeenSet = false;
122
123 double m_temperature;
124 bool m_temperatureHasBeenSet = false;
125
126 int m_topK;
127 bool m_topKHasBeenSet = false;
128
129 double m_topP;
130 bool m_topPHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace BedrockAgentRuntime
135} // namespace Aws
InferenceConfiguration & AddStopSequences(Aws::String &&value)
void SetStopSequences(const Aws::Vector< Aws::String > &value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
InferenceConfiguration & WithStopSequences(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetStopSequences() const
AWS_BEDROCKAGENTRUNTIME_API InferenceConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
InferenceConfiguration & WithStopSequences(const Aws::Vector< Aws::String > &value)
InferenceConfiguration & AddStopSequences(const char *value)
InferenceConfiguration & AddStopSequences(const Aws::String &value)
void SetStopSequences(Aws::Vector< Aws::String > &&value)
AWS_BEDROCKAGENTRUNTIME_API InferenceConfiguration(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue