Check if a response is an AdCP error response.
Recognizes both { adcp_error: { code: string } } (MCP structured errors)
and { errors: [{ code, message }] } (legacy/A2A format).
This helper is structural and intentionally does not know which tool
produced the payload. For AdCP 3.1 success/submitted payloads that can
carry advisory errors[], prefer isTerminalAdcpError with a
toolName.
Check if a response is an AdCP error response. Recognizes both
{ adcp_error: { code: string } }(MCP structured errors) and{ errors: [{ code, message }] }(legacy/A2A format).This helper is structural and intentionally does not know which tool produced the payload. For AdCP 3.1 success/submitted payloads that can carry advisory
errors[], prefer isTerminalAdcpError with atoolName.