Class BetaManagedAgentsUserDefineOutcomeEvent
-
- All Implemented Interfaces:
public final class BetaManagedAgentsUserDefineOutcomeEventEcho of a
user.define_outcomeinput event. Carries the server-generatedoutcome_idthat subsequentspan.outcome_evaluation_*events reference.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsUserDefineOutcomeEvent.BuilderA builder for BetaManagedAgentsUserDefineOutcomeEvent.
public final classBetaManagedAgentsUserDefineOutcomeEvent.RubricHow to grade the outcome. File rubrics are currently resolved to their text content; clients should handle both variants.
-
Method Summary
Modifier and Type Method Description final Stringid()Unique identifier for this event. final Stringdescription()What the agent should produce. final Optional<Integer>maxIterations()Evaluate-then-revise cycles before giving up. final StringoutcomeId()Server-generated outc_ID for this outcome.final OffsetDateTimeprocessedAt()Timestamp when the outcome was accepted. final BetaManagedAgentsUserDefineOutcomeEvent.Rubricrubric()How to grade the outcome. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("user.define_outcome")final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<String>_description()Returns the raw JSON value of description. final JsonField<Integer>_maxIterations()Returns the raw JSON value of maxIterations. final JsonField<String>_outcomeId()Returns the raw JSON value of outcomeId. final JsonField<OffsetDateTime>_processedAt()Returns the raw JSON value of processedAt. final JsonField<BetaManagedAgentsUserDefineOutcomeEvent.Rubric>_rubric()Returns the raw JSON value of rubric. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsUserDefineOutcomeEvent.BuildertoBuilder()final BetaManagedAgentsUserDefineOutcomeEventvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsUserDefineOutcomeEvent.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsUserDefineOutcomeEvent. -
-
Method Detail
-
description
final String description()
What the agent should produce. Copied from the input event.
-
maxIterations
final Optional<Integer> maxIterations()
Evaluate-then-revise cycles before giving up. Default 3, max 20.
-
outcomeId
final String outcomeId()
Server-generated
outc_ID for this outcome. Referenced byspan.outcome_evaluation_*events and the session'soutcome_evaluationslist.
-
processedAt
final OffsetDateTime processedAt()
Timestamp when the outcome was accepted.
-
rubric
final BetaManagedAgentsUserDefineOutcomeEvent.Rubric rubric()
How to grade the outcome. File rubrics are currently resolved to their text content; clients should handle both variants.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("user.define_outcome")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.
-
_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.
-
_maxIterations
final JsonField<Integer> _maxIterations()
Returns the raw JSON value of maxIterations.
Unlike maxIterations, 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.
-
_rubric
final JsonField<BetaManagedAgentsUserDefineOutcomeEvent.Rubric> _rubric()
Returns the raw JSON value of rubric.
Unlike rubric, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsUserDefineOutcomeEvent.Builder toBuilder()
-
validate
final BetaManagedAgentsUserDefineOutcomeEvent 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 BetaManagedAgentsUserDefineOutcomeEvent.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsUserDefineOutcomeEvent.
The following fields are required:
.id() .description() .maxIterations() .outcomeId() .processedAt() .rubric()
-
-
-
-