@cdklabs/generative-ai-cdk-constructs
@cdklabs/generative-ai-cdk-constructs / bedrock / AgentProps
Properties for creating a CDK managed Bedrock Agent.
readonlyoptionalactionGroups:AgentActionGroup[]
The Action Groups associated with the agent.
readonlyoptionalagentCollaboration:AgentCollaboratorType
The collaboration type for the agent.
- No collaboration (AgentCollaboratorType.DISABLED).
readonlyoptionalagentCollaborators:AgentCollaborator[]
Collaborators that this agent will work with.
- No collaborators.
readonlyoptionalcodeInterpreterEnabled:boolean
Select whether the agent can generate, run, and troubleshoot code when trying to complete a task
- false
readonlyoptionalcustomOrchestration:CustomOrchestration
Details of custom orchestration for the agent.
- Standard orchestration.
readonlyoptionaldescription:string
A description of the agent.
- No description is provided.
readonlyoptionalexistingRole:IRole
The existing IAM Role for the agent to use. Ensure the role has a trust policy that allows the Bedrock service to assume the role.
- A new role is created for you.
readonlyoptionalforceDelete:boolean
Whether to delete the resource even if it’s in use.
- true
readonlyfoundationModel:IInvokable
The foundation model used for orchestration by the agent.
readonlyoptionalguardrail:IGuardrail
The guardrail that will be associated with the agent.
readonlyoptionalidleSessionTTL:Duration
How long sessions should be kept open for the agent. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout.
- 1 hour
readonlyinstruction:string
The instruction used by the agent. This determines how the agent will perform his task. This instruction must have a minimum of 40 characters.
readonlyoptionalkmsKey:IKey
The KMS key of the agent if custom encryption is configured.
- An AWS managed key is used.
readonlyoptionalknowledgeBases:IKnowledgeBase[]
The KnowledgeBases associated with the agent.
readonlyoptionalmemory:Memory
The type and configuration of the memory to maintain context across multiple sessions and recall past interactions. This can be useful for maintaining continuity in multi-turn conversations and recalling user preferences or past interactions.
https://docs.aws.amazon.com/bedrock/latest/userguide/agents-memory.html
- No memory will be used. Agents will retain context from the current session only.
readonlyoptionalname:string
The name of the agent.
- A name is generated by CDK.
readonlyoptionalorchestrationType:OrchestrationType
The type of orchestration to use for the agent.
- STANDARD
readonlyoptionalpromptOverrideConfiguration:PromptOverrideConfiguration
Overrides some prompt templates in different parts of an agent sequence configuration.
- No overrides are provided.
readonlyoptionalshouldPrepareAgent:boolean
Specifies whether to automatically update the DRAFT version of the agent after
making changes to the agent. The DRAFT version can be continually iterated
upon during internal development.
- false
readonlyoptionaluserInputEnabled: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