7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/ConversationHistory.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/bedrock-agent-runtime/model/InputFile.h>
13#include <aws/bedrock-agent-runtime/model/KnowledgeBaseConfiguration.h>
14#include <aws/bedrock-agent-runtime/model/InvocationResultMember.h>
27namespace BedrockAgentRuntime
62 template<
typename ConversationHistoryT = ConversationHistory>
63 void SetConversationHistory(ConversationHistoryT&& value) { m_conversationHistoryHasBeenSet =
true; m_conversationHistory = std::forward<ConversationHistoryT>(value); }
64 template<
typename ConversationHistoryT = ConversationHistory>
74 template<
typename FilesT = Aws::Vector<InputFile>>
75 void SetFiles(FilesT&& value) { m_filesHasBeenSet =
true; m_files = std::forward<FilesT>(value); }
76 template<
typename FilesT = Aws::Vector<InputFile>>
78 template<
typename FilesT = InputFile>
79 SessionState&
AddFiles(FilesT&& value) { m_filesHasBeenSet =
true; m_files.emplace_back(std::forward<FilesT>(value));
return *
this; }
95 template<
typename InvocationIdT = Aws::String>
96 void SetInvocationId(InvocationIdT&& value) { m_invocationIdHasBeenSet =
true; m_invocationId = std::forward<InvocationIdT>(value); }
97 template<
typename InvocationIdT = Aws::String>
108 template<
typename KnowledgeBaseConfigurationsT = Aws::Vector<KnowledgeBaseConfiguration>>
109 void SetKnowledgeBaseConfigurations(KnowledgeBaseConfigurationsT&& value) { m_knowledgeBaseConfigurationsHasBeenSet =
true; m_knowledgeBaseConfigurations = std::forward<KnowledgeBaseConfigurationsT>(value); }
110 template<
typename KnowledgeBaseConfigurationsT = Aws::Vector<KnowledgeBaseConfiguration>>
112 template<
typename KnowledgeBaseConfigurationsT = KnowledgeBaseConfiguration>
113 SessionState&
AddKnowledgeBaseConfigurations(KnowledgeBaseConfigurationsT&& value) { m_knowledgeBaseConfigurationsHasBeenSet =
true; m_knowledgeBaseConfigurations.emplace_back(std::forward<KnowledgeBaseConfigurationsT>(value));
return *
this; }
131 template<
typename PromptSessionAttributesT = Aws::Map<Aws::String, Aws::String>>
132 void SetPromptSessionAttributes(PromptSessionAttributesT&& value) { m_promptSessionAttributesHasBeenSet =
true; m_promptSessionAttributes = std::forward<PromptSessionAttributesT>(value); }
133 template<
typename PromptSessionAttributesT = Aws::Map<Aws::String, Aws::String>>
135 template<
typename PromptSessionAttributesKeyT = Aws::String,
typename PromptSessionAttributesValueT = Aws::String>
137 m_promptSessionAttributesHasBeenSet =
true; m_promptSessionAttributes.emplace(std::forward<PromptSessionAttributesKeyT>(key), std::forward<PromptSessionAttributesValueT>(value));
return *
this;
153 template<
typename ReturnControlInvocationResultsT = Aws::Vector<InvocationResultMember>>
154 void SetReturnControlInvocationResults(ReturnControlInvocationResultsT&& value) { m_returnControlInvocationResultsHasBeenSet =
true; m_returnControlInvocationResults = std::forward<ReturnControlInvocationResultsT>(value); }
155 template<
typename ReturnControlInvocationResultsT = Aws::Vector<InvocationResultMember>>
157 template<
typename ReturnControlInvocationResultsT = InvocationResultMember>
158 SessionState&
AddReturnControlInvocationResults(ReturnControlInvocationResultsT&& value) { m_returnControlInvocationResultsHasBeenSet =
true; m_returnControlInvocationResults.emplace_back(std::forward<ReturnControlInvocationResultsT>(value));
return *
this; }
171 template<
typename SessionAttributesT = Aws::Map<Aws::String, Aws::String>>
172 void SetSessionAttributes(SessionAttributesT&& value) { m_sessionAttributesHasBeenSet =
true; m_sessionAttributes = std::forward<SessionAttributesT>(value); }
173 template<
typename SessionAttributesT = Aws::Map<Aws::String, Aws::String>>
175 template<
typename SessionAttributesKeyT = Aws::String,
typename SessionAttributesValueT = Aws::String>
177 m_sessionAttributesHasBeenSet =
true; m_sessionAttributes.emplace(std::forward<SessionAttributesKeyT>(key), std::forward<SessionAttributesValueT>(value));
return *
this;
183 bool m_conversationHistoryHasBeenSet =
false;
186 bool m_filesHasBeenSet =
false;
189 bool m_invocationIdHasBeenSet =
false;
192 bool m_knowledgeBaseConfigurationsHasBeenSet =
false;
195 bool m_promptSessionAttributesHasBeenSet =
false;
198 bool m_returnControlInvocationResultsHasBeenSet =
false;
201 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::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