Skip to content

Commit 05e69da

Browse files
author
awstools
committed
feat(client-bedrock-agent-runtime): This release adds support to customize prompts sent through the RetrieveAndGenerate API in Agents for Amazon Bedrock.
1 parent 5f6803a commit 05e69da

File tree

4 files changed

+363
-48
lines changed

4 files changed

+363
-48
lines changed

clients/client-bedrock-agent-runtime/src/commands/RetrieveAndGenerateCommand.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ export interface RetrieveAndGenerateCommandOutput extends RetrieveAndGenerateRes
3737

3838
/**
3939
* <p>Queries a knowledge base and generates responses based on the retrieved results. The response cites up to five sources but only selects the ones that are relevant to the query.</p>
40-
* <note>
41-
* <p>The <code>numberOfResults</code> field is currently unsupported for <code>RetrieveAndGenerate</code>. Don't include it in the <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_KnowledgeBaseVectorSearchConfiguration.html">vectorSearchConfiguration</a> object.</p>
42-
* </note>
4340
* @example
4441
* Use a bare-bones client and the command you need to make an API call.
4542
* ```javascript
@@ -62,6 +59,11 @@ export interface RetrieveAndGenerateCommandOutput extends RetrieveAndGenerateRes
6259
* overrideSearchType: "HYBRID" || "SEMANTIC",
6360
* },
6461
* },
62+
* generationConfiguration: { // GenerationConfiguration
63+
* promptTemplate: { // PromptTemplate
64+
* textPromptTemplate: "STRING_VALUE",
65+
* },
66+
* },
6567
* },
6668
* },
6769
* sessionConfiguration: { // RetrieveAndGenerateSessionConfiguration

0 commit comments

Comments
 (0)