7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
22namespace BedrockRuntime
63 inline void SetMaxTokens(
int value) { m_maxTokensHasBeenSet =
true; m_maxTokens = value; }
79 inline void SetTemperature(
double value) { m_temperatureHasBeenSet =
true; m_temperature = value; }
93 inline double GetTopP()
const {
return m_topP; }
95 inline void SetTopP(
double value) { m_topPHasBeenSet =
true; m_topP = value; }
106 template<
typename StopSequencesT = Aws::Vector<Aws::String>>
107 void SetStopSequences(StopSequencesT&& value) { m_stopSequencesHasBeenSet =
true; m_stopSequences = std::forward<StopSequencesT>(value); }
108 template<
typename StopSequencesT = Aws::Vector<Aws::String>>
110 template<
typename StopSequencesT = Aws::String>
116 bool m_maxTokensHasBeenSet =
false;
118 double m_temperature{0.0};
119 bool m_temperatureHasBeenSet =
false;
122 bool m_topPHasBeenSet =
false;
125 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::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue