Skip to content

PromptTemplate

Source code in docs_src/capo_bedrock_agent_runtime/types/prompt_template.py
class PromptTemplate(TypedDict, closed=True):
    text_prompt_template: NotRequired[
        "capo_bedrock_agent_runtime.types.text_prompt_template.TextPromptTemplate"
    ]
    """<p>The template for the prompt that's sent to the model for response generation. You can include prompt placeholders, which become replaced before the prompt is sent to the model to provide instructions and context to the model. In addition, you can include XML tags to delineate meaningful sections of the prompt template.</p> <p>For more information, see the following resources:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html#kb-test-config-sysprompt">Knowledge base prompt templates</a> </p> </li> <li> <p> <a href="https://docs.claude.com/en/docs/build-with-claude/prompt-engineering/use-xml-tags">Use XML tags with Anthropic Claude models</a> </p> </li> </ul>"""

text_prompt_template instance-attribute

text_prompt_template: NotRequired[TextPromptTemplate]

The template for the prompt that's sent to the model for response generation. You can include prompt placeholders, which become replaced before the prompt is sent to the model to provide instructions and context to the model. In addition, you can include XML tags to delineate meaningful sections of the prompt template.

For more information, see the following resources: