View information about prompts using Prompt management
To learn how to view information about prompts using Prompt management, choose the tab for your preferred method, and then follow the steps:
- Console
-
To view information about a prompt
-
Sign in to the AWS Management Console using an IAM role with Amazon Bedrock permissions, and open the Amazon Bedrock console at Getting Started with the AWS Management Console.
-
Select Prompt management from the left navigation pane. Then, choose a prompt in the Prompts section.
-
The Prompt details page includes the following sections:
-
Overview – Contains general information about the prompt and when it was created and last updated.
-
Prompt draft – Contains the prompt message and configurations for the latest saved draft version of the prompt.
-
Prompt versions – A list of all versions of the prompt that have been created. For more information about prompt versions, see Deploy a prompt to your application using versions in Prompt management.
-
-
- API
-
To get information about a prompt, send a GetPrompt request with an Agents for Amazon Bedrock build-time endpoint and specify the ARN or ID of the prompt as the
promptIdentifier
. To get information about a specific version of the prompt, specifyDRAFT
or the version number in thepromptVersion
field.To list information about your agents, send a ListPrompts request with an Agents for Amazon Bedrock build-time endpoint. You can specify the following optional parameters:
Field Short description maxResults The maximum number of results to return in a response. nextToken If there are more results than the number you specified in the maxResults
field, the response returns anextToken
value. To see the next batch of results, send thenextToken
value in another request.