Class RunUsageSummary.Builder

    • Method Detail

      • credits

        public RunUsageSummary._FinalStage credits​(double credits)

        The credits consumed by this run. For most run types this is the line item for the run's own work; for workflow_run this is the aggregate across all child runs.

        The credits consumed by this run. For most run types this is the line item for the run's own work; for workflow_run this is the aggregate across all child runs.

        Specified by:
        credits in interface RunUsageSummary.CreditsStage
        Returns:
        Reference to this so that method calls can be chained together.
      • totalCredits

        public RunUsageSummary._FinalStage totalCredits​(java.lang.Double totalCredits)

        The total credits accounted for under this run, including any other runs it was responsible for creating. For example, an extract run on a fresh upload triggers a parse run, so totalCredits includes both line items. For runs that didn't trigger any other work — like parse_run, edit_run, and workflow_runtotalCredits equals credits.

        Availability: Present on runs persisted on or after May 14, 2026. Runs persisted before that date will omit this field.

        Specified by:
        totalCredits in interface RunUsageSummary._FinalStage
        Returns:
        Reference to this so that method calls can be chained together.
      • totalCredits

        public RunUsageSummary._FinalStage totalCredits​(java.util.Optional<java.lang.Double> totalCredits)

        The total credits accounted for under this run, including any other runs it was responsible for creating. For example, an extract run on a fresh upload triggers a parse run, so totalCredits includes both line items. For runs that didn't trigger any other work — like parse_run, edit_run, and workflow_runtotalCredits equals credits.

        Availability: Present on runs persisted on or after May 14, 2026. Runs persisted before that date will omit this field.

        Specified by:
        totalCredits in interface RunUsageSummary._FinalStage