7#include <aws/bedrock-agent-runtime/BedrockAgentRuntimeRequest.h>
8#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
9#include <aws/bedrock-agent-runtime/model/AgentActionGroup.h>
10#include <aws/bedrock-agent-runtime/model/AgentCollaboration.h>
11#include <aws/bedrock-agent-runtime/model/Collaborator.h>
12#include <aws/bedrock-agent-runtime/model/CollaboratorConfiguration.h>
13#include <aws/bedrock-agent-runtime/model/CustomOrchestration.h>
14#include <aws/bedrock-agent-runtime/model/GuardrailConfigurationWithArn.h>
15#include <aws/bedrock-agent-runtime/model/InlineBedrockModelConfigurations.h>
16#include <aws/bedrock-agent-runtime/model/InlineSessionState.h>
17#include <aws/bedrock-agent-runtime/model/InvokeInlineAgentHandler.h>
18#include <aws/bedrock-agent-runtime/model/KnowledgeBase.h>
19#include <aws/bedrock-agent-runtime/model/OrchestrationType.h>
20#include <aws/bedrock-agent-runtime/model/PromptCreationConfigurations.h>
21#include <aws/bedrock-agent-runtime/model/PromptOverrideConfiguration.h>
22#include <aws/bedrock-agent-runtime/model/StreamingConfigurations.h>
23#include <aws/core/utils/event/EventStreamDecoder.h>
24#include <aws/core/utils/memory/stl/AWSString.h>
25#include <aws/core/utils/memory/stl/AWSVector.h>
30namespace BedrockAgentRuntime {
81 template <
typename ActionGroupsT = Aws::Vector<AgentActionGroup>>
83 m_actionGroupsHasBeenSet =
true;
84 m_actionGroups = std::forward<ActionGroupsT>(value);
86 template <
typename ActionGroupsT = Aws::Vector<AgentActionGroup>>
91 template <
typename ActionGroupsT = AgentActionGroup>
93 m_actionGroupsHasBeenSet =
true;
94 m_actionGroups.emplace_back(std::forward<ActionGroupsT>(value));
108 m_agentCollaborationHasBeenSet =
true;
109 m_agentCollaboration = value;
123 template <
typename AgentNameT = Aws::String>
125 m_agentNameHasBeenSet =
true;
126 m_agentName = std::forward<AgentNameT>(value);
128 template <
typename AgentNameT = Aws::String>
141 template <
typename BedrockModelConfigurationsT = InlineBedrockModelConfigurations>
143 m_bedrockModelConfigurationsHasBeenSet =
true;
144 m_bedrockModelConfigurations = std::forward<BedrockModelConfigurationsT>(value);
146 template <
typename BedrockModelConfigurationsT = InlineBedrockModelConfigurations>
161 template <
typename CollaboratorConfigurationsT = Aws::Vector<CollaboratorConfiguration>>
163 m_collaboratorConfigurationsHasBeenSet =
true;
164 m_collaboratorConfigurations = std::forward<CollaboratorConfigurationsT>(value);
166 template <
typename CollaboratorConfigurationsT = Aws::Vector<CollaboratorConfiguration>>
171 template <
typename CollaboratorConfigurationsT = CollaboratorConfiguration>
173 m_collaboratorConfigurationsHasBeenSet =
true;
174 m_collaboratorConfigurations.emplace_back(std::forward<CollaboratorConfigurationsT>(value));
185 template <
typename CollaboratorsT = Aws::Vector<Collaborator>>
187 m_collaboratorsHasBeenSet =
true;
188 m_collaborators = std::forward<CollaboratorsT>(value);
190 template <
typename CollaboratorsT = Aws::Vector<Collaborator>>
195 template <
typename CollaboratorsT = Collaborator>
197 m_collaboratorsHasBeenSet =
true;
198 m_collaborators.emplace_back(std::forward<CollaboratorsT>(value));
209 template <
typename CustomOrchestrationT = CustomOrchestration>
211 m_customOrchestrationHasBeenSet =
true;
212 m_customOrchestration = std::forward<CustomOrchestrationT>(value);
214 template <
typename CustomOrchestrationT = CustomOrchestration>
228 template <
typename CustomerEncryptionKeyArnT = Aws::String>
230 m_customerEncryptionKeyArnHasBeenSet =
true;
231 m_customerEncryptionKeyArn = std::forward<CustomerEncryptionKeyArnT>(value);
233 template <
typename CustomerEncryptionKeyArnT = Aws::String>
250 m_enableTraceHasBeenSet =
true;
251 m_enableTrace = value;
266 m_endSessionHasBeenSet =
true;
267 m_endSession = value;
284 template <
typename FoundationModelT = Aws::String>
286 m_foundationModelHasBeenSet =
true;
287 m_foundationModel = std::forward<FoundationModelT>(value);
289 template <
typename FoundationModelT = Aws::String>
304 template <
typename GuardrailConfigurationT = GuardrailConfigurationWithArn>
306 m_guardrailConfigurationHasBeenSet =
true;
307 m_guardrailConfiguration = std::forward<GuardrailConfigurationT>(value);
309 template <
typename GuardrailConfigurationT = GuardrailConfigurationWithArn>
328 m_idleSessionTTLInSecondsHasBeenSet =
true;
329 m_idleSessionTTLInSeconds = value;
350 template <
typename InlineSessionStateT = InlineSessionState>
352 m_inlineSessionStateHasBeenSet =
true;
353 m_inlineSessionState = std::forward<InlineSessionStateT>(value);
355 template <
typename InlineSessionStateT = InlineSessionState>
370 template <
typename InputTextT = Aws::String>
372 m_inputTextHasBeenSet =
true;
373 m_inputText = std::forward<InputTextT>(value);
375 template <
typename InputTextT = Aws::String>
389 template <
typename InstructionT = Aws::String>
391 m_instructionHasBeenSet =
true;
392 m_instruction = std::forward<InstructionT>(value);
394 template <
typename InstructionT = Aws::String>
407 template <
typename KnowledgeBasesT = Aws::Vector<KnowledgeBase>>
409 m_knowledgeBasesHasBeenSet =
true;
410 m_knowledgeBases = std::forward<KnowledgeBasesT>(value);
412 template <
typename KnowledgeBasesT = Aws::Vector<KnowledgeBase>>
417 template <
typename KnowledgeBasesT = KnowledgeBase>
419 m_knowledgeBasesHasBeenSet =
true;
420 m_knowledgeBases.emplace_back(std::forward<KnowledgeBasesT>(value));
433 m_orchestrationTypeHasBeenSet =
true;
434 m_orchestrationType = value;
452 template <
typename PromptCreationConfigurationsT = PromptCreationConfigurations>
454 m_promptCreationConfigurationsHasBeenSet =
true;
455 m_promptCreationConfigurations = std::forward<PromptCreationConfigurationsT>(value);
457 template <
typename PromptCreationConfigurationsT = PromptCreationConfigurations>
471 template <
typename PromptOverr
ideConfigurationT = PromptOverr
ideConfiguration>
473 m_promptOverrideConfigurationHasBeenSet =
true;
474 m_promptOverrideConfiguration = std::forward<PromptOverrideConfigurationT>(value);
476 template <
typename PromptOverr
ideConfigurationT = PromptOverr
ideConfiguration>
490 template <
typename SessionIdT = Aws::String>
492 m_sessionIdHasBeenSet =
true;
493 m_sessionId = std::forward<SessionIdT>(value);
495 template <
typename SessionIdT = Aws::String>
510 template <
typename StreamingConfigurationsT = StreamingConfigurations>
512 m_streamingConfigurationsHasBeenSet =
true;
513 m_streamingConfigurations = std::forward<StreamingConfigurationsT>(value);
515 template <
typename StreamingConfigurationsT = StreamingConfigurations>
528 InlineBedrockModelConfigurations m_bedrockModelConfigurations;
534 CustomOrchestration m_customOrchestration;
538 bool m_enableTrace{
false};
540 bool m_endSession{
false};
544 GuardrailConfigurationWithArn m_guardrailConfiguration;
546 int m_idleSessionTTLInSeconds{0};
548 InlineSessionState m_inlineSessionState;
558 PromptCreationConfigurations m_promptCreationConfigurations;
560 PromptOverrideConfiguration m_promptOverrideConfiguration;
564 StreamingConfigurations m_streamingConfigurations;
565 InvokeInlineAgentHandler m_handler;
568 bool m_actionGroupsHasBeenSet =
false;
569 bool m_agentCollaborationHasBeenSet =
false;
570 bool m_agentNameHasBeenSet =
false;
571 bool m_bedrockModelConfigurationsHasBeenSet =
false;
572 bool m_collaboratorConfigurationsHasBeenSet =
false;
573 bool m_collaboratorsHasBeenSet =
false;
574 bool m_customOrchestrationHasBeenSet =
false;
575 bool m_customerEncryptionKeyArnHasBeenSet =
false;
576 bool m_enableTraceHasBeenSet =
false;
577 bool m_endSessionHasBeenSet =
false;
578 bool m_foundationModelHasBeenSet =
false;
579 bool m_guardrailConfigurationHasBeenSet =
false;
580 bool m_idleSessionTTLInSecondsHasBeenSet =
false;
581 bool m_inlineSessionStateHasBeenSet =
false;
582 bool m_inputTextHasBeenSet =
false;
583 bool m_instructionHasBeenSet =
false;
584 bool m_knowledgeBasesHasBeenSet =
false;
585 bool m_orchestrationTypeHasBeenSet =
false;
586 bool m_promptCreationConfigurationsHasBeenSet =
false;
587 bool m_promptOverrideConfigurationHasBeenSet =
false;
588 bool m_sessionIdHasBeenSet =
false;
589 bool m_streamingConfigurationsHasBeenSet =
false;
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::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector