Class BetaManagedAgentsUserDefineOutcomeEvent.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsUserDefineOutcomeEvent.BuilderA builder for BetaManagedAgentsUserDefineOutcomeEvent.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaManagedAgentsUserDefineOutcomeEvent.Builder id(String id)
Unique identifier for this event.
-
id
final BetaManagedAgentsUserDefineOutcomeEvent.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
description
final BetaManagedAgentsUserDefineOutcomeEvent.Builder description(String description)
What the agent should produce. Copied from the input event.
-
description
final BetaManagedAgentsUserDefineOutcomeEvent.Builder description(JsonField<String> description)
Sets Builder.description to an arbitrary JSON value.
You should usually call Builder.description with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
maxIterations
final BetaManagedAgentsUserDefineOutcomeEvent.Builder maxIterations(Integer maxIterations)
Evaluate-then-revise cycles before giving up. Default 3, max 20.
-
maxIterations
final BetaManagedAgentsUserDefineOutcomeEvent.Builder maxIterations(Integer maxIterations)
Alias for Builder.maxIterations.
This unboxed primitive overload exists for backwards compatibility.
-
maxIterations
final BetaManagedAgentsUserDefineOutcomeEvent.Builder maxIterations(Optional<Integer> maxIterations)
Alias for calling Builder.maxIterations with
maxIterations.orElse(null).
-
maxIterations
final BetaManagedAgentsUserDefineOutcomeEvent.Builder maxIterations(JsonField<Integer> maxIterations)
Sets Builder.maxIterations to an arbitrary JSON value.
You should usually call Builder.maxIterations with a well-typed Int value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
outcomeId
final BetaManagedAgentsUserDefineOutcomeEvent.Builder outcomeId(String outcomeId)
Server-generated
outc_ID for this outcome. Referenced byspan.outcome_evaluation_*events and the session'soutcome_evaluationslist.
-
outcomeId
final BetaManagedAgentsUserDefineOutcomeEvent.Builder outcomeId(JsonField<String> outcomeId)
Sets Builder.outcomeId to an arbitrary JSON value.
You should usually call Builder.outcomeId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
processedAt
final BetaManagedAgentsUserDefineOutcomeEvent.Builder processedAt(OffsetDateTime processedAt)
A timestamp in RFC 3339 format
-
processedAt
final BetaManagedAgentsUserDefineOutcomeEvent.Builder processedAt(JsonField<OffsetDateTime> processedAt)
Sets Builder.processedAt to an arbitrary JSON value.
You should usually call Builder.processedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
rubric
final BetaManagedAgentsUserDefineOutcomeEvent.Builder rubric(BetaManagedAgentsUserDefineOutcomeEvent.Rubric rubric)
Rubric for grading the quality of an outcome.
-
rubric
final BetaManagedAgentsUserDefineOutcomeEvent.Builder rubric(JsonField<BetaManagedAgentsUserDefineOutcomeEvent.Rubric> rubric)
Sets Builder.rubric to an arbitrary JSON value.
You should usually call Builder.rubric with a well-typed Rubric value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
rubric
final BetaManagedAgentsUserDefineOutcomeEvent.Builder rubric(BetaManagedAgentsFileRubric file)
Alias for calling rubric with
Rubric.ofFile(file).
-
rubric
final BetaManagedAgentsUserDefineOutcomeEvent.Builder rubric(BetaManagedAgentsTextRubric text)
Alias for calling rubric with
Rubric.ofText(text).
-
fileRubric
final BetaManagedAgentsUserDefineOutcomeEvent.Builder fileRubric(String fileId)
Alias for calling rubric with the following:
BetaManagedAgentsFileRubric.builder() .type(BetaManagedAgentsFileRubric.Type.FILE) .fileId(fileId) .build()
-
textRubric
final BetaManagedAgentsUserDefineOutcomeEvent.Builder textRubric(String content)
Alias for calling rubric with the following:
BetaManagedAgentsTextRubric.builder() .type(BetaManagedAgentsTextRubric.Type.TEXT) .content(content) .build()
-
type
final BetaManagedAgentsUserDefineOutcomeEvent.Builder type(BetaManagedAgentsUserDefineOutcomeEvent.Type type)
-
type
final BetaManagedAgentsUserDefineOutcomeEvent.Builder type(JsonField<BetaManagedAgentsUserDefineOutcomeEvent.Type> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaManagedAgentsUserDefineOutcomeEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaManagedAgentsUserDefineOutcomeEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsUserDefineOutcomeEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsUserDefineOutcomeEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsUserDefineOutcomeEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsUserDefineOutcomeEvent build()
Returns an immutable instance of BetaManagedAgentsUserDefineOutcomeEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .description() .maxIterations() .outcomeId() .processedAt() .rubric() .type()
-
-
-
-