7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/BedrockAgentRuntimeRequest.h>
9#include <aws/bedrock-agent-runtime/model/InvokeInlineAgentHandler.h>
10#include <aws/core/utils/event/EventStreamDecoder.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/bedrock-agent-runtime/model/AgentCollaboration.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/bedrock-agent-runtime/model/InlineBedrockModelConfigurations.h>
15#include <aws/bedrock-agent-runtime/model/CustomOrchestration.h>
16#include <aws/bedrock-agent-runtime/model/GuardrailConfigurationWithArn.h>
17#include <aws/bedrock-agent-runtime/model/InlineSessionState.h>
18#include <aws/bedrock-agent-runtime/model/OrchestrationType.h>
19#include <aws/bedrock-agent-runtime/model/PromptCreationConfigurations.h>
20#include <aws/bedrock-agent-runtime/model/PromptOverrideConfiguration.h>
21#include <aws/bedrock-agent-runtime/model/StreamingConfigurations.h>
22#include <aws/bedrock-agent-runtime/model/AgentActionGroup.h>
23#include <aws/bedrock-agent-runtime/model/CollaboratorConfiguration.h>
24#include <aws/bedrock-agent-runtime/model/Collaborator.h>
25#include <aws/bedrock-agent-runtime/model/KnowledgeBase.h>
30namespace BedrockAgentRuntime
79 template<
typename ActionGroupsT = Aws::Vector<AgentActionGroup>>
80 void SetActionGroups(ActionGroupsT&& value) { m_actionGroupsHasBeenSet =
true; m_actionGroups = std::forward<ActionGroupsT>(value); }
81 template<
typename ActionGroupsT = Aws::Vector<AgentActionGroup>>
83 template<
typename ActionGroupsT = AgentActionGroup>
105 template<
typename AgentNameT = Aws::String>
106 void SetAgentName(AgentNameT&& value) { m_agentNameHasBeenSet =
true; m_agentName = std::forward<AgentNameT>(value); }
107 template<
typename AgentNameT = Aws::String>
117 template<
typename BedrockModelConfigurationsT = InlineBedrockModelConfigurations>
118 void SetBedrockModelConfigurations(BedrockModelConfigurationsT&& value) { m_bedrockModelConfigurationsHasBeenSet =
true; m_bedrockModelConfigurations = std::forward<BedrockModelConfigurationsT>(value); }
119 template<
typename BedrockModelConfigurationsT = InlineBedrockModelConfigurations>
131 template<
typename CollaboratorConfigurationsT = Aws::Vector<CollaboratorConfiguration>>
132 void SetCollaboratorConfigurations(CollaboratorConfigurationsT&& value) { m_collaboratorConfigurationsHasBeenSet =
true; m_collaboratorConfigurations = std::forward<CollaboratorConfigurationsT>(value); }
133 template<
typename CollaboratorConfigurationsT = Aws::Vector<CollaboratorConfiguration>>
135 template<
typename CollaboratorConfigurationsT = CollaboratorConfiguration>
145 template<
typename CollaboratorsT = Aws::Vector<Collaborator>>
146 void SetCollaborators(CollaboratorsT&& value) { m_collaboratorsHasBeenSet =
true; m_collaborators = std::forward<CollaboratorsT>(value); }
147 template<
typename CollaboratorsT = Aws::Vector<Collaborator>>
149 template<
typename CollaboratorsT = Collaborator>
159 template<
typename CustomOrchestrationT = CustomOrchestration>
160 void SetCustomOrchestration(CustomOrchestrationT&& value) { m_customOrchestrationHasBeenSet =
true; m_customOrchestration = std::forward<CustomOrchestrationT>(value); }
161 template<
typename CustomOrchestrationT = CustomOrchestration>
172 template<
typename CustomerEncryptionKeyArnT = Aws::String>
173 void SetCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT&& value) { m_customerEncryptionKeyArnHasBeenSet =
true; m_customerEncryptionKeyArn = std::forward<CustomerEncryptionKeyArnT>(value); }
174 template<
typename CustomerEncryptionKeyArnT = Aws::String>
187 inline void SetEnableTrace(
bool value) { m_enableTraceHasBeenSet =
true; m_enableTrace = value; }
197 inline void SetEndSession(
bool value) { m_endSessionHasBeenSet =
true; m_endSession = value; }
210 template<
typename FoundationModelT = Aws::String>
211 void SetFoundationModel(FoundationModelT&& value) { m_foundationModelHasBeenSet =
true; m_foundationModel = std::forward<FoundationModelT>(value); }
212 template<
typename FoundationModelT = Aws::String>
224 template<
typename GuardrailConfigurationT = GuardrailConfigurationWithArn>
225 void SetGuardrailConfiguration(GuardrailConfigurationT&& value) { m_guardrailConfigurationHasBeenSet =
true; m_guardrailConfiguration = std::forward<GuardrailConfigurationT>(value); }
226 template<
typename GuardrailConfigurationT = GuardrailConfigurationWithArn>
258 template<
typename InlineSessionStateT = InlineSessionState>
259 void SetInlineSessionState(InlineSessionStateT&& value) { m_inlineSessionStateHasBeenSet =
true; m_inlineSessionState = std::forward<InlineSessionStateT>(value); }
260 template<
typename InlineSessionStateT = InlineSessionState>
272 template<
typename InputTextT = Aws::String>
273 void SetInputText(InputTextT&& value) { m_inputTextHasBeenSet =
true; m_inputText = std::forward<InputTextT>(value); }
274 template<
typename InputTextT = Aws::String>
285 template<
typename InstructionT = Aws::String>
286 void SetInstruction(InstructionT&& value) { m_instructionHasBeenSet =
true; m_instruction = std::forward<InstructionT>(value); }
287 template<
typename InstructionT = Aws::String>
297 template<
typename KnowledgeBasesT = Aws::Vector<KnowledgeBase>>
298 void SetKnowledgeBases(KnowledgeBasesT&& value) { m_knowledgeBasesHasBeenSet =
true; m_knowledgeBases = std::forward<KnowledgeBasesT>(value); }
299 template<
typename KnowledgeBasesT = Aws::Vector<KnowledgeBase>>
301 template<
typename KnowledgeBasesT = KnowledgeBase>
326 template<
typename PromptCreationConfigurationsT = PromptCreationConfigurations>
327 void SetPromptCreationConfigurations(PromptCreationConfigurationsT&& value) { m_promptCreationConfigurationsHasBeenSet =
true; m_promptCreationConfigurations = std::forward<PromptCreationConfigurationsT>(value); }
328 template<
typename PromptCreationConfigurationsT = PromptCreationConfigurations>
339 template<
typename PromptOverr
ideConfigurationT = PromptOverr
ideConfiguration>
340 void SetPromptOverrideConfiguration(PromptOverrideConfigurationT&& value) { m_promptOverrideConfigurationHasBeenSet =
true; m_promptOverrideConfiguration = std::forward<PromptOverrideConfigurationT>(value); }
341 template<
typename PromptOverr
ideConfigurationT = PromptOverr
ideConfiguration>
352 template<
typename SessionIdT = Aws::String>
353 void SetSessionId(SessionIdT&& value) { m_sessionIdHasBeenSet =
true; m_sessionId = std::forward<SessionIdT>(value); }
354 template<
typename SessionIdT = Aws::String>
366 template<
typename StreamingConfigurationsT = StreamingConfigurations>
367 void SetStreamingConfigurations(StreamingConfigurationsT&& value) { m_streamingConfigurationsHasBeenSet =
true; m_streamingConfigurations = std::forward<StreamingConfigurationsT>(value); }
368 template<
typename StreamingConfigurationsT = StreamingConfigurations>
374 bool m_actionGroupsHasBeenSet =
false;
377 bool m_agentCollaborationHasBeenSet =
false;
380 bool m_agentNameHasBeenSet =
false;
382 InlineBedrockModelConfigurations m_bedrockModelConfigurations;
383 bool m_bedrockModelConfigurationsHasBeenSet =
false;
386 bool m_collaboratorConfigurationsHasBeenSet =
false;
389 bool m_collaboratorsHasBeenSet =
false;
391 CustomOrchestration m_customOrchestration;
392 bool m_customOrchestrationHasBeenSet =
false;
395 bool m_customerEncryptionKeyArnHasBeenSet =
false;
397 bool m_enableTrace{
false};
398 bool m_enableTraceHasBeenSet =
false;
400 bool m_endSession{
false};
401 bool m_endSessionHasBeenSet =
false;
404 bool m_foundationModelHasBeenSet =
false;
406 GuardrailConfigurationWithArn m_guardrailConfiguration;
407 bool m_guardrailConfigurationHasBeenSet =
false;
409 int m_idleSessionTTLInSeconds{0};
410 bool m_idleSessionTTLInSecondsHasBeenSet =
false;
412 InlineSessionState m_inlineSessionState;
413 bool m_inlineSessionStateHasBeenSet =
false;
416 bool m_inputTextHasBeenSet =
false;
419 bool m_instructionHasBeenSet =
false;
422 bool m_knowledgeBasesHasBeenSet =
false;
425 bool m_orchestrationTypeHasBeenSet =
false;
427 PromptCreationConfigurations m_promptCreationConfigurations;
428 bool m_promptCreationConfigurationsHasBeenSet =
false;
430 PromptOverrideConfiguration m_promptOverrideConfiguration;
431 bool m_promptOverrideConfigurationHasBeenSet =
false;
434 bool m_sessionIdHasBeenSet =
false;
436 StreamingConfigurations m_streamingConfigurations;
437 bool m_streamingConfigurationsHasBeenSet =
false;
438 InvokeInlineAgentHandler m_handler;
void SetBedrockModelConfigurations(BedrockModelConfigurationsT &&value)
bool IdleSessionTTLInSecondsHasBeenSet() const
bool InlineSessionStateHasBeenSet() const
void SetInputText(InputTextT &&value)
InvokeInlineAgentRequest & WithCollaborators(CollaboratorsT &&value)
bool InputTextHasBeenSet() const
InvokeInlineAgentRequest & WithActionGroups(ActionGroupsT &&value)
InvokeInlineAgentRequest & WithKnowledgeBases(KnowledgeBasesT &&value)
InvokeInlineAgentRequest & AddActionGroups(ActionGroupsT &&value)
InvokeInlineAgentRequest & WithInlineSessionState(InlineSessionStateT &&value)
void SetEnableTrace(bool value)
InvokeInlineAgentRequest & WithEventStreamHandler(const InvokeInlineAgentHandler &value)
AWS_BEDROCKAGENTRUNTIME_API Aws::String SerializePayload() const override
bool AgentCollaborationHasBeenSet() const
void SetAgentName(AgentNameT &&value)
bool CustomerEncryptionKeyArnHasBeenSet() const
InvokeInlineAgentRequest & AddCollaborators(CollaboratorsT &&value)
InvokeInlineAgentRequest & WithGuardrailConfiguration(GuardrailConfigurationT &&value)
void SetPromptCreationConfigurations(PromptCreationConfigurationsT &&value)
bool AgentNameHasBeenSet() const
bool GetEndSession() const
const Aws::Vector< AgentActionGroup > & GetActionGroups() const
const Aws::String & GetSessionId() const
AWS_BEDROCKAGENTRUNTIME_API InvokeInlineAgentRequest()=default
InvokeInlineAgentRequest & WithOrchestrationType(OrchestrationType value)
InvokeInlineAgentRequest & WithBedrockModelConfigurations(BedrockModelConfigurationsT &&value)
void SetKnowledgeBases(KnowledgeBasesT &&value)
const Aws::String & GetFoundationModel() const
const StreamingConfigurations & GetStreamingConfigurations() const
InvokeInlineAgentRequest & WithEnableTrace(bool value)
InvokeInlineAgentRequest & WithStreamingConfigurations(StreamingConfigurationsT &&value)
const InlineSessionState & GetInlineSessionState() const
void SetGuardrailConfiguration(GuardrailConfigurationT &&value)
void SetInlineSessionState(InlineSessionStateT &&value)
void SetActionGroups(ActionGroupsT &&value)
void SetStreamingConfigurations(StreamingConfigurationsT &&value)
InvokeInlineAgentRequest & AddCollaboratorConfigurations(CollaboratorConfigurationsT &&value)
const InlineBedrockModelConfigurations & GetBedrockModelConfigurations() const
void SetCustomOrchestration(CustomOrchestrationT &&value)
void SetCollaboratorConfigurations(CollaboratorConfigurationsT &&value)
AgentCollaboration GetAgentCollaboration() const
bool CollaboratorConfigurationsHasBeenSet() const
const CustomOrchestration & GetCustomOrchestration() const
Aws::Utils::Event::EventStreamDecoder & GetEventStreamDecoder()
void SetPromptOverrideConfiguration(PromptOverrideConfigurationT &&value)
OrchestrationType GetOrchestrationType() const
InvokeInlineAgentRequest & WithCustomOrchestration(CustomOrchestrationT &&value)
bool FoundationModelHasBeenSet() const
const Aws::String & GetInstruction() const
const Aws::Vector< CollaboratorConfiguration > & GetCollaboratorConfigurations() const
bool ActionGroupsHasBeenSet() const
bool PromptCreationConfigurationsHasBeenSet() const
const Aws::String & GetAgentName() const
bool KnowledgeBasesHasBeenSet() const
virtual const char * GetServiceRequestName() const override
InvokeInlineAgentHandler & GetEventStreamHandler()
const PromptOverrideConfiguration & GetPromptOverrideConfiguration() const
bool GetEnableTrace() const
bool SessionIdHasBeenSet() const
void SetInstruction(InstructionT &&value)
void SetIdleSessionTTLInSeconds(int value)
InvokeInlineAgentRequest & WithCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT &&value)
InvokeInlineAgentRequest & WithCollaboratorConfigurations(CollaboratorConfigurationsT &&value)
void SetAgentCollaboration(AgentCollaboration value)
bool PromptOverrideConfigurationHasBeenSet() const
InvokeInlineAgentRequest & WithSessionId(SessionIdT &&value)
void SetCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT &&value)
bool InstructionHasBeenSet() const
InvokeInlineAgentRequest & WithAgentName(AgentNameT &&value)
const Aws::Vector< KnowledgeBase > & GetKnowledgeBases() const
InvokeInlineAgentRequest & WithPromptCreationConfigurations(PromptCreationConfigurationsT &&value)
void SetFoundationModel(FoundationModelT &&value)
InvokeInlineAgentRequest & WithInputText(InputTextT &&value)
bool CustomOrchestrationHasBeenSet() const
bool CollaboratorsHasBeenSet() const
const Aws::String & GetInputText() const
InvokeInlineAgentRequest & WithFoundationModel(FoundationModelT &&value)
const Aws::String & GetCustomerEncryptionKeyArn() const
void SetSessionId(SessionIdT &&value)
InvokeInlineAgentRequest & WithEndSession(bool value)
const GuardrailConfigurationWithArn & GetGuardrailConfiguration() const
InvokeInlineAgentRequest & AddKnowledgeBases(KnowledgeBasesT &&value)
void SetEventStreamHandler(const InvokeInlineAgentHandler &value)
InvokeInlineAgentRequest & WithAgentCollaboration(AgentCollaboration value)
bool BedrockModelConfigurationsHasBeenSet() const
InvokeInlineAgentRequest & WithPromptOverrideConfiguration(PromptOverrideConfigurationT &&value)
void SetCollaborators(CollaboratorsT &&value)
InvokeInlineAgentRequest & WithIdleSessionTTLInSeconds(int value)
virtual bool HasEventStreamResponse() const override
int GetIdleSessionTTLInSeconds() const
bool GuardrailConfigurationHasBeenSet() const
bool EnableTraceHasBeenSet() const
bool EndSessionHasBeenSet() const
InvokeInlineAgentRequest & WithInstruction(InstructionT &&value)
void SetOrchestrationType(OrchestrationType value)
const PromptCreationConfigurations & GetPromptCreationConfigurations() const
const Aws::Vector< Collaborator > & GetCollaborators() const
void SetEndSession(bool value)
bool OrchestrationTypeHasBeenSet() const
bool StreamingConfigurationsHasBeenSet() const
void ResetEventStreamHandler(EventStreamHandler *handler)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector