7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
51 inline void SetMaximumLength(
int value) { m_maximumLengthHasBeenSet =
true; m_maximumLength = value; }
62 template<
typename StopSequencesT = Aws::Vector<Aws::String>>
63 void SetStopSequences(StopSequencesT&& value) { m_stopSequencesHasBeenSet =
true; m_stopSequences = std::forward<StopSequencesT>(value); }
64 template<
typename StopSequencesT = Aws::Vector<Aws::String>>
66 template<
typename StopSequencesT = Aws::String>
79 inline void SetTemperature(
double value) { m_temperatureHasBeenSet =
true; m_temperature = value; }
92 inline int GetTopK()
const {
return m_topK; }
94 inline void SetTopK(
int value) { m_topKHasBeenSet =
true; m_topK = value; }
107 inline double GetTopP()
const {
return m_topP; }
109 inline void SetTopP(
double value) { m_topPHasBeenSet =
true; m_topP = value; }
114 int m_maximumLength{0};
115 bool m_maximumLengthHasBeenSet =
false;
118 bool m_stopSequencesHasBeenSet =
false;
120 double m_temperature{0.0};
121 bool m_temperatureHasBeenSet =
false;
124 bool m_topKHasBeenSet =
false;
127 bool m_topPHasBeenSet =
false;
AWS_BEDROCKAGENT_API InferenceConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMaximumLength(int value)
void SetTopP(double value)
bool StopSequencesHasBeenSet() const
InferenceConfiguration & WithTemperature(double value)
InferenceConfiguration & AddStopSequences(StopSequencesT &&value)
bool TopPHasBeenSet() const
AWS_BEDROCKAGENT_API InferenceConfiguration()=default
void SetTemperature(double value)
int GetMaximumLength() const
InferenceConfiguration & WithMaximumLength(int value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetStopSequences() const
bool TopKHasBeenSet() const
bool TemperatureHasBeenSet() const
InferenceConfiguration & WithTopK(int value)
double GetTemperature() const
AWS_BEDROCKAGENT_API InferenceConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetStopSequences(StopSequencesT &&value)
InferenceConfiguration & WithTopP(double value)
InferenceConfiguration & WithStopSequences(StopSequencesT &&value)
bool MaximumLengthHasBeenSet() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue