7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearchmemory/OpenSearchMemory_EXPORTS.h>
19namespace OpenSearchMemory {
49 template <
typename ExtractionPromptT = Aws::String>
51 m_extractionPromptHasBeenSet =
true;
52 m_extractionPrompt = std::forward<ExtractionPromptT>(value);
54 template <
typename ExtractionPromptT = Aws::String>
72 m_extractEveryNMessagesHasBeenSet =
true;
73 m_extractEveryNMessages = value;
92 m_extractEveryNTokensHasBeenSet =
true;
93 m_extractEveryNTokens = value;
112 m_idleTimeoutSecondsHasBeenSet =
true;
113 m_idleTimeoutSeconds = value;
133 m_extractionSeedTopKHasBeenSet =
true;
134 m_extractionSeedTopK = value;
154 m_extractionSeedRecentNHasBeenSet =
true;
155 m_extractionSeedRecentN = value;
176 m_consolidationEnabledHasBeenSet =
true;
177 m_consolidationEnabled = value;
187 int m_extractEveryNMessages{0};
189 int m_extractEveryNTokens{0};
191 int m_idleTimeoutSeconds{0};
193 int m_extractionSeedTopK{0};
195 int m_extractionSeedRecentN{0};
197 bool m_consolidationEnabled{
false};
198 bool m_extractionPromptHasBeenSet =
false;
199 bool m_extractEveryNMessagesHasBeenSet =
false;
200 bool m_extractEveryNTokensHasBeenSet =
false;
201 bool m_idleTimeoutSecondsHasBeenSet =
false;
202 bool m_extractionSeedTopKHasBeenSet =
false;
203 bool m_extractionSeedRecentNHasBeenSet =
false;
204 bool m_consolidationEnabledHasBeenSet =
false;
MemoryStrategyConfiguration & WithIdleTimeoutSeconds(int value)
bool ExtractEveryNMessagesHasBeenSet() const
MemoryStrategyConfiguration & WithExtractionSeedTopK(int value)
int GetExtractEveryNMessages() const
AWS_OPENSEARCHMEMORY_API MemoryStrategyConfiguration(Aws::Utils::Json::JsonView jsonValue)
bool ExtractionPromptHasBeenSet() const
int GetExtractionSeedRecentN() const
MemoryStrategyConfiguration & WithExtractionSeedRecentN(int value)
MemoryStrategyConfiguration & WithExtractionPrompt(ExtractionPromptT &&value)
void SetExtractEveryNMessages(int value)
int GetExtractionSeedTopK() const
bool ExtractionSeedTopKHasBeenSet() const
const Aws::String & GetExtractionPrompt() const
int GetExtractEveryNTokens() const
AWS_OPENSEARCHMEMORY_API MemoryStrategyConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ConsolidationEnabledHasBeenSet() const
bool IdleTimeoutSecondsHasBeenSet() const
AWS_OPENSEARCHMEMORY_API MemoryStrategyConfiguration()=default
MemoryStrategyConfiguration & WithExtractEveryNMessages(int value)
bool ExtractEveryNTokensHasBeenSet() const
void SetIdleTimeoutSeconds(int value)
MemoryStrategyConfiguration & WithExtractEveryNTokens(int value)
AWS_OPENSEARCHMEMORY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetExtractionSeedRecentN(int value)
void SetExtractionSeedTopK(int value)
void SetExtractEveryNTokens(int value)
void SetConsolidationEnabled(bool value)
void SetExtractionPrompt(ExtractionPromptT &&value)
bool ExtractionSeedRecentNHasBeenSet() const
bool GetConsolidationEnabled() const
MemoryStrategyConfiguration & WithConsolidationEnabled(bool value)
int GetIdleTimeoutSeconds() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue