Skip to content

RetrievalInstructionFailureReason

Source code in docs_src/capo_bedrock_agent/types/retrieval_instruction_failure_reason.py
class RetrievalInstructionFailureReason(TypedDict, closed=True):
    field_name: NotRequired[
        "capo_bedrock_agent.types.retrieval_instruction_field_name.RetrievalInstructionFieldName"
    ]
    """<p>The instruction field this entry is about. Present on review rejections of a specific field; absent when the failure applies to the whole review, because a client-side execution failure or a service fault has no single field.</p>"""
    code: "capo_bedrock_agent.types.retrieval_instruction_failure_reason_code.RetrievalInstructionFailureReasonCode"
    """<p>Stable, machine-readable classification by fault attribution. Valid values:</p> <ul> <li> <p>CONTENT_REJECTED – The review rejected the named field's content; revise the text and resubmit.</p> </li> <li> <p>CLIENT_ERROR – The review could not run for a customer-side reason, for example the customer managed AWS KMS key could not be used; fix the configuration and resubmit.</p> </li> <li> <p>INTERNAL_ERROR – The review could not complete due to a service fault; retry the create or update.</p> </li> </ul> <p>New values may be added over time; your client should tolerate values it does not recognize and treat them as a failure.</p>"""
    message: "str"
    """<p>Human-readable explanation of the specific cause. Never contains the customer's own text.</p>"""

code instance-attribute

Stable, machine-readable classification by fault attribution. Valid values:

  • CONTENT_REJECTED – The review rejected the named field's content; revise the text and resubmit.

  • CLIENT_ERROR – The review could not run for a customer-side reason, for example the customer managed AWS KMS key could not be used; fix the configuration and resubmit.

  • INTERNAL_ERROR – The review could not complete due to a service fault; retry the create or update.

New values may be added over time; your client should tolerate values it does not recognize and treat them as a failure.

field_name instance-attribute

field_name: NotRequired[RetrievalInstructionFieldName]

The instruction field this entry is about. Present on review rejections of a specific field; absent when the failure applies to the whole review, because a client-side execution failure or a service fault has no single field.

message instance-attribute

message: str

Human-readable explanation of the specific cause. Never contains the customer's own text.