7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
20namespace BedrockAgent {
49 m_temperatureHasBeenSet =
true;
50 m_temperature = value;
67 inline double GetTopP()
const {
return m_topP; }
70 m_topPHasBeenSet =
true;
88 inline int GetTopK()
const {
return m_topK; }
91 m_topKHasBeenSet =
true;
107 m_maximumLengthHasBeenSet =
true;
108 m_maximumLength = value;
123 template <
typename StopSequencesT = Aws::Vector<Aws::String>>
125 m_stopSequencesHasBeenSet =
true;
126 m_stopSequences = std::forward<StopSequencesT>(value);
128 template <
typename StopSequencesT = Aws::Vector<Aws::String>>
133 template <
typename StopSequencesT = Aws::String>
135 m_stopSequencesHasBeenSet =
true;
136 m_stopSequences.emplace_back(std::forward<StopSequencesT>(value));
141 double m_temperature{0.0};
147 int m_maximumLength{0};
150 bool m_temperatureHasBeenSet =
false;
151 bool m_topPHasBeenSet =
false;
152 bool m_topKHasBeenSet =
false;
153 bool m_maximumLengthHasBeenSet =
false;
154 bool m_stopSequencesHasBeenSet =
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::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue