7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/ConversationHistory.h>
9#include <aws/bedrock-agent-runtime/model/InputFile.h>
10#include <aws/bedrock-agent-runtime/model/InvocationResultMember.h>
11#include <aws/bedrock-agent-runtime/model/KnowledgeBaseConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
25namespace BedrockAgentRuntime {
56 template <
typename ConversationHistoryT = ConversationHistory>
58 m_conversationHistoryHasBeenSet =
true;
59 m_conversationHistory = std::forward<ConversationHistoryT>(value);
61 template <
typename ConversationHistoryT = ConversationHistory>
74 template <
typename FilesT = Aws::Vector<InputFile>>
76 m_filesHasBeenSet =
true;
77 m_files = std::forward<FilesT>(value);
79 template <
typename FilesT = Aws::Vector<InputFile>>
81 SetFiles(std::forward<FilesT>(value));
84 template <
typename FilesT = InputFile>
86 m_filesHasBeenSet =
true;
87 m_files.emplace_back(std::forward<FilesT>(value));
105 template <
typename InvocationIdT = Aws::String>
107 m_invocationIdHasBeenSet =
true;
108 m_invocationId = std::forward<InvocationIdT>(value);
110 template <
typename InvocationIdT = Aws::String>
124 template <
typename KnowledgeBaseConfigurationsT = Aws::Vector<KnowledgeBaseConfiguration>>
126 m_knowledgeBaseConfigurationsHasBeenSet =
true;
127 m_knowledgeBaseConfigurations = std::forward<KnowledgeBaseConfigurationsT>(value);
129 template <
typename KnowledgeBaseConfigurationsT = Aws::Vector<KnowledgeBaseConfiguration>>
134 template <
typename KnowledgeBaseConfigurationsT = KnowledgeBaseConfiguration>
136 m_knowledgeBaseConfigurationsHasBeenSet =
true;
137 m_knowledgeBaseConfigurations.emplace_back(std::forward<KnowledgeBaseConfigurationsT>(value));
157 template <
typename PromptSessionAttributesT = Aws::Map<Aws::String, Aws::String>>
159 m_promptSessionAttributesHasBeenSet =
true;
160 m_promptSessionAttributes = std::forward<PromptSessionAttributesT>(value);
162 template <
typename PromptSessionAttributesT = Aws::Map<Aws::String, Aws::String>>
167 template <
typename PromptSessionAttributesKeyT = Aws::String,
typename PromptSessionAttributesValueT = Aws::String>
169 m_promptSessionAttributesHasBeenSet =
true;
170 m_promptSessionAttributes.emplace(std::forward<PromptSessionAttributesKeyT>(
key), std::forward<PromptSessionAttributesValueT>(value));
187 template <
typename ReturnControlInvocationResultsT = Aws::Vector<InvocationResultMember>>
189 m_returnControlInvocationResultsHasBeenSet =
true;
190 m_returnControlInvocationResults = std::forward<ReturnControlInvocationResultsT>(value);
192 template <
typename ReturnControlInvocationResultsT = Aws::Vector<InvocationResultMember>>
197 template <
typename ReturnControlInvocationResultsT = InvocationResultMember>
199 m_returnControlInvocationResultsHasBeenSet =
true;
200 m_returnControlInvocationResults.emplace_back(std::forward<ReturnControlInvocationResultsT>(value));
215 template <
typename SessionAttributesT = Aws::Map<Aws::String, Aws::String>>
217 m_sessionAttributesHasBeenSet =
true;
218 m_sessionAttributes = std::forward<SessionAttributesT>(value);
220 template <
typename SessionAttributesT = Aws::Map<Aws::String, Aws::String>>
225 template <
typename SessionAttributesKeyT = Aws::String,
typename SessionAttributesValueT = Aws::String>
227 m_sessionAttributesHasBeenSet =
true;
228 m_sessionAttributes.emplace(std::forward<SessionAttributesKeyT>(
key), std::forward<SessionAttributesValueT>(value));
246 bool m_conversationHistoryHasBeenSet =
false;
247 bool m_filesHasBeenSet =
false;
248 bool m_invocationIdHasBeenSet =
false;
249 bool m_knowledgeBaseConfigurationsHasBeenSet =
false;
250 bool m_promptSessionAttributesHasBeenSet =
false;
251 bool m_returnControlInvocationResultsHasBeenSet =
false;
252 bool m_sessionAttributesHasBeenSet =
false;
void SetPromptSessionAttributes(PromptSessionAttributesT &&value)
bool ConversationHistoryHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetSessionAttributes() const
const Aws::Vector< KnowledgeBaseConfiguration > & GetKnowledgeBaseConfigurations() const
SessionState & AddPromptSessionAttributes(PromptSessionAttributesKeyT &&key, PromptSessionAttributesValueT &&value)
AWS_BEDROCKAGENTRUNTIME_API SessionState()=default
AWS_BEDROCKAGENTRUNTIME_API SessionState & operator=(Aws::Utils::Json::JsonView jsonValue)
SessionState & WithInvocationId(InvocationIdT &&value)
const Aws::Vector< InvocationResultMember > & GetReturnControlInvocationResults() const
SessionState & WithFiles(FilesT &&value)
const Aws::Vector< InputFile > & GetFiles() const
SessionState & AddSessionAttributes(SessionAttributesKeyT &&key, SessionAttributesValueT &&value)
void SetFiles(FilesT &&value)
const Aws::String & GetInvocationId() const
AWS_BEDROCKAGENTRUNTIME_API SessionState(Aws::Utils::Json::JsonView jsonValue)
SessionState & WithConversationHistory(ConversationHistoryT &&value)
SessionState & WithSessionAttributes(SessionAttributesT &&value)
bool PromptSessionAttributesHasBeenSet() const
bool FilesHasBeenSet() const
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSessionAttributes(SessionAttributesT &&value)
SessionState & AddReturnControlInvocationResults(ReturnControlInvocationResultsT &&value)
void SetKnowledgeBaseConfigurations(KnowledgeBaseConfigurationsT &&value)
void SetConversationHistory(ConversationHistoryT &&value)
SessionState & AddFiles(FilesT &&value)
bool ReturnControlInvocationResultsHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetPromptSessionAttributes() const
SessionState & WithPromptSessionAttributes(PromptSessionAttributesT &&value)
const ConversationHistory & GetConversationHistory() const
bool InvocationIdHasBeenSet() const
void SetInvocationId(InvocationIdT &&value)
SessionState & WithKnowledgeBaseConfigurations(KnowledgeBaseConfigurationsT &&value)
bool KnowledgeBaseConfigurationsHasBeenSet() const
bool SessionAttributesHasBeenSet() const
SessionState & AddKnowledgeBaseConfigurations(KnowledgeBaseConfigurationsT &&value)
SessionState & WithReturnControlInvocationResults(ReturnControlInvocationResultsT &&value)
void SetReturnControlInvocationResults(ReturnControlInvocationResultsT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue