Interface CfnAgentProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAgentProps.Jsii$Proxy
CfnAgent.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrock.*;
Object additionalModelRequestFields;
CfnAgentProps cfnAgentProps = CfnAgentProps.builder()
.agentName("agentName")
// the properties below are optional
.actionGroups(List.of(AgentActionGroupProperty.builder()
.actionGroupName("actionGroupName")
// the properties below are optional
.actionGroupExecutor(ActionGroupExecutorProperty.builder()
.customControl("customControl")
.lambda("lambda")
.build())
.actionGroupState("actionGroupState")
.apiSchema(APISchemaProperty.builder()
.payload("payload")
.s3(S3IdentifierProperty.builder()
.s3BucketName("s3BucketName")
.s3ObjectKey("s3ObjectKey")
.build())
.build())
.description("description")
.functionSchema(FunctionSchemaProperty.builder()
.functions(List.of(FunctionProperty.builder()
.name("name")
// the properties below are optional
.description("description")
.parameters(Map.of(
"parametersKey", ParameterDetailProperty.builder()
.type("type")
// the properties below are optional
.description("description")
.required(false)
.build()))
.requireConfirmation("requireConfirmation")
.build()))
.build())
.parentActionGroupSignature("parentActionGroupSignature")
.skipResourceInUseCheckOnDelete(false)
.build()))
.agentCollaboration("agentCollaboration")
.agentCollaborators(List.of(AgentCollaboratorProperty.builder()
.agentDescriptor(AgentDescriptorProperty.builder()
.aliasArn("aliasArn")
.build())
.collaborationInstruction("collaborationInstruction")
.collaboratorName("collaboratorName")
// the properties below are optional
.relayConversationHistory("relayConversationHistory")
.build()))
.agentResourceRoleArn("agentResourceRoleArn")
.autoPrepare(false)
.customerEncryptionKeyArn("customerEncryptionKeyArn")
.customOrchestration(CustomOrchestrationProperty.builder()
.executor(OrchestrationExecutorProperty.builder()
.lambda("lambda")
.build())
.build())
.description("description")
.foundationModel("foundationModel")
.guardrailConfiguration(GuardrailConfigurationProperty.builder()
.guardrailIdentifier("guardrailIdentifier")
.guardrailVersion("guardrailVersion")
.build())
.idleSessionTtlInSeconds(123)
.instruction("instruction")
.knowledgeBases(List.of(AgentKnowledgeBaseProperty.builder()
.description("description")
.knowledgeBaseId("knowledgeBaseId")
// the properties below are optional
.knowledgeBaseState("knowledgeBaseState")
.build()))
.memoryConfiguration(MemoryConfigurationProperty.builder()
.enabledMemoryTypes(List.of("enabledMemoryTypes"))
.sessionSummaryConfiguration(SessionSummaryConfigurationProperty.builder()
.maxRecentSessions(123)
.build())
.storageDays(123)
.build())
.orchestrationType("orchestrationType")
.promptOverrideConfiguration(PromptOverrideConfigurationProperty.builder()
.promptConfigurations(List.of(PromptConfigurationProperty.builder()
.additionalModelRequestFields(additionalModelRequestFields)
.basePromptTemplate("basePromptTemplate")
.foundationModel("foundationModel")
.inferenceConfiguration(InferenceConfigurationProperty.builder()
.maximumLength(123)
.stopSequences(List.of("stopSequences"))
.temperature(123)
.topK(123)
.topP(123)
.build())
.parserMode("parserMode")
.promptCreationMode("promptCreationMode")
.promptState("promptState")
.promptType("promptType")
.build()))
// the properties below are optional
.overrideLambda("overrideLambda")
.build())
.skipResourceInUseCheckOnDelete(false)
.tags(Map.of(
"tagsKey", "tags"))
.testAliasTags(Map.of(
"testAliasTagsKey", "testAliasTags"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnAgentPropsstatic final classAn implementation forCfnAgentProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnAgentProps.Builderbuilder()default ObjectThe action groups that belong to an agent.default StringThe agent's collaboration settings.default ObjectList of Agent Collaborators.The name of the agent.default StringThe Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent.default ObjectSpecifies whether to automatically update theDRAFTversion of the agent after making changes to the agent.default StringThe Amazon Resource Name (ARN) of the AWS KMS key that encrypts the agent.default ObjectContains custom orchestration configurations for the agent.default StringThe description of the agent.default StringThe foundation model used for orchestration by the agent.default ObjectDetails about the guardrail associated with the agent.default NumberThe number of seconds for which Amazon Bedrock keeps information about a user's conversation with the agent.default StringInstructions that tell the agent what it should do and how it should interact with users.default ObjectThe knowledge bases associated with the agent.default ObjectContains memory configuration for the agent.default StringSpecifies the orchestration strategy for the agent.default ObjectContains configurations to override prompt templates in different parts of an agent sequence.default ObjectSpecifies whether to delete the resource even if it's in use.getTags()Metadata that you can assign to a resource as key-value pairs.default ObjectMetadata that you can assign to a resource as key-value pairs.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAgentName
The name of the agent.- See Also:
-
getActionGroups
The action groups that belong to an agent.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnAgent.AgentActionGroupProperty>- See Also:
-
getAgentCollaboration
The agent's collaboration settings.- See Also:
-
getAgentCollaborators
List of Agent Collaborators.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnAgent.AgentCollaboratorProperty>- See Also:
-
getAgentResourceRoleArn
The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent.- See Also:
-
getAutoPrepare
Specifies whether to automatically update theDRAFTversion of the agent after making changes to the agent.The
DRAFTversion can be continually iterated upon during internal development. By default, this value isfalse.Returns union: either
BooleanorIResolvableDefault: - false
- See Also:
-
getCustomerEncryptionKeyArn
The Amazon Resource Name (ARN) of the AWS KMS key that encrypts the agent.- See Also:
-
getCustomOrchestration
Contains custom orchestration configurations for the agent.Returns union: either
IResolvableorCfnAgent.CustomOrchestrationProperty- See Also:
-
getDescription
The description of the agent.- See Also:
-
getFoundationModel
The foundation model used for orchestration by the agent.- See Also:
-
getGuardrailConfiguration
Details about the guardrail associated with the agent.Returns union: either
IResolvableorCfnAgent.GuardrailConfigurationProperty- See Also:
-
getIdleSessionTtlInSeconds
The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the agent.A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout.
- See Also:
-
getInstruction
Instructions that tell the agent what it should do and how it should interact with users.- See Also:
-
getKnowledgeBases
The knowledge bases associated with the agent.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnAgent.AgentKnowledgeBaseProperty>- See Also:
-
getMemoryConfiguration
Contains memory configuration for the agent.Returns union: either
IResolvableorCfnAgent.MemoryConfigurationProperty- See Also:
-
getOrchestrationType
Specifies the orchestration strategy for the agent.- See Also:
-
getPromptOverrideConfiguration
Contains configurations to override prompt templates in different parts of an agent sequence.For more information, see Advanced prompts .
Returns union: either
IResolvableorCfnAgent.PromptOverrideConfigurationProperty- See Also:
-
getSkipResourceInUseCheckOnDelete
Specifies whether to delete the resource even if it's in use.By default, this value is
false.Returns union: either
BooleanorIResolvableDefault: - false
- See Also:
-
getTags
Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:.- See Also:
-
getTestAliasTags
Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:.Returns union: either Mapinvalid input: '<'String,
String> orIResolvable- See Also:
-
builder
- Returns:
- a
CfnAgentProps.BuilderofCfnAgentProps
-