Interface CfnAgentProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAgentProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.112.0 (build de1bc80)",
date="2025-05-15T23:28:58.686Z")
@Stability(Stable)
public interface CfnAgentProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
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 class
A builder forCfnAgentProps
static final class
An implementation forCfnAgentProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic CfnAgentProps.Builder
builder()
default Object
The action groups that belong to an agent.default String
The agent's collaboration settings.default Object
List of Agent Collaborators.The name of the agent.default String
The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent.default Object
Specifies whether to automatically update theDRAFT
version of the agent after making changes to the agent.default String
The Amazon Resource Name (ARN) of the AWS KMS key that encrypts the agent.default Object
Contains custom orchestration configurations for the agent.default String
The description of the agent.default String
The foundation model used for orchestration by the agent.default Object
Details about the guardrail associated with the agent.default Number
The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the agent.default String
Instructions that tell the agent what it should do and how it should interact with users.default Object
The knowledge bases associated with the agent.default Object
Contains memory configuration for the agent.default String
Specifies the orchestration strategy for the agent.default Object
Contains configurations to override prompt templates in different parts of an agent sequence.default Object
Specifies 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 Object
Metadata that you can assign to a resource as key-value pairs.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAgentName
-
getActionGroups
The action groups that belong to an agent.- See Also:
-
getAgentCollaboration
The agent's collaboration settings.- See Also:
-
getAgentCollaborators
List of Agent Collaborators.- 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 theDRAFT
version of the agent after making changes to the agent.The
DRAFT
version can be continually iterated upon during internal development. By default, this value isfalse
.Default: - 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.- 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.- 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.- See Also:
-
getMemoryConfiguration
Contains memory configuration for the agent.- 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 .
- See Also:
-
getSkipResourceInUseCheckOnDelete
Specifies whether to delete the resource even if it's in use.By default, this value is
false
.Default: - 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:.- See Also:
-
builder
- Returns:
- a
CfnAgentProps.Builder
ofCfnAgentProps
-