Class BetaManagedAgentsSpanOutcomeEvaluationEndEvent

  • All Implemented Interfaces:

    
    public final class BetaManagedAgentsSpanOutcomeEvaluationEndEvent
    
                        

    Emitted when an outcome evaluation cycle completes. Carries the verdict and aggregate token usage. A verdict of needs_revision means another evaluation cycle follows; satisfied, max_iterations_reached, failed, or interrupted are terminal — no further evaluation cycles follow.

    • Constructor Detail

    • Method Detail

      • id

         final String id()

        Unique identifier for this event.

      • explanation

         final String explanation()

        Human-readable explanation of the verdict. For needs_revision, describes which criteria failed and why.

      • iteration

         final Integer iteration()

        0-indexed revision cycle, matching the corresponding span.outcome_evaluation_start.

      • outcomeId

         final String outcomeId()

        The outc_ ID of the outcome being evaluated.

      • result

         final String result()

        Evaluation verdict. 'satisfied': criteria met, session goes idle. 'needs_revision': criteria not met, another revision cycle follows. 'max_iterations_reached': evaluation budget exhausted with criteria still unmet — one final acknowledgment turn follows before the session goes idle, but no further evaluation runs. 'failed': grader determined the rubric does not apply to the deliverables. 'interrupted': user sent an interrupt while evaluation was in progress.

      • _type

         final JsonValue _type()

        Expected to always return the following:

        JsonValue.from("span.outcome_evaluation_end")

        However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).

      • _id

         final JsonField<String> _id()

        Returns the raw JSON value of id.

        Unlike id, this method doesn't throw if the JSON field has an unexpected type.

      • _explanation

         final JsonField<String> _explanation()

        Returns the raw JSON value of explanation.

        Unlike explanation, this method doesn't throw if the JSON field has an unexpected type.

      • _iteration

         final JsonField<Integer> _iteration()

        Returns the raw JSON value of iteration.

        Unlike iteration, this method doesn't throw if the JSON field has an unexpected type.

      • _outcomeEvaluationStartId

         final JsonField<String> _outcomeEvaluationStartId()

        Returns the raw JSON value of outcomeEvaluationStartId.

        Unlike outcomeEvaluationStartId, this method doesn't throw if the JSON field has an unexpected type.

      • _outcomeId

         final JsonField<String> _outcomeId()

        Returns the raw JSON value of outcomeId.

        Unlike outcomeId, this method doesn't throw if the JSON field has an unexpected type.

      • _processedAt

         final JsonField<OffsetDateTime> _processedAt()

        Returns the raw JSON value of processedAt.

        Unlike processedAt, this method doesn't throw if the JSON field has an unexpected type.

      • _result

         final JsonField<String> _result()

        Returns the raw JSON value of result.

        Unlike result, this method doesn't throw if the JSON field has an unexpected type.