Class BetaManagedAgentsOutcomeEvaluationResource
-
- All Implemented Interfaces:
public final class BetaManagedAgentsOutcomeEvaluationResourceEvaluation state for a single outcome defined via a
define_outcomeevent.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsOutcomeEvaluationResource.BuilderA builder for BetaManagedAgentsOutcomeEvaluationResource.
-
Method Summary
Modifier and Type Method Description final Optional<OffsetDateTime>completedAt()When the outcome reached a terminal result. final Stringdescription()What the agent should produce. final Optional<String>explanation()Grader's verdict text from the most recent evaluation. final Integeriteration()0-indexed revision cycle the outcome is currently on. final StringoutcomeId()Server-generated outc_ ID for this outcome. final Stringresult()Current evaluation state. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("outcome_evaluation")final JsonField<OffsetDateTime>_completedAt()Returns the raw JSON value of completedAt. final JsonField<String>_description()Returns the raw JSON value of description. final JsonField<String>_explanation()Returns the raw JSON value of explanation. final JsonField<Integer>_iteration()Returns the raw JSON value of iteration. final JsonField<String>_outcomeId()Returns the raw JSON value of outcomeId. final JsonField<String>_result()Returns the raw JSON value of result. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsOutcomeEvaluationResource.BuildertoBuilder()final BetaManagedAgentsOutcomeEvaluationResourcevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsOutcomeEvaluationResource.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsOutcomeEvaluationResource. -
-
Method Detail
-
completedAt
final Optional<OffsetDateTime> completedAt()
When the outcome reached a terminal result. Null while
pending/running/evaluating.
-
description
final String description()
What the agent should produce.
-
explanation
final Optional<String> explanation()
Grader's verdict text from the most recent evaluation. For
satisfied, explains why criteria are met; forneeds_revision(intermediate), what's missing; forfailed, why unrecoverable.
-
result
final String result()
Current evaluation state.
pendingbefore the agent begins work;runningwhile producing or revising;evaluatingwhile the grader scores;satisfied/max_iterations_reached/failed/interruptedare terminal.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("outcome_evaluation")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_completedAt
final JsonField<OffsetDateTime> _completedAt()
Returns the raw JSON value of completedAt.
Unlike completedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_description
final JsonField<String> _description()
Returns the raw JSON value of description.
Unlike description, 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.
-
_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.
-
_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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsOutcomeEvaluationResource.Builder toBuilder()
-
validate
final BetaManagedAgentsOutcomeEvaluationResource validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaManagedAgentsOutcomeEvaluationResource.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsOutcomeEvaluationResource.
The following fields are required:
.completedAt() .description() .explanation() .iteration() .outcomeId() .result()
-
-
-
-