tarlatan
    Preparing search index...

    Function reportsFailure

    • Whether an event reports a failed run: turn.failed or error.

      Parameters

      • event:
            | { type: "thread.started" }
            | { type: "turn.started" }
            | { type: "turn.completed"; usage?: { readonly [key: string]: unknown } }
            | { error?: { readonly [key: string]: unknown }; type: "turn.failed" }
            | { message?: string; type: "error" }

      Returns boolean