@adcp/sdk API Reference - v10.0.1
    Preparing search index...

    Function isAdcpError

    • 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.

      Parameters

      • response: any

      Returns boolean