AWS SDK for C++

AWS SDK for C++ Version 1.11.755

Loading...
Searching...
No Matches
AIPromptInferenceConfiguration.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace QConnect {
17namespace Model {
18
26 public:
27 AWS_QCONNECT_API AIPromptInferenceConfiguration() = default;
30 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
37 inline double GetTemperature() const { return m_temperature; }
38 inline bool TemperatureHasBeenSet() const { return m_temperatureHasBeenSet; }
39 inline void SetTemperature(double value) {
40 m_temperatureHasBeenSet = true;
41 m_temperature = value;
42 }
44 SetTemperature(value);
45 return *this;
46 }
48
50
53 inline double GetTopP() const { return m_topP; }
54 inline bool TopPHasBeenSet() const { return m_topPHasBeenSet; }
55 inline void SetTopP(double value) {
56 m_topPHasBeenSet = true;
57 m_topP = value;
58 }
60 SetTopP(value);
61 return *this;
62 }
64
66
69 inline int GetTopK() const { return m_topK; }
70 inline bool TopKHasBeenSet() const { return m_topKHasBeenSet; }
71 inline void SetTopK(int value) {
72 m_topKHasBeenSet = true;
73 m_topK = value;
74 }
76 SetTopK(value);
77 return *this;
78 }
80
82
85 inline int GetMaxTokensToSample() const { return m_maxTokensToSample; }
86 inline bool MaxTokensToSampleHasBeenSet() const { return m_maxTokensToSampleHasBeenSet; }
87 inline void SetMaxTokensToSample(int value) {
88 m_maxTokensToSampleHasBeenSet = true;
89 m_maxTokensToSample = value;
90 }
93 return *this;
94 }
96 private:
97 double m_temperature{0.0};
98
99 double m_topP{0.0};
100
101 int m_topK{0};
102
103 int m_maxTokensToSample{0};
104 bool m_temperatureHasBeenSet = false;
105 bool m_topPHasBeenSet = false;
106 bool m_topKHasBeenSet = false;
107 bool m_maxTokensToSampleHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace QConnect
112} // namespace Aws
AWS_QCONNECT_API AIPromptInferenceConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AIPromptInferenceConfiguration & WithTopP(double value)
AWS_QCONNECT_API AIPromptInferenceConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AIPromptInferenceConfiguration & WithMaxTokensToSample(int value)
AWS_QCONNECT_API AIPromptInferenceConfiguration()=default
AIPromptInferenceConfiguration & WithTemperature(double value)
Aws::Utils::Json::JsonValue JsonValue