rea-agents - v1.0.0
    Preparing search index...

    Function responseResult

    • Project a parsed response into its result or expected remote failure.

      Parameters

      • response:
            | { id: number; result: JSONType }
            | {
                error: {
                    code: number;
                    message: string;
                    type: "remote" | "authorization" | "invalid_request" | "bridge_exception";
                };
                id: number;
            }

      Returns Result<JSONType, HopperRemoteError>