7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
22namespace BedrockAgentRuntime
56 inline void SetMaxTokens(
int value) { m_maxTokensHasBeenSet =
true; m_maxTokens = value; }
69 template<
typename StopSequencesT = Aws::Vector<Aws::String>>
70 void SetStopSequences(StopSequencesT&& value) { m_stopSequencesHasBeenSet =
true; m_stopSequences = std::forward<StopSequencesT>(value); }
71 template<
typename StopSequencesT = Aws::Vector<Aws::String>>
73 template<
typename StopSequencesT = Aws::String>
88 inline void SetTemperature(
double value) { m_temperatureHasBeenSet =
true; m_temperature = value; }
98 inline double GetTopP()
const {
return m_topP; }
100 inline void SetTopP(
double value) { m_topPHasBeenSet =
true; m_topP = value; }
106 bool m_maxTokensHasBeenSet =
false;
109 bool m_stopSequencesHasBeenSet =
false;
111 double m_temperature{0.0};
112 bool m_temperatureHasBeenSet =
false;
115 bool m_topPHasBeenSet =
false;
TextInferenceConfig & AddStopSequences(StopSequencesT &&value)
void SetMaxTokens(int value)
void SetStopSequences(StopSequencesT &&value)
TextInferenceConfig & WithTopP(double value)
bool MaxTokensHasBeenSet() const
void SetTopP(double value)
bool StopSequencesHasBeenSet() const
void SetTemperature(double value)
TextInferenceConfig & WithMaxTokens(int value)
AWS_BEDROCKAGENTRUNTIME_API TextInferenceConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API TextInferenceConfig()=default
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
double GetTemperature() const
TextInferenceConfig & WithStopSequences(StopSequencesT &&value)
bool TemperatureHasBeenSet() const
bool TopPHasBeenSet() const
TextInferenceConfig & WithTemperature(double value)
const Aws::Vector< Aws::String > & GetStopSequences() const
AWS_BEDROCKAGENTRUNTIME_API TextInferenceConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue