Skip to content

RetrievalInstructionContent

Source code in docs_src/capo_bedrock_agent/types/retrieval_instruction_content.py
class RetrievalInstructionContent(TypedDict, closed=True):
    retrieval_guidance: NotRequired[
        "capo_bedrock_agent.types.retrieval_instruction_field_text.RetrievalInstructionFieldText"
    ]
    """<p>How to interpret and decompose the question, and what to prioritise when searching.</p>"""
    persona: NotRequired[
        "capo_bedrock_agent.types.retrieval_instruction_field_text.RetrievalInstructionFieldText"
    ]
    """<p>Who the assistant is: identity, tone and language.</p>"""
    answer_format: NotRequired[
        "capo_bedrock_agent.types.retrieval_instruction_field_text.RetrievalInstructionFieldText"
    ]
    """<p>How the answer is structured, including how sources are cited.</p>"""
    answer_policy: NotRequired[
        "capo_bedrock_agent.types.retrieval_instruction_field_text.RetrievalInstructionFieldText"
    ]
    """<p>Whether and how to answer: how strongly an answer must be supported, and what to do with questions outside scope.</p>"""

answer_format instance-attribute

answer_format: NotRequired[RetrievalInstructionFieldText]

How the answer is structured, including how sources are cited.

answer_policy instance-attribute

answer_policy: NotRequired[RetrievalInstructionFieldText]

Whether and how to answer: how strongly an answer must be supported, and what to do with questions outside scope.

persona instance-attribute

persona: NotRequired[RetrievalInstructionFieldText]

Who the assistant is: identity, tone and language.

retrieval_guidance instance-attribute

retrieval_guidance: NotRequired[RetrievalInstructionFieldText]

How to interpret and decompose the question, and what to prioritise when searching.