7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/sagemakertrainingsessionruntime/SageMakerTrainingSessionRuntime_EXPORTS.h>
9#include <aws/sagemakertrainingsessionruntime/model/SampledSequence.h>
10#include <aws/sagemakertrainingsessionruntime/model/TokenLogprob.h>
21namespace SageMakerTrainingSessionRuntime {
43 template <
typename SequencesT = Aws::Vector<SampledSequence>>
45 m_sequencesHasBeenSet =
true;
46 m_sequences = std::forward<SequencesT>(value);
48 template <
typename SequencesT = Aws::Vector<SampledSequence>>
53 template <
typename SequencesT = SampledSequence>
55 m_sequencesHasBeenSet =
true;
56 m_sequences.emplace_back(std::forward<SequencesT>(value));
68 template <
typename PromptLogprobsT = Aws::Vector<
double>>
70 m_promptLogprobsHasBeenSet =
true;
71 m_promptLogprobs = std::forward<PromptLogprobsT>(value);
73 template <
typename PromptLogprobsT = Aws::Vector<
double>>
79 m_promptLogprobsHasBeenSet =
true;
80 m_promptLogprobs.push_back(value);
92 template <
typename TopkPromptLogprobsT = Aws::Vector<Aws::Vector<TokenLogprob>>>
94 m_topkPromptLogprobsHasBeenSet =
true;
95 m_topkPromptLogprobs = std::forward<TopkPromptLogprobsT>(value);
97 template <
typename TopkPromptLogprobsT = Aws::Vector<Aws::Vector<TokenLogprob>>>
102 template <
typename TopkPromptLogprobsT = Aws::Vector<TokenLogprob>>
104 m_topkPromptLogprobsHasBeenSet =
true;
105 m_topkPromptLogprobs.emplace_back(std::forward<TopkPromptLogprobsT>(value));
115 bool m_sequencesHasBeenSet =
false;
116 bool m_promptLogprobsHasBeenSet =
false;
117 bool m_topkPromptLogprobsHasBeenSet =
false;
SampleResponse & WithPromptLogprobs(PromptLogprobsT &&value)
void SetTopkPromptLogprobs(TopkPromptLogprobsT &&value)
void SetSequences(SequencesT &&value)
bool PromptLogprobsHasBeenSet() const
const Aws::Vector< double > & GetPromptLogprobs() const
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API SampleResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
bool TopkPromptLogprobsHasBeenSet() const
const Aws::Vector< SampledSequence > & GetSequences() const
SampleResponse & AddPromptLogprobs(double value)
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API SampleResponse(Aws::Utils::Json::JsonView jsonValue)
bool SequencesHasBeenSet() const
SampleResponse & AddSequences(SequencesT &&value)
SampleResponse & WithSequences(SequencesT &&value)
const Aws::Vector< Aws::Vector< TokenLogprob > > & GetTopkPromptLogprobs() const
SampleResponse & WithTopkPromptLogprobs(TopkPromptLogprobsT &&value)
void SetPromptLogprobs(PromptLogprobsT &&value)
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
SampleResponse & AddTopkPromptLogprobs(TopkPromptLogprobsT &&value)
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API SampleResponse()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue