7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
20namespace BedrockRuntime {
58 m_maxTokensHasBeenSet =
true;
80 m_temperatureHasBeenSet =
true;
81 m_temperature = value;
99 inline double GetTopP()
const {
return m_topP; }
102 m_topPHasBeenSet =
true;
118 template <
typename StopSequencesT = Aws::Vector<Aws::String>>
120 m_stopSequencesHasBeenSet =
true;
121 m_stopSequences = std::forward<StopSequencesT>(value);
123 template <
typename StopSequencesT = Aws::Vector<Aws::String>>
128 template <
typename StopSequencesT = Aws::String>
130 m_stopSequencesHasBeenSet =
true;
131 m_stopSequences.emplace_back(std::forward<StopSequencesT>(value));
138 double m_temperature{0.0};
143 bool m_maxTokensHasBeenSet =
false;
144 bool m_temperatureHasBeenSet =
false;
145 bool m_topPHasBeenSet =
false;
146 bool m_stopSequencesHasBeenSet =
false;
AWS_BEDROCKRUNTIME_API InferenceConfiguration(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetStopSequences() const
bool TopPHasBeenSet() const
InferenceConfiguration & WithTopP(double value)
AWS_BEDROCKRUNTIME_API InferenceConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTopP(double value)
InferenceConfiguration & WithStopSequences(StopSequencesT &&value)
double GetTemperature() const
bool TemperatureHasBeenSet() const
void SetTemperature(double value)
InferenceConfiguration & AddStopSequences(StopSequencesT &&value)
AWS_BEDROCKRUNTIME_API InferenceConfiguration()=default
bool StopSequencesHasBeenSet() const
InferenceConfiguration & WithTemperature(double value)
InferenceConfiguration & WithMaxTokens(int value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMaxTokens(int value)
void SetStopSequences(StopSequencesT &&value)
bool MaxTokensHasBeenSet() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue