Skip to content

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

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
@alvazjor alvazjor self-requested a review June 25, 2025 15:32
Copy link
Contributor

@alvazjor alvazjor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dineshSajwan Added initial comments. Not fully done reviewing the full PR but in the mean time, you can start addressing what I already added. Thanks!

@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.

2 similar comments
@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.

@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.

@mergify mergify bot dismissed alvazjor’s stale review June 30, 2025 19:33

Pull request has been modified.

@aws-cdk-automation aws-cdk-automation added the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label Jul 2, 2025
@alvazjor alvazjor added contribution/core This is a PR that came from AWS. and removed pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. labels Jul 10, 2025
/**
* The tools available to the model.
*/
readonly tools: CfnPrompt.ToolProperty[];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also missed this L1 still being exposed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad , added the abstraction for L2. 45ae2e7

@mergify
Copy link
Contributor

mergify bot commented Jul 17, 2025

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

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

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

@mergify
Copy link
Contributor

mergify bot commented Jul 17, 2025

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit c0d27ee into aws:main Jul 17, 2025
18 checks passed
@github-actions
Copy link
Contributor

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 17, 2025
@dineshSajwan dineshSajwan deleted the bedrock_prompts branch September 26, 2025 17:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK contribution/core This is a PR that came from AWS. p2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants