Skip to content

feat(bedrockprompt): add prompt management to bedrock agents #34754

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

dineshSajwan
Copy link
Contributor

Issue # (if applicable)

Closes #.

Reason for this change

This change adds comprehensive support for Amazon Bedrock Prompt Management to the aws-bedrock-alpha package.

Description of changes

Amazon Bedrock Prompt Management allows users to create, save, and version prompts to streamline AI workflows and ensure consistent prompt usage across different applications.

Prompt Construct : Main construct for creating and managing Bedrock prompts with support for multiple variants.

Prompt Variants: Three types of prompt variants:
TextPromptVariant: Simple text-based prompts with variable substitution
ChatPromptVariant: Conversational prompts supporting system messages, message history, and tool configurations
AgentPromptVariant: Prompts designed for integration with Bedrock Agents

Prompt Versioning : PromptVersion construct for creating immutable snapshots of prompts

Tool Configuration : Support for tool choice and tool specifications in chat prompts

Prompt Routing : Integration with Amazon Bedrock intelligent prompt routing for cost optimization

Describe any new or updated permissions being added

bedrock:GetPrompt - Required to retrieve prompt details (granted via grantGet() method)

Description of how you validated changes

Added Unit test and Integration test.

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@github-actions github-actions bot added beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK p2 labels Jun 18, 2025
@aws-cdk-automation aws-cdk-automation requested a review from a team June 18, 2025 17:40
@dineshSajwan dineshSajwan marked this pull request as ready for review June 18, 2025 20:41
@krokoko krokoko mentioned this pull request Jun 19, 2025
2 tasks
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: c91d58d
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@aws-cdk-automation
Copy link
Collaborator

This PR cannot be merged because it has conflicts. Please resolve them. The PR will be considered stale and closed if it remains in an unmergeable state.

@alvazjor alvazjor self-assigned this Jun 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK p2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants