7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock-agent/model/AgentCollaboration.h>
10#include <aws/bedrock-agent/model/AgentStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/bedrock-agent/model/CustomOrchestration.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/bedrock-agent/model/GuardrailConfiguration.h>
15#include <aws/bedrock-agent/model/MemoryConfiguration.h>
16#include <aws/bedrock-agent/model/OrchestrationType.h>
17#include <aws/bedrock-agent/model/PromptOverrideConfiguration.h>
43 AWS_BEDROCKAGENT_API
Agent() =
default;
55 template<
typename AgentArnT = Aws::String>
56 void SetAgentArn(AgentArnT&& value) { m_agentArnHasBeenSet =
true; m_agentArn = std::forward<AgentArnT>(value); }
57 template<
typename AgentArnT = Aws::String>
77 template<
typename AgentIdT = Aws::String>
78 void SetAgentId(AgentIdT&& value) { m_agentIdHasBeenSet =
true; m_agentId = std::forward<AgentIdT>(value); }
79 template<
typename AgentIdT = Aws::String>
89 template<
typename AgentNameT = Aws::String>
90 void SetAgentName(AgentNameT&& value) { m_agentNameHasBeenSet =
true; m_agentName = std::forward<AgentNameT>(value); }
91 template<
typename AgentNameT = Aws::String>
102 template<
typename AgentResourceRoleArnT = Aws::String>
103 void SetAgentResourceRoleArn(AgentResourceRoleArnT&& value) { m_agentResourceRoleArnHasBeenSet =
true; m_agentResourceRoleArn = std::forward<AgentResourceRoleArnT>(value); }
104 template<
typename AgentResourceRoleArnT = Aws::String>
131 template<
typename AgentVersionT = Aws::String>
132 void SetAgentVersion(AgentVersionT&& value) { m_agentVersionHasBeenSet =
true; m_agentVersion = std::forward<AgentVersionT>(value); }
133 template<
typename AgentVersionT = Aws::String>
147 template<
typename ClientTokenT = Aws::String>
148 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet =
true; m_clientToken = std::forward<ClientTokenT>(value); }
149 template<
typename ClientTokenT = Aws::String>
159 template<
typename CreatedAtT = Aws::Utils::DateTime>
160 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet =
true; m_createdAt = std::forward<CreatedAtT>(value); }
161 template<
typename CreatedAtT = Aws::Utils::DateTime>
171 template<
typename CustomOrchestrationT = CustomOrchestration>
172 void SetCustomOrchestration(CustomOrchestrationT&& value) { m_customOrchestrationHasBeenSet =
true; m_customOrchestration = std::forward<CustomOrchestrationT>(value); }
173 template<
typename CustomOrchestrationT = CustomOrchestration>
183 template<
typename CustomerEncryptionKeyArnT = Aws::String>
184 void SetCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT&& value) { m_customerEncryptionKeyArnHasBeenSet =
true; m_customerEncryptionKeyArn = std::forward<CustomerEncryptionKeyArnT>(value); }
185 template<
typename CustomerEncryptionKeyArnT = Aws::String>
195 template<
typename DescriptionT = Aws::String>
196 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
197 template<
typename DescriptionT = Aws::String>
207 template<
typename FailureReasonsT = Aws::Vector<Aws::String>>
208 void SetFailureReasons(FailureReasonsT&& value) { m_failureReasonsHasBeenSet =
true; m_failureReasons = std::forward<FailureReasonsT>(value); }
209 template<
typename FailureReasonsT = Aws::Vector<Aws::String>>
211 template<
typename FailureReasonsT = Aws::String>
212 Agent&
AddFailureReasons(FailureReasonsT&& value) { m_failureReasonsHasBeenSet =
true; m_failureReasons.emplace_back(std::forward<FailureReasonsT>(value));
return *
this; }
221 template<
typename FoundationModelT = Aws::String>
222 void SetFoundationModel(FoundationModelT&& value) { m_foundationModelHasBeenSet =
true; m_foundationModel = std::forward<FoundationModelT>(value); }
223 template<
typename FoundationModelT = Aws::String>
233 template<
typename GuardrailConfigurationT = GuardrailConfiguration>
234 void SetGuardrailConfiguration(GuardrailConfigurationT&& value) { m_guardrailConfigurationHasBeenSet =
true; m_guardrailConfiguration = std::forward<GuardrailConfigurationT>(value); }
235 template<
typename GuardrailConfigurationT = GuardrailConfiguration>
260 template<
typename InstructionT = Aws::String>
261 void SetInstruction(InstructionT&& value) { m_instructionHasBeenSet =
true; m_instruction = std::forward<InstructionT>(value); }
262 template<
typename InstructionT = Aws::String>
272 template<
typename MemoryConfigurationT = MemoryConfiguration>
273 void SetMemoryConfiguration(MemoryConfigurationT&& value) { m_memoryConfigurationHasBeenSet =
true; m_memoryConfiguration = std::forward<MemoryConfigurationT>(value); }
274 template<
typename MemoryConfigurationT = MemoryConfiguration>
294 template<
typename PreparedAtT = Aws::Utils::DateTime>
295 void SetPreparedAt(PreparedAtT&& value) { m_preparedAtHasBeenSet =
true; m_preparedAt = std::forward<PreparedAtT>(value); }
296 template<
typename PreparedAtT = Aws::Utils::DateTime>
309 template<
typename PromptOverr
ideConfigurationT = PromptOverr
ideConfiguration>
310 void SetPromptOverrideConfiguration(PromptOverrideConfigurationT&& value) { m_promptOverrideConfigurationHasBeenSet =
true; m_promptOverrideConfiguration = std::forward<PromptOverrideConfigurationT>(value); }
311 template<
typename PromptOverr
ideConfigurationT = PromptOverr
ideConfiguration>
322 template<
typename RecommendedActionsT = Aws::Vector<Aws::String>>
323 void SetRecommendedActions(RecommendedActionsT&& value) { m_recommendedActionsHasBeenSet =
true; m_recommendedActions = std::forward<RecommendedActionsT>(value); }
324 template<
typename RecommendedActionsT = Aws::Vector<Aws::String>>
326 template<
typename RecommendedActionsT = Aws::String>
327 Agent&
AddRecommendedActions(RecommendedActionsT&& value) { m_recommendedActionsHasBeenSet =
true; m_recommendedActions.emplace_back(std::forward<RecommendedActionsT>(value));
return *
this; }
336 template<
typename UpdatedAtT = Aws::Utils::DateTime>
337 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet =
true; m_updatedAt = std::forward<UpdatedAtT>(value); }
338 template<
typename UpdatedAtT = Aws::Utils::DateTime>
344 bool m_agentArnHasBeenSet =
false;
347 bool m_agentCollaborationHasBeenSet =
false;
350 bool m_agentIdHasBeenSet =
false;
353 bool m_agentNameHasBeenSet =
false;
356 bool m_agentResourceRoleArnHasBeenSet =
false;
359 bool m_agentStatusHasBeenSet =
false;
362 bool m_agentVersionHasBeenSet =
false;
365 bool m_clientTokenHasBeenSet =
false;
368 bool m_createdAtHasBeenSet =
false;
370 CustomOrchestration m_customOrchestration;
371 bool m_customOrchestrationHasBeenSet =
false;
374 bool m_customerEncryptionKeyArnHasBeenSet =
false;
377 bool m_descriptionHasBeenSet =
false;
380 bool m_failureReasonsHasBeenSet =
false;
383 bool m_foundationModelHasBeenSet =
false;
385 GuardrailConfiguration m_guardrailConfiguration;
386 bool m_guardrailConfigurationHasBeenSet =
false;
388 int m_idleSessionTTLInSeconds{0};
389 bool m_idleSessionTTLInSecondsHasBeenSet =
false;
392 bool m_instructionHasBeenSet =
false;
394 MemoryConfiguration m_memoryConfiguration;
395 bool m_memoryConfigurationHasBeenSet =
false;
398 bool m_orchestrationTypeHasBeenSet =
false;
401 bool m_preparedAtHasBeenSet =
false;
403 PromptOverrideConfiguration m_promptOverrideConfiguration;
404 bool m_promptOverrideConfigurationHasBeenSet =
false;
407 bool m_recommendedActionsHasBeenSet =
false;
410 bool m_updatedAtHasBeenSet =
false;
bool CustomerEncryptionKeyArnHasBeenSet() const
const GuardrailConfiguration & GetGuardrailConfiguration() const
const PromptOverrideConfiguration & GetPromptOverrideConfiguration() const
void SetIdleSessionTTLInSeconds(int value)
bool FoundationModelHasBeenSet() const
bool AgentIdHasBeenSet() const
bool OrchestrationTypeHasBeenSet() const
Agent & WithInstruction(InstructionT &&value)
Agent & AddFailureReasons(FailureReasonsT &&value)
Agent & WithAgentArn(AgentArnT &&value)
Agent & WithFoundationModel(FoundationModelT &&value)
const Aws::Utils::DateTime & GetPreparedAt() const
Agent & WithAgentCollaboration(AgentCollaboration value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENT_API Agent()=default
OrchestrationType GetOrchestrationType() const
void SetMemoryConfiguration(MemoryConfigurationT &&value)
Agent & WithCreatedAt(CreatedAtT &&value)
bool FailureReasonsHasBeenSet() const
void SetAgentVersion(AgentVersionT &&value)
Agent & WithIdleSessionTTLInSeconds(int value)
bool DescriptionHasBeenSet() const
bool AgentCollaborationHasBeenSet() const
int GetIdleSessionTTLInSeconds() const
bool AgentStatusHasBeenSet() const
void SetRecommendedActions(RecommendedActionsT &&value)
bool AgentNameHasBeenSet() const
Agent & WithRecommendedActions(RecommendedActionsT &&value)
const MemoryConfiguration & GetMemoryConfiguration() const
Agent & WithAgentStatus(AgentStatus value)
Agent & WithClientToken(ClientTokenT &&value)
bool AgentResourceRoleArnHasBeenSet() const
void SetFailureReasons(FailureReasonsT &&value)
const Aws::String & GetClientToken() const
Agent & WithDescription(DescriptionT &&value)
Agent & WithOrchestrationType(OrchestrationType value)
const Aws::String & GetAgentArn() const
void SetCustomOrchestration(CustomOrchestrationT &&value)
void SetDescription(DescriptionT &&value)
bool PreparedAtHasBeenSet() const
void SetUpdatedAt(UpdatedAtT &&value)
const Aws::String & GetInstruction() const
bool PromptOverrideConfigurationHasBeenSet() const
const Aws::String & GetAgentName() const
Agent & WithAgentName(AgentNameT &&value)
AWS_BEDROCKAGENT_API Agent & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAgentName(AgentNameT &&value)
Agent & WithAgentVersion(AgentVersionT &&value)
bool RecommendedActionsHasBeenSet() const
bool ClientTokenHasBeenSet() const
void SetGuardrailConfiguration(GuardrailConfigurationT &&value)
bool UpdatedAtHasBeenSet() const
void SetAgentArn(AgentArnT &&value)
Agent & WithAgentId(AgentIdT &&value)
Agent & WithMemoryConfiguration(MemoryConfigurationT &&value)
void SetOrchestrationType(OrchestrationType value)
void SetCreatedAt(CreatedAtT &&value)
Agent & WithPreparedAt(PreparedAtT &&value)
const Aws::String & GetDescription() const
void SetCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT &&value)
Agent & WithGuardrailConfiguration(GuardrailConfigurationT &&value)
void SetPreparedAt(PreparedAtT &&value)
Agent & WithCustomOrchestration(CustomOrchestrationT &&value)
bool GuardrailConfigurationHasBeenSet() const
AgentCollaboration GetAgentCollaboration() const
Agent & WithAgentResourceRoleArn(AgentResourceRoleArnT &&value)
void SetAgentCollaboration(AgentCollaboration value)
const CustomOrchestration & GetCustomOrchestration() const
void SetClientToken(ClientTokenT &&value)
bool MemoryConfigurationHasBeenSet() const
void SetAgentStatus(AgentStatus value)
AgentStatus GetAgentStatus() const
const Aws::String & GetAgentVersion() const
AWS_BEDROCKAGENT_API Agent(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAgentResourceRoleArn() const
Agent & WithUpdatedAt(UpdatedAtT &&value)
bool CreatedAtHasBeenSet() const
const Aws::Utils::DateTime & GetUpdatedAt() const
bool AgentVersionHasBeenSet() const
bool AgentArnHasBeenSet() const
Agent & WithFailureReasons(FailureReasonsT &&value)
const Aws::Vector< Aws::String > & GetFailureReasons() const
const Aws::String & GetFoundationModel() const
const Aws::Vector< Aws::String > & GetRecommendedActions() const
void SetFoundationModel(FoundationModelT &&value)
Agent & AddRecommendedActions(RecommendedActionsT &&value)
bool InstructionHasBeenSet() const
const Aws::Utils::DateTime & GetCreatedAt() const
Agent & WithCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT &&value)
Agent & WithPromptOverrideConfiguration(PromptOverrideConfigurationT &&value)
void SetPromptOverrideConfiguration(PromptOverrideConfigurationT &&value)
void SetInstruction(InstructionT &&value)
void SetAgentResourceRoleArn(AgentResourceRoleArnT &&value)
void SetAgentId(AgentIdT &&value)
const Aws::String & GetCustomerEncryptionKeyArn() const
bool CustomOrchestrationHasBeenSet() const
bool IdleSessionTTLInSecondsHasBeenSet() const
const Aws::String & GetAgentId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue