Class ThinkingDelta
-
- All Implemented Interfaces:
public final class ThinkingDelta
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classThinkingDelta.BuilderA builder for ThinkingDelta.
-
Method Summary
Modifier and Type Method Description final Stringthinking()The incremental thinkingtext for this content block.final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("thinking_delta")final JsonField<String>_thinking()Returns the raw JSON value of thinking. final Map<String, JsonValue>_additionalProperties()final ThinkingDelta.BuildertoBuilder()final ThinkingDeltavalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ThinkingDelta.Builderbuilder()Returns a mutable builder for constructing an instance of ThinkingDelta. final static ThinkingDeltaof(String thinking)Returns an immutable instance of ThinkingDelta with the required thinking set to the given value. -
-
Method Detail
-
thinking
final String thinking()
The incremental
thinkingtext for this content block. Concatenate thethinkingvalues of successivethinking_deltaevents to assemble the block's fullthinkingvalue.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("thinking_delta")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_thinking
final JsonField<String> _thinking()
Returns the raw JSON value of thinking.
Unlike thinking, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ThinkingDelta.Builder toBuilder()
-
validate
final ThinkingDelta 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 ThinkingDelta.Builder builder()
Returns a mutable builder for constructing an instance of ThinkingDelta.
The following fields are required:
.thinking()
-
of
final static ThinkingDelta of(String thinking)
Returns an immutable instance of ThinkingDelta with the required thinking set to the given value.
-
-
-
-