Class BetaAdvisorResultBlock
-
- All Implemented Interfaces:
public final class BetaAdvisorResultBlock
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaAdvisorResultBlock.BuilderA builder for BetaAdvisorResultBlock.
-
Method Summary
Modifier and Type Method Description final BetaAdvisorResultBlockParamtoParam()final Optional<String>stopReason()The advisor sub-inference's stop reason (same values as the top-level message stop_reason).final Stringtext()final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("advisor_result")final JsonField<String>_stopReason()Returns the raw JSON value of stopReason. final JsonField<String>_text()Returns the raw JSON value of text. final Map<String, JsonValue>_additionalProperties()final BetaAdvisorResultBlock.BuildertoBuilder()final BetaAdvisorResultBlockvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaAdvisorResultBlock.Builderbuilder()Returns a mutable builder for constructing an instance of BetaAdvisorResultBlock. -
-
Method Detail
-
toParam
final BetaAdvisorResultBlockParam toParam()
-
stopReason
final Optional<String> stopReason()
The advisor sub-inference's stop reason (same values as the top-level message
stop_reason).max_tokensindicates the advisor's output was truncated at the tool'smax_tokensvalue or the advisor model's policy cap.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("advisor_result")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_stopReason
final JsonField<String> _stopReason()
Returns the raw JSON value of stopReason.
Unlike stopReason, this method doesn't throw if the JSON field has an unexpected type.
-
_text
final JsonField<String> _text()
Returns the raw JSON value of text.
Unlike text, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaAdvisorResultBlock.Builder toBuilder()
-
validate
final BetaAdvisorResultBlock 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 BetaAdvisorResultBlock.Builder builder()
Returns a mutable builder for constructing an instance of BetaAdvisorResultBlock.
The following fields are required:
.stopReason() .text()
-
-
-
-