Skip to content
1 min read · 122 words

@nhtio/adk/batteries/llm/bedrock_converse/exceptions

Battery-scoped exception constructors for the native Bedrock Converse adapter.

Remarks

Two Converse-specific classifications earn their own exceptions because both are ACTIONABLE and both arrive as a generic validation error otherwise: E_CONVERSE_MISSING_TOOL_CONFIG and E_CONVERSE_ALTERNATION_VIOLATION.

Variables

VariableDescription
E_CONVERSE_ALTERNATION_VIOLATIONConverse rejected the request for non-alternating roles.
E_CONVERSE_INVALID_TOOL_INPUTA toolUse block carried an input value that is not a plain object.
E_CONVERSE_MISSING_TOOL_CONFIGConverse rejected the request because toolUse/toolResult blocks appeared with no toolConfig.
E_CONVERSE_REQUEST_FAILEDThe provider returned a non-2xx status.
E_CONVERSE_STREAM_ERRORA transport error or malformed frame killed the stream.
E_INVALID_BEDROCK_CONVERSE_OPTIONSResolved options failed validation.