@cdklabs/generative-ai-cdk-constructs • Docs
@cdklabs/generative-ai-cdk-constructs / bedrock / AgentProps
Properties for a Bedrock Agent.
readonly
optional
actionGroups:AgentActionGroup
[]
AgentActionGroup to make available to the agent.
- No AgentActionGroup is used.
readonly
optional
aliasName:string
Name of the alias for the agent.
- No alias is created.
readonly
optional
description:string
A description of the agent.
- No description is provided.
readonly
optional
enableUserInput:boolean
Select whether the agent can prompt additional information from the user when it does not have enough information to respond to an utterance
- False
readonly
optional
encryptionKey:IKey
KMS encryption key to use for the agent.
- An AWS managed key is used.
readonly
optional
existingRole:Role
The existing IAM Role for the agent with a trust policy that allows the Bedrock service to assume the role.
readonly
foundationModel:IInvokable
The Bedrock text foundation model for the agent to use.
readonly
optional
guardrailConfiguration:GuardrailConfiguration
Guardrail configuration
Warning: If you provide a guardrail configuration through the constructor, you will need to provide the correct permissions for your agent to access the guardrails. If you want the permissions to be configured on your behalf, use the addGuardrail method.
- No guardrails associated to the agent.
readonly
optional
idleSessionTTL:Duration
How long sessions should be kept open for the agent.
- 1 hour
readonly
instruction:string
A narrative instruction to provide the agent as context.
readonly
optional
knowledgeBases:KnowledgeBase
[]
Knowledge Bases to make available to the agent.
- No knowledge base is used.
readonly
optional
name:string
The name of the agent.
- A name is automatically generated.
readonly
optional
promptOverrideConfiguration:PromptOverrideConfiguration
Overrides for the agent.
- No overrides are provided.
readonly
optional
shouldPrepareAgent:boolean
Whether to prepare the agent for use.
- false
readonly
optional
tags:Record
<string
,string
>
OPTIONAL: Tag (KEY-VALUE) bedrock agent resource
- false