AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TextInferenceConfig.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 TextInferenceConfig();
42 AWS_BEDROCKAGENTRUNTIME_API TextInferenceConfig(Aws::Utils::Json::JsonView jsonValue);
43 AWS_BEDROCKAGENTRUNTIME_API TextInferenceConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
54 inline int GetMaxTokens() const{ return m_maxTokens; }
55 inline bool MaxTokensHasBeenSet() const { return m_maxTokensHasBeenSet; }
56 inline void SetMaxTokens(int value) { m_maxTokensHasBeenSet = true; m_maxTokens = value; }
57 inline TextInferenceConfig& WithMaxTokens(int value) { SetMaxTokens(value); return *this;}
59
61
67 inline const Aws::Vector<Aws::String>& GetStopSequences() const{ return m_stopSequences; }
68 inline bool StopSequencesHasBeenSet() const { return m_stopSequencesHasBeenSet; }
69 inline void SetStopSequences(const Aws::Vector<Aws::String>& value) { m_stopSequencesHasBeenSet = true; m_stopSequences = value; }
70 inline void SetStopSequences(Aws::Vector<Aws::String>&& value) { m_stopSequencesHasBeenSet = true; m_stopSequences = std::move(value); }
72 inline TextInferenceConfig& WithStopSequences(Aws::Vector<Aws::String>&& value) { SetStopSequences(std::move(value)); return *this;}
73 inline TextInferenceConfig& AddStopSequences(const Aws::String& value) { m_stopSequencesHasBeenSet = true; m_stopSequences.push_back(value); return *this; }
74 inline TextInferenceConfig& AddStopSequences(Aws::String&& value) { m_stopSequencesHasBeenSet = true; m_stopSequences.push_back(std::move(value)); return *this; }
75 inline TextInferenceConfig& AddStopSequences(const char* value) { m_stopSequencesHasBeenSet = true; m_stopSequences.push_back(value); return *this; }
77
79
87 inline double GetTemperature() const{ return m_temperature; }
88 inline bool TemperatureHasBeenSet() const { return m_temperatureHasBeenSet; }
89 inline void SetTemperature(double value) { m_temperatureHasBeenSet = true; m_temperature = value; }
90 inline TextInferenceConfig& WithTemperature(double value) { SetTemperature(value); return *this;}
92
94
99 inline double GetTopP() const{ return m_topP; }
100 inline bool TopPHasBeenSet() const { return m_topPHasBeenSet; }
101 inline void SetTopP(double value) { m_topPHasBeenSet = true; m_topP = value; }
102 inline TextInferenceConfig& WithTopP(double value) { SetTopP(value); return *this;}
104 private:
105
106 int m_maxTokens;
107 bool m_maxTokensHasBeenSet = false;
108
109 Aws::Vector<Aws::String> m_stopSequences;
110 bool m_stopSequencesHasBeenSet = false;
111
112 double m_temperature;
113 bool m_temperatureHasBeenSet = false;
114
115 double m_topP;
116 bool m_topPHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace BedrockAgentRuntime
121} // namespace Aws
void SetStopSequences(const Aws::Vector< Aws::String > &value)
void SetStopSequences(Aws::Vector< Aws::String > &&value)
TextInferenceConfig & AddStopSequences(const char *value)
TextInferenceConfig & WithStopSequences(Aws::Vector< Aws::String > &&value)
TextInferenceConfig & AddStopSequences(const Aws::String &value)
AWS_BEDROCKAGENTRUNTIME_API TextInferenceConfig()
AWS_BEDROCKAGENTRUNTIME_API TextInferenceConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
TextInferenceConfig & WithStopSequences(const Aws::Vector< Aws::String > &value)
TextInferenceConfig & WithTemperature(double value)
TextInferenceConfig & AddStopSequences(Aws::String &&value)
const Aws::Vector< Aws::String > & GetStopSequences() const
AWS_BEDROCKAGENTRUNTIME_API TextInferenceConfig & operator=(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