

# KnowledgeBasePromptTemplate
<a name="API_agent_KnowledgeBasePromptTemplate"></a>

Defines a custom prompt template for orchestrating the retrieval and generation process.

## Contents
<a name="API_agent_KnowledgeBasePromptTemplate_Contents"></a>

 ** textPromptTemplate **   <a name="bedrock-Type-agent_KnowledgeBasePromptTemplate-textPromptTemplate"></a>
The text of the prompt template.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 100000.  
Required: No

## See Also
<a name="API_agent_KnowledgeBasePromptTemplate_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/bedrock-agent-2023-06-05/KnowledgeBasePromptTemplate) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/bedrock-agent-2023-06-05/KnowledgeBasePromptTemplate) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/bedrock-agent-2023-06-05/KnowledgeBasePromptTemplate) 