7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
20namespace BedrockAgentRuntime {
48 m_maximumLengthHasBeenSet =
true;
49 m_maximumLength = value;
64 template <
typename StopSequencesT = Aws::Vector<Aws::String>>
66 m_stopSequencesHasBeenSet =
true;
67 m_stopSequences = std::forward<StopSequencesT>(value);
69 template <
typename StopSequencesT = Aws::Vector<Aws::String>>
74 template <
typename StopSequencesT = Aws::String>
76 m_stopSequencesHasBeenSet =
true;
77 m_stopSequences.emplace_back(std::forward<StopSequencesT>(value));
92 m_temperatureHasBeenSet =
true;
93 m_temperature = value;
113 m_topKHasBeenSet =
true;
131 inline double GetTopP()
const {
return m_topP; }
134 m_topPHasBeenSet =
true;
143 int m_maximumLength{0};
147 double m_temperature{0.0};
152 bool m_maximumLengthHasBeenSet =
false;
153 bool m_stopSequencesHasBeenSet =
false;
154 bool m_temperatureHasBeenSet =
false;
155 bool m_topKHasBeenSet =
false;
156 bool m_topPHasBeenSet =
false;
InferenceConfiguration & AddStopSequences(StopSequencesT &&value)
bool TopPHasBeenSet() const
void SetMaximumLength(int value)
InferenceConfiguration & WithTemperature(double value)
bool StopSequencesHasBeenSet() const
bool TopKHasBeenSet() const
int GetMaximumLength() const
InferenceConfiguration & WithStopSequences(StopSequencesT &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
bool MaximumLengthHasBeenSet() const
double GetTemperature() const
const Aws::Vector< Aws::String > & GetStopSequences() const
AWS_BEDROCKAGENTRUNTIME_API InferenceConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTopP(double value)
InferenceConfiguration & WithTopK(int value)
InferenceConfiguration & WithMaximumLength(int value)
void SetTemperature(double value)
AWS_BEDROCKAGENTRUNTIME_API InferenceConfiguration()=default
AWS_BEDROCKAGENTRUNTIME_API InferenceConfiguration(Aws::Utils::Json::JsonView jsonValue)
InferenceConfiguration & WithTopP(double value)
bool TemperatureHasBeenSet() const
void SetStopSequences(StopSequencesT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue