Class BetaFallbackBlockParam
-
- All Implemented Interfaces:
public final class BetaFallbackBlockParamA
fallbackblock echoed back from a prior response.Accepted in
messages[].contentand not rendered into the prompt; not validated against the request'sfallbackschain or top-levelmodel.When you send the assistant turn back, keep this block in its original position. The block marks the boundary between content produced before and after a fallback hop, and the server relies on that boundary to validate the turn: when thinking runs flank the boundary, omitting the block merges them into one span the server cannot validate (the request is rejected), and moving it into the middle of a single run is likewise rejected; between non-thinking blocks the block's placement has no effect on thinking validation.
Some blocks from before the turn's final
fallbackblock must be left out when you send the turn back, and notool_resultis sent for atool_useblock you left out.See the refusals and fallback guide to learn which blocks to keep.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaFallbackBlockParam.BuilderA builder for BetaFallbackBlockParam.
-
Method Summary
Modifier and Type Method Description final BetaFallbackInfoParamfrom()Identifies one hop of a fallback transition. final BetaFallbackInfoParamto()Identifies one hop of a fallback transition. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("fallback")final JsonValue_trigger()The response block's trigger, echoed verbatim.final JsonField<BetaFallbackInfoParam>_from()Returns the raw JSON value of from. final JsonField<BetaFallbackInfoParam>_to()Returns the raw JSON value of to. final Map<String, JsonValue>_additionalProperties()final BetaFallbackBlockParam.BuildertoBuilder()final BetaFallbackBlockParamvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaFallbackBlockParam.Builderbuilder()Returns a mutable builder for constructing an instance of BetaFallbackBlockParam. -
-
Method Detail
-
from
final BetaFallbackInfoParam from()
Identifies one hop of a fallback transition.
-
to
final BetaFallbackInfoParam to()
Identifies one hop of a fallback transition.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("fallback")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_trigger
final JsonValue _trigger()
The response block's
trigger, echoed verbatim. Accepted and ignored by the server; any object ornullis allowed.This arbitrary value can be deserialized into a custom type using the
convertmethod:MyClass myObject = betaFallbackBlockParam.trigger().convert(MyClass.class);
-
_from
final JsonField<BetaFallbackInfoParam> _from()
Returns the raw JSON value of from.
Unlike from, this method doesn't throw if the JSON field has an unexpected type.
-
_to
final JsonField<BetaFallbackInfoParam> _to()
Returns the raw JSON value of to.
Unlike to, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaFallbackBlockParam.Builder toBuilder()
-
validate
final BetaFallbackBlockParam 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 BetaFallbackBlockParam.Builder builder()
Returns a mutable builder for constructing an instance of BetaFallbackBlockParam.
The following fields are required:
.from() .to()
-
-
-
-