GET

/v1/schemas/amazon-bedrock/chat/model/{modelId}/converse-stream?kind=output

kind outputactivity chathash 4a1376c7…extracted Nov 10, 2026version currentsource upstream spec ↗
fieldrecorded source
schemaSource linked above.

generated

Source trace
618bf3a6f4cb6e4987a01bd8ea2ce1f070e854991c750c67babf03520315dead
{
  "fetchedAt": 1794288032,
  "extractorVersion": "2",
  "verifiedAt": null
}

Response body

11 properties · 0 required · 176 $defs
propertytypedescriptionconstraints
messageStartMessageStartEventMessage start information.
contentBlockStartContentBlockStartEventStart information for a content block.
contentBlockDeltaContentBlockDeltaEventThe messages output content block delta.
contentBlockStopContentBlockStopEventStop information for a content block.
messageStopMessageStopEventMessage stop information.
metadataConverseStreamMetadataEventMetadata for the converse output stream.
internalServerExceptionInternalServerExceptionAn internal server error occurred. Retry your request.
modelStreamErrorExceptionModelStreamErrorExceptionA streaming error occurred. Retry your request.
validationExceptionValidationExceptionThe input fails to satisfy the constraints specified by Amazon Bedrock . For troubleshooting this error, see ValidationError in the Amazon Bedrock User Guide.
throttlingExceptionThrottlingExceptionYour request was denied due to exceeding the account quotas for Amazon Bedrock . For troubleshooting this error, see ThrottlingException in the Amazon Bedrock User Guide.
serviceUnavailableExceptionServiceUnavailableExceptionThe service isn't currently available. For troubleshooting this error, see ServiceUnavailable in the Amazon Bedrock User Guide

Types

176 $defs

AccountIdstring

AppliedGuardrailDetailsobject

Details about the specific guardrail that was applied during this assessment, including its identifier, version, ARN, origin, and ownership information.

guardrailIdstringThe unique ID of the guardrail that was applied.length ≥ 0 · length ≤ 2048
guardrailVersionstringThe version of the guardrail that was applied.
guardrailArnstringThe ARN of the guardrail that was applied.length ≥ 0 · length ≤ 2048
guardrailOriginGuardrailOrigin[]The origin of how the guardrail was applied. This can be either requested at the API level or enforced at the account or organization level as a default guardrail.
guardrailOwnershipenumThe ownership type of the guardrail, indicating whether it is owned by the requesting account or is a cross-account guardrail shared from another AWS account.SELF | CROSS_ACCOUNT

AutomatedReasoningRuleIdentifierstring

length ≥ 0 · length ≤ 12

Blobstring

Booleanboolean

CacheDetailobject

Cache creation metrics for a specific TTL duration

ttl*enumTTL duration for these cached tokens5m | 1h
inputTokens*integerNumber of tokens written to cache with this TTL (cache creation tokens)n ≥ 0

CacheDetailInputTokensIntegerinteger

n ≥ 0

CacheDetailsListCacheDetail[]

List of cache details by TTL

ttl*enumTTL duration for these cached tokens5m | 1h
inputTokens*integerNumber of tokens written to cache with this TTL (cache creation tokens)n ≥ 0

CacheTTLenum

Time-to-live duration for ephemeral cache entries

5m | 1h

CitationLocationobject

Specifies the precise location within a source document where cited content can be found. This can include character-level positions, page numbers, or document chunks depending on the document type and indexing method.

webWebLocationThe web URL that was cited for this reference.
documentCharDocumentCharLocationThe character-level location within the document where the cited content is found.
documentPageDocumentPageLocationThe page-level location within the document where the cited content is found.
documentChunkDocumentChunkLocationThe chunk-level location within the document where the cited content is found, typically used for documents that have been segmented into logical chunks.
searchResultLocationSearchResultLocationThe search result location where the cited content is found, including the search result index and block positions within the content array.

CitationsDeltaobject

Contains incremental updates to citation information during streaming responses. This allows clients to build up citation data progressively as the response is generated.

titlestringThe title or identifier of the source document being cited.
sourcestringThe source from the original search result that provided the cited content.
sourceContentCitationSourceContentDelta[]The specific content from the source document that was referenced or cited in the generated response.
locationCitationLocationSpecifies the precise location within a source document where cited content can be found. This can include character-level positions, page numbers, or document chunks depending on the document type and indexing method.

CitationSourceContentDeltaobject

Contains incremental updates to the source content text during streaming responses, allowing clients to build up the cited content progressively.

textstringAn incremental update to the text content from the source document that is being cited.

CitationSourceContentListDeltaCitationSourceContentDelta[]

textstringAn incremental update to the text content from the source document that is being cited.

ContentBlockDeltaobject

A block of content in a streaming response.

textstringThe content text.
toolUseToolUseBlockDeltaInformation about a tool that the model is requesting to use.
toolResultToolResultBlockDelta[]An incremental update that contains the results from a tool call.
reasoningContentReasoningContentBlockDeltaContains content regarding the reasoning that is carried out by the model. Reasoning refers to a Chain of Thought (CoT) that the model generates to enhance the accuracy of its final response.
citationCitationsDeltaIncremental citation information that is streamed as part of the response generation process.
imageImageBlockDeltaA streaming delta event containing incremental image data.

ContentBlockDeltaEventobject

The content block delta event.

delta*ContentBlockDeltaThe delta for a content block delta event.
contentBlockIndex*integerThe block index for a content block delta event.n ≥ 0

ContentBlockStartobject

Content block start information.

toolUseToolUseBlockStartInformation about a tool that the model is requesting to use.
toolResultToolResultBlockStartThe
imageImageBlockStartThe initial event indicating the start of a streaming image block.

ContentBlockStartEventobject

Content block start event.

start*ContentBlockStartStart information about a content block start event.
contentBlockIndex*integerThe index for a content block start event.n ≥ 0

ContentBlockStopEventobject

A content block stop event.

contentBlockIndex*integerThe index for a content block.n ≥ 0

ConversationRoleenum

user | assistant | system

ConverseStreamMetadataEventobject

A conversation stream metadata event.

usage*TokenUsageUsage information for the conversation stream event.
metrics*ConverseStreamMetricsThe metrics for the conversation stream metadata event.
traceConverseStreamTraceThe trace object in the response from ConverseStream that contains information about the guardrail behavior.
performanceConfigPerformanceConfigurationModel performance configuration metadata for the conversation stream event.
serviceTierServiceTierSpecifies the processing tier configuration used for serving the request.

ConverseStreamMetricsobject

Metrics for the stream.

latencyMs*integerThe latency for the streaming request, in milliseconds.

ConverseStreamTraceobject

The trace object in a response from ConverseStream .

guardrailGuardrailTraceAssessmentThe guardrail trace object.
promptRouterPromptRouterTraceThe request's prompt router.

Documentany

DocumentCharLocationobject

Specifies a character-level location within a document, providing precise positioning information for cited content using start and end character indices.

documentIndexintegerThe index of the document within the array of documents provided in the request.n ≥ 0
startintegerThe starting character position of the cited content within the document.n ≥ 0
endintegerThe ending character position of the cited content within the document.n ≥ 0

DocumentCharLocationDocumentIndexIntegerinteger

n ≥ 0

DocumentCharLocationEndIntegerinteger

n ≥ 0

DocumentCharLocationStartIntegerinteger

n ≥ 0

DocumentChunkLocationobject

Specifies a chunk-level location within a document, providing positioning information for cited content using logical document segments or chunks.

documentIndexintegerThe index of the document within the array of documents provided in the request.n ≥ 0
startintegerThe starting chunk identifier or index of the cited content within the document.n ≥ 0
endintegerThe ending chunk identifier or index of the cited content within the document.n ≥ 0

DocumentChunkLocationDocumentIndexIntegerinteger

n ≥ 0

DocumentChunkLocationEndIntegerinteger

n ≥ 0

DocumentChunkLocationStartIntegerinteger

n ≥ 0

DocumentPageLocationobject

Specifies a page-level location within a document, providing positioning information for cited content using page numbers.

documentIndexintegerThe index of the document within the array of documents provided in the request.n ≥ 0
startintegerThe starting page number of the cited content within the document.n ≥ 0
endintegerThe ending page number of the cited content within the document.n ≥ 0

DocumentPageLocationDocumentIndexIntegerinteger

n ≥ 0

DocumentPageLocationEndIntegerinteger

n ≥ 0

DocumentPageLocationStartIntegerinteger

n ≥ 0

ErrorBlockobject

A block containing error information when content processing fails.

messagestringA human-readable error message describing what went wrong during content processing.

GuardrailArnstring

length ≥ 0 · length ≤ 2048

GuardrailAssessmentobject

A behavior assessment of the guardrail policies used in a call to the Converse API.

topicPolicyGuardrailTopicPolicyAssessmentThe topic policy.
contentPolicyGuardrailContentPolicyAssessmentThe content policy.
wordPolicyGuardrailWordPolicyAssessmentThe word policy.
sensitiveInformationPolicyGuardrailSensitiveInformationPolicyAssessmentThe sensitive information policy.
contextualGroundingPolicyGuardrailContextualGroundingPolicyAssessmentThe contextual grounding policy used for the guardrail assessment.
automatedReasoningPolicyGuardrailAutomatedReasoningPolicyAssessmentThe automated reasoning policy assessment results, including logical validation findings for the input content.
invocationMetricsGuardrailInvocationMetricsThe invocation metrics for the guardrail assessment.
appliedGuardrailDetailsAppliedGuardrailDetailsDetails about the specific guardrail that was applied during this assessment, including its identifier, version, ARN, origin, and ownership information.

GuardrailAssessmentListGuardrailAssessment[]

topicPolicyGuardrailTopicPolicyAssessmentThe topic policy.
contentPolicyGuardrailContentPolicyAssessmentThe content policy.
wordPolicyGuardrailWordPolicyAssessmentThe word policy.
sensitiveInformationPolicyGuardrailSensitiveInformationPolicyAssessmentThe sensitive information policy.
contextualGroundingPolicyGuardrailContextualGroundingPolicyAssessmentThe contextual grounding policy used for the guardrail assessment.
automatedReasoningPolicyGuardrailAutomatedReasoningPolicyAssessmentThe automated reasoning policy assessment results, including logical validation findings for the input content.
invocationMetricsGuardrailInvocationMetricsThe invocation metrics for the guardrail assessment.
appliedGuardrailDetailsAppliedGuardrailDetailsDetails about the specific guardrail that was applied during this assessment, including its identifier, version, ARN, origin, and ownership information.

GuardrailAssessmentListMapobject

GuardrailAssessmentMapobject

GuardrailAutomatedReasoningDifferenceScenarioListGuardrailAutomatedReasoningScenario[]

statementsGuardrailAutomatedReasoningStatement[]List of logical assignments and statements that define this scenario.

GuardrailAutomatedReasoningFindingobject

Represents a logical validation result from automated reasoning policy evaluation. The finding indicates whether claims in the input are logically valid, invalid, satisfiable, impossible, or have other logical issues.

validGuardrailAutomatedReasoningValidFindingContains the result when the automated reasoning evaluation determines that the claims in the input are logically valid and definitively true based on the provided premises and policy rules.
invalidGuardrailAutomatedReasoningInvalidFindingContains the result when the automated reasoning evaluation determines that the claims in the input are logically invalid and contradict the established premises or policy rules.
satisfiableGuardrailAutomatedReasoningSatisfiableFindingContains the result when the automated reasoning evaluation determines that the claims in the input could be either true or false depending on additional assumptions not provided in the input context.
impossibleGuardrailAutomatedReasoningImpossibleFindingContains the result when the automated reasoning evaluation determines that no valid logical conclusions can be drawn due to contradictions in the premises or policy rules themselves.
translationAmbiguousGuardrailAutomatedReasoningTranslationAmbiguousFindingContains the result when the automated reasoning evaluation detects that the input has multiple valid logical interpretations, requiring additional context or clarification to proceed with validation.
tooComplexGuardrailAutomatedReasoningTooComplexFindingContains the result when the automated reasoning evaluation cannot process the input due to its complexity or volume exceeding the system's processing capacity for logical analysis.
noTranslationsGuardrailAutomatedReasoningNoTranslationsFindingContains the result when the automated reasoning evaluation cannot extract any relevant logical information from the input that can be validated against the policy rules.

GuardrailAutomatedReasoningFindingListGuardrailAutomatedReasoningFinding[]

validGuardrailAutomatedReasoningValidFindingContains the result when the automated reasoning evaluation determines that the claims in the input are logically valid and definitively true based on the provided premises and policy rules.
invalidGuardrailAutomatedReasoningInvalidFindingContains the result when the automated reasoning evaluation determines that the claims in the input are logically invalid and contradict the established premises or policy rules.
satisfiableGuardrailAutomatedReasoningSatisfiableFindingContains the result when the automated reasoning evaluation determines that the claims in the input could be either true or false depending on additional assumptions not provided in the input context.
impossibleGuardrailAutomatedReasoningImpossibleFindingContains the result when the automated reasoning evaluation determines that no valid logical conclusions can be drawn due to contradictions in the premises or policy rules themselves.
translationAmbiguousGuardrailAutomatedReasoningTranslationAmbiguousFindingContains the result when the automated reasoning evaluation detects that the input has multiple valid logical interpretations, requiring additional context or clarification to proceed with validation.
tooComplexGuardrailAutomatedReasoningTooComplexFindingContains the result when the automated reasoning evaluation cannot process the input due to its complexity or volume exceeding the system's processing capacity for logical analysis.
noTranslationsGuardrailAutomatedReasoningNoTranslationsFindingContains the result when the automated reasoning evaluation cannot extract any relevant logical information from the input that can be validated against the policy rules.

GuardrailAutomatedReasoningImpossibleFindingobject

Indicates that no valid claims can be made due to logical contradictions in the premises or rules.

translationGuardrailAutomatedReasoningTranslationThe logical translation of the input that this finding evaluates.
contradictingRulesGuardrailAutomatedReasoningRule[]The automated reasoning policy rules that contradict the claims and/or premises in the input.
logicWarningGuardrailAutomatedReasoningLogicWarningIndication of a logic issue with the translation without needing to consider the automated reasoning policy rules.

GuardrailAutomatedReasoningInputTextReferenceobject

References a portion of the original input text that corresponds to logical elements.

textstringThe specific text from the original input that this reference points to.length ≥ 0 · length ≤ 1000

GuardrailAutomatedReasoningInputTextReferenceListGuardrailAutomatedReasoningInputTextReference[]

textstringThe specific text from the original input that this reference points to.length ≥ 0 · length ≤ 1000

GuardrailAutomatedReasoningInvalidFindingobject

Indicates that the claims are logically false and contradictory to the established rules or premises.

translationGuardrailAutomatedReasoningTranslationThe logical translation of the input that this finding invalidates.
contradictingRulesGuardrailAutomatedReasoningRule[]The automated reasoning policy rules that contradict the claims in the input.
logicWarningGuardrailAutomatedReasoningLogicWarningIndication of a logic issue with the translation without needing to consider the automated reasoning policy rules.

GuardrailAutomatedReasoningLogicWarningobject

Identifies logical issues in the translated statements that exist independent of any policy rules, such as statements that are always true or always false.

typeenumThe category of the detected logical issue, such as statements that are always true or always false.ALWAYS_FALSE | ALWAYS_TRUE
premisesGuardrailAutomatedReasoningStatement[]The logical statements that serve as premises under which the claims are validated.
claimsGuardrailAutomatedReasoningStatement[]The logical statements that are validated while assuming the policy and premises.

GuardrailAutomatedReasoningLogicWarningTypeenum

ALWAYS_FALSE | ALWAYS_TRUE

GuardrailAutomatedReasoningNoTranslationsFindingobject

Indicates that no relevant logical information could be extracted from the input for validation.

GuardrailAutomatedReasoningPoliciesProcessedinteger

GuardrailAutomatedReasoningPolicyAssessmentobject

Contains the results of automated reasoning policy evaluation, including logical findings about the validity of claims made in the input content.

findingsGuardrailAutomatedReasoningFinding[]List of logical validation results produced by evaluating the input content against automated reasoning policies.

GuardrailAutomatedReasoningPolicyUnitsProcessedinteger

GuardrailAutomatedReasoningPolicyVersionArnstring

length ≥ 0 · length ≤ 2048

GuardrailAutomatedReasoningRuleobject

References a specific automated reasoning policy rule that was applied during evaluation.

identifierstringThe unique identifier of the automated reasoning rule.length ≥ 0 · length ≤ 12
policyVersionArnstringThe ARN of the automated reasoning policy version that contains this rule.length ≥ 0 · length ≤ 2048

GuardrailAutomatedReasoningRuleListGuardrailAutomatedReasoningRule[]

identifierstringThe unique identifier of the automated reasoning rule.length ≥ 0 · length ≤ 12
policyVersionArnstringThe ARN of the automated reasoning policy version that contains this rule.length ≥ 0 · length ≤ 2048

GuardrailAutomatedReasoningSatisfiableFindingobject

Indicates that the claims could be either true or false depending on additional assumptions not provided in the input.

translationGuardrailAutomatedReasoningTranslationThe logical translation of the input that this finding evaluates.
claimsTrueScenarioGuardrailAutomatedReasoningScenarioAn example scenario demonstrating how the claims could be logically true.
claimsFalseScenarioGuardrailAutomatedReasoningScenarioAn example scenario demonstrating how the claims could be logically false.
logicWarningGuardrailAutomatedReasoningLogicWarningIndication of a logic issue with the translation without needing to consider the automated reasoning policy rules.

GuardrailAutomatedReasoningScenarioobject

Represents a logical scenario where claims can be evaluated as true or false, containing specific logical assignments.

statementsGuardrailAutomatedReasoningStatement[]List of logical assignments and statements that define this scenario.

GuardrailAutomatedReasoningStatementobject

A logical statement that includes both formal logic representation and natural language explanation.

logicstringThe formal logical representation of the statement.length ≥ 0 · length ≤ 1000
naturalLanguagestringThe natural language explanation of the logical statement.length ≥ 0 · length ≤ 1000

GuardrailAutomatedReasoningStatementListGuardrailAutomatedReasoningStatement[]

logicstringThe formal logical representation of the statement.length ≥ 0 · length ≤ 1000
naturalLanguagestringThe natural language explanation of the logical statement.length ≥ 0 · length ≤ 1000

GuardrailAutomatedReasoningStatementLogicContentstring

length ≥ 0 · length ≤ 1000

GuardrailAutomatedReasoningStatementNaturalLanguageContentstring

length ≥ 0 · length ≤ 1000

GuardrailAutomatedReasoningTooComplexFindingobject

Indicates that the input exceeds the processing capacity due to the volume or complexity of the logical information.

GuardrailAutomatedReasoningTranslationobject

Contains the logical translation of natural language input into formal logical statements, including premises, claims, and confidence scores.

premisesGuardrailAutomatedReasoningStatement[]The logical statements that serve as the foundation or assumptions for the claims.
claimsGuardrailAutomatedReasoningStatement[]The logical statements that are being validated against the premises and policy rules.
untranslatedPremisesGuardrailAutomatedReasoningInputTextReference[]References to portions of the original input text that correspond to the premises but could not be fully translated.
untranslatedClaimsGuardrailAutomatedReasoningInputTextReference[]References to portions of the original input text that correspond to the claims but could not be fully translated.
confidencenumberA confidence score between 0 and 1 indicating how certain the system is about the logical translation.0 ≤ n ≤ 1

GuardrailAutomatedReasoningTranslationAmbiguousFindingobject

Indicates that the input has multiple valid logical interpretations, requiring additional context or clarification.

optionsGuardrailAutomatedReasoningTranslationOption[]Different logical interpretations that were detected during translation of the input.items ≥ 0 · items ≤ 2
differenceScenariosGuardrailAutomatedReasoningScenario[]Scenarios showing how the different translation options differ in meaning.items ≥ 0 · items ≤ 2

GuardrailAutomatedReasoningTranslationConfidencenumber

0 ≤ n ≤ 1

GuardrailAutomatedReasoningTranslationListGuardrailAutomatedReasoningTranslation[]

premisesGuardrailAutomatedReasoningStatement[]The logical statements that serve as the foundation or assumptions for the claims.
claimsGuardrailAutomatedReasoningStatement[]The logical statements that are being validated against the premises and policy rules.
untranslatedPremisesGuardrailAutomatedReasoningInputTextReference[]References to portions of the original input text that correspond to the premises but could not be fully translated.
untranslatedClaimsGuardrailAutomatedReasoningInputTextReference[]References to portions of the original input text that correspond to the claims but could not be fully translated.
confidencenumberA confidence score between 0 and 1 indicating how certain the system is about the logical translation.0 ≤ n ≤ 1

GuardrailAutomatedReasoningTranslationOptionobject

Represents one possible logical interpretation of ambiguous input content.

translationsGuardrailAutomatedReasoningTranslation[]Example translations that provide this possible interpretation of the input.

GuardrailAutomatedReasoningTranslationOptionListGuardrailAutomatedReasoningTranslationOption[]

translationsGuardrailAutomatedReasoningTranslation[]Example translations that provide this possible interpretation of the input.

GuardrailAutomatedReasoningValidFindingobject

Indicates that the claims are definitively true and logically implied by the premises, with no possible alternative interpretations.

translationGuardrailAutomatedReasoningTranslationThe logical translation of the input that this finding validates.
claimsTrueScenarioGuardrailAutomatedReasoningScenarioAn example scenario demonstrating how the claims are logically true.
supportingRulesGuardrailAutomatedReasoningRule[]The automated reasoning policy rules that support why this result is considered valid.
logicWarningGuardrailAutomatedReasoningLogicWarningIndication of a logic issue with the translation without needing to consider the automated reasoning policy rules.

GuardrailContentFilterobject

The content filter for a guardrail.

type*enumThe guardrail type.INSULTS | HATE | SEXUAL | VIOLENCE | MISCONDUCT | PROMPT_ATTACK
confidence*enumThe guardrail confidence.NONE | LOW | MEDIUM | HIGH
filterStrengthenumThe filter strength setting for the guardrail content filter.NONE | LOW | MEDIUM | HIGH
action*enumThe guardrail action.BLOCKED | NONE
detectedbooleanIndicates whether content that breaches the guardrail configuration is detected.

GuardrailContentFilterConfidenceenum

NONE | LOW | MEDIUM | HIGH

GuardrailContentFilterListGuardrailContentFilter[]

type*enumThe guardrail type.INSULTS | HATE | SEXUAL | VIOLENCE | MISCONDUCT | PROMPT_ATTACK
confidence*enumThe guardrail confidence.NONE | LOW | MEDIUM | HIGH
filterStrengthenumThe filter strength setting for the guardrail content filter.NONE | LOW | MEDIUM | HIGH
action*enumThe guardrail action.BLOCKED | NONE
detectedbooleanIndicates whether content that breaches the guardrail configuration is detected.

GuardrailContentFilterStrengthenum

NONE | LOW | MEDIUM | HIGH

GuardrailContentFilterTypeenum

INSULTS | HATE | SEXUAL | VIOLENCE | MISCONDUCT | PROMPT_ATTACK

GuardrailContentPolicyActionenum

BLOCKED | NONE

GuardrailContentPolicyAssessmentobject

An assessment of a content policy for a guardrail.

filters*GuardrailContentFilter[]The content policy filters.

GuardrailContentPolicyImageUnitsProcessedinteger

GuardrailContentPolicyUnitsProcessedinteger

GuardrailContextualGroundingFilterobject

The details for the guardrails contextual grounding filter.

type*enumThe contextual grounding filter type.GROUNDING | RELEVANCE
threshold*numberThe threshold used by contextual grounding filter to determine whether the content is grounded or not.0 ≤ n ≤ 1
score*numberThe score generated by contextual grounding filter.0 ≤ n ≤ 1
action*enumThe action performed by the guardrails contextual grounding filter.BLOCKED | NONE
detectedbooleanIndicates whether content that fails the contextual grounding evaluation (grounding or relevance score less than the corresponding threshold) was detected.

GuardrailContextualGroundingFiltersGuardrailContextualGroundingFilter[]

type*enumThe contextual grounding filter type.GROUNDING | RELEVANCE
threshold*numberThe threshold used by contextual grounding filter to determine whether the content is grounded or not.0 ≤ n ≤ 1
score*numberThe score generated by contextual grounding filter.0 ≤ n ≤ 1
action*enumThe action performed by the guardrails contextual grounding filter.BLOCKED | NONE
detectedbooleanIndicates whether content that fails the contextual grounding evaluation (grounding or relevance score less than the corresponding threshold) was detected.

GuardrailContextualGroundingFilterScoreDoublenumber

0 ≤ n ≤ 1

GuardrailContextualGroundingFilterThresholdDoublenumber

0 ≤ n ≤ 1

GuardrailContextualGroundingFilterTypeenum

GROUNDING | RELEVANCE

GuardrailContextualGroundingPolicyActionenum

BLOCKED | NONE

GuardrailContextualGroundingPolicyAssessmentobject

The policy assessment details for the guardrails contextual grounding filter.

filtersGuardrailContextualGroundingFilter[]The filter details for the guardrails contextual grounding filter.

GuardrailContextualGroundingPolicyUnitsProcessedinteger

GuardrailCoverageobject

The action of the guardrail coverage details.

textCharactersGuardrailTextCharactersCoverageThe text characters of the guardrail coverage details.
imagesGuardrailImageCoverageThe guardrail coverage for images (the number of images that guardrails guarded).

GuardrailCustomWordobject

A custom word configured in a guardrail.

match*stringThe match for the custom word.
action*enumThe action for the custom word.BLOCKED | NONE
detectedbooleanIndicates whether custom word content that breaches the guardrail configuration is detected.

GuardrailCustomWordListGuardrailCustomWord[]

match*stringThe match for the custom word.
action*enumThe action for the custom word.BLOCKED | NONE
detectedbooleanIndicates whether custom word content that breaches the guardrail configuration is detected.

GuardrailIdstring

length ≥ 0 · length ≤ 2048

GuardrailImageCoverageobject

The details of the guardrail image coverage.

guardedintegerThe count (integer) of images guardrails guarded.
totalintegerRepresents the total number of images (integer) that were in the request (guarded and unguarded).

GuardrailInvocationMetricsobject

The invocation metrics for the guardrail.

guardrailProcessingLatencyintegerThe processing latency details for the guardrail invocation metrics.
usageGuardrailUsageThe usage details for the guardrail invocation metrics.
guardrailCoverageGuardrailCoverageThe coverage details for the guardrail invocation metrics.

GuardrailManagedWordobject

A managed word configured in a guardrail.

match*stringThe match for the managed word.
type*enumThe type for the managed word.PROFANITY
action*enumThe action for the managed word.BLOCKED | NONE
detectedbooleanIndicates whether managed word content that breaches the guardrail configuration is detected.

GuardrailManagedWordListGuardrailManagedWord[]

match*stringThe match for the managed word.
type*enumThe type for the managed word.PROFANITY
action*enumThe action for the managed word.BLOCKED | NONE
detectedbooleanIndicates whether managed word content that breaches the guardrail configuration is detected.

GuardrailManagedWordTypeenum

PROFANITY

GuardrailOriginenum

REQUEST | ACCOUNT_ENFORCED | ORGANIZATION_ENFORCED

GuardrailOriginListGuardrailOrigin[]

GuardrailOutputTextstring

GuardrailOwnershipenum

SELF | CROSS_ACCOUNT

GuardrailPiiEntityFilterobject

A Personally Identifiable Information (PII) entity configured in a guardrail.

match*stringThe PII entity filter match.
type*enumThe PII entity filter type.ADDRESS | AGE | AWS_ACCESS_KEY | AWS_SECRET_KEY | CA_HEALTH_NUMBER | CA_SOCIAL_INSURANCE_NUMBER · +25 more
action*enumThe PII entity filter action.ANONYMIZED | BLOCKED | NONE
detectedbooleanIndicates whether personally identifiable information (PII) that breaches the guardrail configuration is detected.

GuardrailPiiEntityFilterListGuardrailPiiEntityFilter[]

match*stringThe PII entity filter match.
type*enumThe PII entity filter type.ADDRESS | AGE | AWS_ACCESS_KEY | AWS_SECRET_KEY | CA_HEALTH_NUMBER | CA_SOCIAL_INSURANCE_NUMBER · +25 more
action*enumThe PII entity filter action.ANONYMIZED | BLOCKED | NONE
detectedbooleanIndicates whether personally identifiable information (PII) that breaches the guardrail configuration is detected.

GuardrailPiiEntityTypeenum

ADDRESS | AGE | AWS_ACCESS_KEY | AWS_SECRET_KEY | CA_HEALTH_NUMBER | CA_SOCIAL_INSURANCE_NUMBER · +25 more

GuardrailProcessingLatencyinteger

GuardrailRegexFilterobject

A Regex filter configured in a guardrail.

namestringThe regex filter name.
matchstringThe regesx filter match.
regexstringThe regex query.
action*enumThe region filter action.ANONYMIZED | BLOCKED | NONE
detectedbooleanIndicates whether custom regex entities that breach the guardrail configuration are detected.

GuardrailRegexFilterListGuardrailRegexFilter[]

namestringThe regex filter name.
matchstringThe regesx filter match.
regexstringThe regex query.
action*enumThe region filter action.ANONYMIZED | BLOCKED | NONE
detectedbooleanIndicates whether custom regex entities that breach the guardrail configuration are detected.

GuardrailSensitiveInformationPolicyActionenum

ANONYMIZED | BLOCKED | NONE

GuardrailSensitiveInformationPolicyAssessmentobject

The assessment for a Personally Identifiable Information (PII) policy.

piiEntities*GuardrailPiiEntityFilter[]The PII entities in the assessment.
regexes*GuardrailRegexFilter[]The regex queries in the assessment.

GuardrailSensitiveInformationPolicyFreeUnitsProcessedinteger

GuardrailSensitiveInformationPolicyUnitsProcessedinteger

GuardrailTextCharactersCoverageobject

The guardrail coverage for the text characters.

guardedintegerThe text characters that were guarded by the guardrail coverage.
totalintegerThe total text characters by the guardrail coverage.

GuardrailTopicobject

Information about a topic guardrail.

name*stringThe name for the guardrail.
type*enumThe type behavior that the guardrail should perform when the model detects the topic.DENY
action*enumThe action the guardrail should take when it intervenes on a topic.BLOCKED | NONE
detectedbooleanIndicates whether topic content that breaches the guardrail configuration is detected.

GuardrailTopicListGuardrailTopic[]

name*stringThe name for the guardrail.
type*enumThe type behavior that the guardrail should perform when the model detects the topic.DENY
action*enumThe action the guardrail should take when it intervenes on a topic.BLOCKED | NONE
detectedbooleanIndicates whether topic content that breaches the guardrail configuration is detected.

GuardrailTopicPolicyActionenum

BLOCKED | NONE

GuardrailTopicPolicyAssessmentobject

A behavior assessment of a topic policy.

topics*GuardrailTopic[]The topics in the assessment.

GuardrailTopicPolicyUnitsProcessedinteger

GuardrailTopicTypeenum

DENY

GuardrailTraceAssessmentobject

A Top level guardrail trace object. For more information, see ConverseTrace .

modelOutputGuardrailOutputText[]The output from the model.
inputAssessmentGuardrailAssessmentMapThe input assessment.
outputAssessmentsGuardrailAssessmentListMapthe output assessments.
actionReasonstringProvides the reason for the action taken when harmful content is detected.

GuardrailUsageobject

The details on the use of the guardrail.

topicPolicyUnits*integerThe topic policy units processed by the guardrail.
contentPolicyUnits*integerThe content policy units processed by the guardrail.
wordPolicyUnits*integerThe word policy units processed by the guardrail.
sensitiveInformationPolicyUnits*integerThe sensitive information policy units processed by the guardrail.
sensitiveInformationPolicyFreeUnits*integerThe sensitive information policy free units processed by the guardrail.
contextualGroundingPolicyUnits*integerThe contextual grounding policy units processed by the guardrail.
contentPolicyImageUnitsintegerThe content policy image units processed by the guardrail.
automatedReasoningPolicyUnitsintegerThe number of text units processed by the automated reasoning policy.
automatedReasoningPoliciesintegerThe number of automated reasoning policies that were processed during the guardrail evaluation.

GuardrailVersionstring

GuardrailWordPolicyActionenum

BLOCKED | NONE

GuardrailWordPolicyAssessmentobject

The word policy assessment.

customWords*GuardrailCustomWord[]Custom words in the assessment.
managedWordLists*GuardrailManagedWord[]Managed word lists in the assessment.

GuardrailWordPolicyUnitsProcessedinteger

ImageBlockDeltaobject

A streaming delta event that contains incremental image data during streaming responses.

sourceImageSourceThe incremental image source data for this delta event.
errorErrorBlockError information if this image delta could not be processed.

ImageBlockStartobject

The initial event in a streaming image block that indicates the start of image content.

format*enumThe format of the image data that will be streamed in subsequent delta events.png | jpeg | gif | webp

ImageFormatenum

png | jpeg | gif | webp

ImagesGuardedinteger

ImageSourceobject

The source for an image.

bytesstringThe raw image bytes for the image. If you use an AWS SDK, you don't need to encode the image bytes in base64.
s3LocationS3LocationThe location of an image object in an Amazon S3 bucket. To see which models support S3 uploads, see Supported models and features for Converse .

ImageSourceBytesBlobstring

ImagesTotalinteger

InternalServerExceptionobject

An internal server error occurred. For troubleshooting this error, see InternalFailure in the Amazon Bedrock User Guide

messagestring

InvokedModelIdstring

Longinteger

MessageStartEventobject

The start of a message.

role*enumThe role for the message.user | assistant | system

MessageStopEventobject

The stop event for a message.

stopReason*enumThe reason why the model stopped generating output.end_turn | tool_use | max_tokens | stop_sequence | guardrail_intervened | content_filtered · +3 more
additionalModelResponseFieldsDocumentThe additional model response fields.

ModelOutputsGuardrailOutputText[]

ModelStreamErrorExceptionobject

An error occurred while streaming the response. Retry your request.

messagestring
originalStatusCodeintegerThe original status code.100 ≤ n ≤ 599
originalMessagestringThe original message.

NonBlankStringstring

NonNegativeIntegerinteger

n ≥ 0

PerformanceConfigLatencyenum

standard | optimized

PerformanceConfigurationobject

Performance settings for a model.

latencyenumTo use a latency-optimized version of the model, set to optimized .standard | optimized

PromptRouterTraceobject

A prompt router trace.

invokedModelIdstringThe ID of the invoked model.

ReasoningContentBlockDeltaobject

Contains content regarding the reasoning that is carried out by the model with respect to the content in the content block. Reasoning refers to a Chain of Thought (CoT) that the model generates to enhance the accuracy of its final response.

textstringThe reasoning that the model used to return the output.
redactedContentstringThe content in the reasoning that was encrypted by the model provider for safety reasons. The encryption doesn't affect the quality of responses.
signaturestringA token that verifies that the reasoning text was generated by the model. If you pass a reasoning block back to the API in a multi-turn conversation, include the text and its signature unmodified.

S3Locationobject

A storage location in an Amazon S3 bucket.

uri*stringAn object URI starting with s3:// .length ≥ 1 · length ≤ 1024
bucketOwnerstringIf the bucket belongs to another AWS account, specify that account's ID.

S3Uristring

length ≥ 1 · length ≤ 1024

SearchResultLocationobject

Specifies a search result location within the content array, providing positioning information for cited content using search result index and block positions.

searchResultIndexintegerThe index of the search result content block where the cited content is found.n ≥ 0
startintegerThe starting position in the content array where the cited content begins.n ≥ 0
endintegerThe ending position in the content array where the cited content ends.n ≥ 0

SearchResultLocationEndIntegerinteger

n ≥ 0

SearchResultLocationSearchResultIndexIntegerinteger

n ≥ 0

SearchResultLocationStartIntegerinteger

n ≥ 0

ServiceTierobject

Specifies the processing tier configuration used for serving the request.

type*enumSpecifies the processing tier type used for serving the request.priority | default | flex | reserved

ServiceTierTypeenum

priority | default | flex | reserved

ServiceUnavailableExceptionobject

The service isn't currently available. For troubleshooting this error, see ServiceUnavailable in the Amazon Bedrock User Guide

messagestring

StatusCodeinteger

100 ≤ n ≤ 599

StopReasonenum

end_turn | tool_use | max_tokens | stop_sequence | guardrail_intervened | content_filtered · +3 more

Stringstring

TextCharactersGuardedinteger

TextCharactersTotalinteger

ThrottlingExceptionobject

Your request was denied due to exceeding the account quotas for Amazon Bedrock . For troubleshooting this error, see ThrottlingException in the Amazon Bedrock User Guide

messagestring

TokenUsageobject

The tokens used in a message API inference call.

inputTokens*integerThe number of tokens sent in the request to the model.n ≥ 0
outputTokens*integerThe number of tokens that the model generated for the request.n ≥ 0
totalTokens*integerThe total of input tokens and tokens generated by the model.n ≥ 0
cacheReadInputTokensintegerThe number of input tokens read from the cache for the request.n ≥ 0
cacheWriteInputTokensintegerThe number of input tokens written to the cache for the request.n ≥ 0
cacheDetailsCacheDetail[]Detailed breakdown of cache writes by TTL. Empty if no cache creation occurred. Sorted by TTL duration (1h before 5m).

TokenUsageCacheReadInputTokensIntegerinteger

n ≥ 0

TokenUsageCacheWriteInputTokensIntegerinteger

n ≥ 0

TokenUsageInputTokensIntegerinteger

n ≥ 0

TokenUsageOutputTokensIntegerinteger

n ≥ 0

TokenUsageTotalTokensIntegerinteger

n ≥ 0

ToolNamestring

length ≥ 1 · length ≤ 64

ToolResultBlockDeltaobject

Contains incremental updates to tool results information during streaming responses. This allows clients to build up tool results data progressively as the response is generated.

textstringThe reasoning the model used to return the output.
jsonDocumentThe JSON schema for the tool result content block. see JSON Schema Reference .

ToolResultBlocksDeltaToolResultBlockDelta[]

textstringThe reasoning the model used to return the output.
jsonDocumentThe JSON schema for the tool result content block. see JSON Schema Reference .

ToolResultBlockStartobject

The start of a tool result block. For more information, see Call a tool with the Converse API in the Amazon Bedrock User Guide.

toolUseId*stringThe ID of the tool that was used to generate this tool result block.length ≥ 1 · length ≤ 64
typestringThe type for the tool that was used to generate this tool result block.
statusenumThe status of the tool result block.success | error

ToolResultStatusenum

success | error

ToolUseBlockDeltaobject

The delta for a tool use block.

input*stringThe input for a requested tool.

ToolUseBlockStartobject

The start of a tool use block. For more information, see Call a tool with the Converse API in the Amazon Bedrock User Guide.

toolUseId*stringThe ID for the tool request.length ≥ 1 · length ≤ 64
name*stringThe name of the tool that the model is requesting to use.length ≥ 1 · length ≤ 64
typeenumThe type for the tool request.server_tool_use

ToolUseIdstring

length ≥ 1 · length ≤ 64

ToolUseTypeenum

server_tool_use

ValidationExceptionobject

The input fails to satisfy the constraints specified by Amazon Bedrock . For troubleshooting this error, see ValidationError in the Amazon Bedrock User Guide

messagestring

WebLocationobject

Provides the URL and domain information for the website that was cited when performing a web search.

urlstringThe URL that was cited when performing a web search.
domainstringThe domain that was cited when performing a web search.

Validate a payload

before you spend tokens
shell
$ curl -X POST https://modelschemas.com/v1/validate \
    -d '{"provider":"amazon-bedrock","endpointId":"model/{modelId}/converse-stream","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}