7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemakertrainingsessionruntime/SageMakerTrainingSessionRuntime_EXPORTS.h>
20namespace SageMakerTrainingSessionRuntime {
43 m_maxTokensHasBeenSet =
true;
60 m_temperatureHasBeenSet =
true;
61 m_temperature = value;
74 inline int GetTopK()
const {
return m_topK; }
77 m_topKHasBeenSet =
true;
91 inline double GetTopP()
const {
return m_topP; }
94 m_topPHasBeenSet =
true;
111 m_seedHasBeenSet =
true;
127 template <
typename StopT = Aws::Vector<Aws::String>>
129 m_stopHasBeenSet =
true;
130 m_stop = std::forward<StopT>(value);
132 template <
typename StopT = Aws::Vector<Aws::String>>
134 SetStop(std::forward<StopT>(value));
137 template <
typename StopT = Aws::String>
139 m_stopHasBeenSet =
true;
140 m_stop.emplace_back(std::forward<StopT>(value));
147 double m_temperature{0.0};
156 bool m_maxTokensHasBeenSet =
false;
157 bool m_temperatureHasBeenSet =
false;
158 bool m_topKHasBeenSet =
false;
159 bool m_topPHasBeenSet =
false;
160 bool m_seedHasBeenSet =
false;
161 bool m_stopHasBeenSet =
false;
SamplingParams & WithSeed(int value)
SamplingParams & WithTopK(int value)
void SetStop(StopT &&value)
SamplingParams & WithMaxTokens(int value)
bool TemperatureHasBeenSet() const
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
SamplingParams & AddStop(StopT &&value)
bool TopKHasBeenSet() const
double GetTemperature() const
void SetTopP(double value)
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API SamplingParams()=default
SamplingParams & WithTemperature(double value)
bool TopPHasBeenSet() const
const Aws::Vector< Aws::String > & GetStop() const
SamplingParams & WithTopP(double value)
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API SamplingParams & operator=(Aws::Utils::Json::JsonView jsonValue)
SamplingParams & WithStop(StopT &&value)
bool MaxTokensHasBeenSet() const
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API SamplingParams(Aws::Utils::Json::JsonView jsonValue)
bool SeedHasBeenSet() const
void SetTemperature(double value)
void SetMaxTokens(int value)
bool StopHasBeenSet() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue