7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/BedrockAgentRuntimeRequest.h>
9#include <aws/bedrock-agent-runtime/model/InvokeAgentHandler.h>
10#include <aws/core/utils/event/EventStreamDecoder.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/bedrock-agent-runtime/model/BedrockModelConfigurations.h>
13#include <aws/bedrock-agent-runtime/model/PromptCreationConfigurations.h>
14#include <aws/bedrock-agent-runtime/model/SessionState.h>
15#include <aws/bedrock-agent-runtime/model/StreamingConfigurations.h>
20namespace BedrockAgentRuntime
70 template<
typename AgentAliasIdT = Aws::String>
71 void SetAgentAliasId(AgentAliasIdT&& value) { m_agentAliasIdHasBeenSet =
true; m_agentAliasId = std::forward<AgentAliasIdT>(value); }
72 template<
typename AgentAliasIdT = Aws::String>
82 template<
typename AgentIdT = Aws::String>
83 void SetAgentId(AgentIdT&& value) { m_agentIdHasBeenSet =
true; m_agentId = std::forward<AgentIdT>(value); }
84 template<
typename AgentIdT = Aws::String>
94 template<
typename BedrockModelConfigurationsT = BedrockModelConfigurations>
95 void SetBedrockModelConfigurations(BedrockModelConfigurationsT&& value) { m_bedrockModelConfigurationsHasBeenSet =
true; m_bedrockModelConfigurations = std::forward<BedrockModelConfigurationsT>(value); }
96 template<
typename BedrockModelConfigurationsT = BedrockModelConfigurations>
109 inline void SetEnableTrace(
bool value) { m_enableTraceHasBeenSet =
true; m_enableTrace = value; }
119 inline void SetEndSession(
bool value) { m_endSessionHasBeenSet =
true; m_endSession = value; }
131 template<
typename InputTextT = Aws::String>
132 void SetInputText(InputTextT&& value) { m_inputTextHasBeenSet =
true; m_inputText = std::forward<InputTextT>(value); }
133 template<
typename InputTextT = Aws::String>
143 template<
typename MemoryIdT = Aws::String>
144 void SetMemoryId(MemoryIdT&& value) { m_memoryIdHasBeenSet =
true; m_memoryId = std::forward<MemoryIdT>(value); }
145 template<
typename MemoryIdT = Aws::String>
159 template<
typename PromptCreationConfigurationsT = PromptCreationConfigurations>
160 void SetPromptCreationConfigurations(PromptCreationConfigurationsT&& value) { m_promptCreationConfigurationsHasBeenSet =
true; m_promptCreationConfigurations = std::forward<PromptCreationConfigurationsT>(value); }
161 template<
typename PromptCreationConfigurationsT = PromptCreationConfigurations>
172 template<
typename SessionIdT = Aws::String>
173 void SetSessionId(SessionIdT&& value) { m_sessionIdHasBeenSet =
true; m_sessionId = std::forward<SessionIdT>(value); }
174 template<
typename SessionIdT = Aws::String>
189 template<
typename SessionStateT = SessionState>
190 void SetSessionState(SessionStateT&& value) { m_sessionStateHasBeenSet =
true; m_sessionState = std::forward<SessionStateT>(value); }
191 template<
typename SessionStateT = SessionState>
201 template<
typename SourceArnT = Aws::String>
202 void SetSourceArn(SourceArnT&& value) { m_sourceArnHasBeenSet =
true; m_sourceArn = std::forward<SourceArnT>(value); }
203 template<
typename SourceArnT = Aws::String>
215 template<
typename StreamingConfigurationsT = StreamingConfigurations>
216 void SetStreamingConfigurations(StreamingConfigurationsT&& value) { m_streamingConfigurationsHasBeenSet =
true; m_streamingConfigurations = std::forward<StreamingConfigurationsT>(value); }
217 template<
typename StreamingConfigurationsT = StreamingConfigurations>
223 bool m_agentAliasIdHasBeenSet =
false;
226 bool m_agentIdHasBeenSet =
false;
229 bool m_bedrockModelConfigurationsHasBeenSet =
false;
231 bool m_enableTrace{
false};
232 bool m_enableTraceHasBeenSet =
false;
234 bool m_endSession{
false};
235 bool m_endSessionHasBeenSet =
false;
238 bool m_inputTextHasBeenSet =
false;
241 bool m_memoryIdHasBeenSet =
false;
243 PromptCreationConfigurations m_promptCreationConfigurations;
244 bool m_promptCreationConfigurationsHasBeenSet =
false;
247 bool m_sessionIdHasBeenSet =
false;
249 SessionState m_sessionState;
250 bool m_sessionStateHasBeenSet =
false;
253 bool m_sourceArnHasBeenSet =
false;
255 StreamingConfigurations m_streamingConfigurations;
256 bool m_streamingConfigurationsHasBeenSet =
false;
257 InvokeAgentHandler m_handler;
void SetMemoryId(MemoryIdT &&value)
void SetPromptCreationConfigurations(PromptCreationConfigurationsT &&value)
InvokeAgentRequest & WithMemoryId(MemoryIdT &&value)
bool BedrockModelConfigurationsHasBeenSet() const
bool InputTextHasBeenSet() const
const Aws::String & GetSessionId() const
AWS_BEDROCKAGENTRUNTIME_API Aws::String SerializePayload() const override
bool EnableTraceHasBeenSet() const
const Aws::String & GetAgentId() const
virtual bool HasEventStreamResponse() const override
virtual const char * GetServiceRequestName() const override
InvokeAgentRequest & WithInputText(InputTextT &&value)
bool AgentIdHasBeenSet() const
InvokeAgentRequest & WithBedrockModelConfigurations(BedrockModelConfigurationsT &&value)
void SetSourceArn(SourceArnT &&value)
InvokeAgentHandler & GetEventStreamHandler()
bool EndSessionHasBeenSet() const
InvokeAgentRequest & WithEndSession(bool value)
bool SessionIdHasBeenSet() const
InvokeAgentRequest & WithPromptCreationConfigurations(PromptCreationConfigurationsT &&value)
const SessionState & GetSessionState() const
bool SessionStateHasBeenSet() const
InvokeAgentRequest & WithEventStreamHandler(const InvokeAgentHandler &value)
bool PromptCreationConfigurationsHasBeenSet() const
bool MemoryIdHasBeenSet() const
bool GetEndSession() const
void SetAgentAliasId(AgentAliasIdT &&value)
void SetEventStreamHandler(const InvokeAgentHandler &value)
const Aws::String & GetAgentAliasId() const
void SetBedrockModelConfigurations(BedrockModelConfigurationsT &&value)
void SetAgentId(AgentIdT &&value)
InvokeAgentRequest & WithAgentAliasId(AgentAliasIdT &&value)
const PromptCreationConfigurations & GetPromptCreationConfigurations() const
bool StreamingConfigurationsHasBeenSet() const
Aws::Utils::Event::EventStreamDecoder & GetEventStreamDecoder()
InvokeAgentRequest & WithSessionState(SessionStateT &&value)
void SetInputText(InputTextT &&value)
const Aws::String & GetInputText() const
AWS_BEDROCKAGENTRUNTIME_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
bool GetEnableTrace() const
AWS_BEDROCKAGENTRUNTIME_API InvokeAgentRequest()=default
bool SourceArnHasBeenSet() const
const Aws::String & GetSourceArn() const
const StreamingConfigurations & GetStreamingConfigurations() const
InvokeAgentRequest & WithAgentId(AgentIdT &&value)
InvokeAgentRequest & WithEnableTrace(bool value)
void SetSessionState(SessionStateT &&value)
InvokeAgentRequest & WithSessionId(SessionIdT &&value)
void SetStreamingConfigurations(StreamingConfigurationsT &&value)
void SetSessionId(SessionIdT &&value)
InvokeAgentRequest & WithStreamingConfigurations(StreamingConfigurationsT &&value)
const Aws::String & GetMemoryId() const
bool AgentAliasIdHasBeenSet() const
void SetEnableTrace(bool value)
InvokeAgentRequest & WithSourceArn(SourceArnT &&value)
const BedrockModelConfigurations & GetBedrockModelConfigurations() const
void SetEndSession(bool value)
void ResetEventStreamHandler(EventStreamHandler *handler)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String