Class ChatCompletionChunk.Choice.Delta
-
- All Implemented Interfaces:
public final class ChatCompletionChunk.Choice.DeltaA chat completion delta generated by streamed model responses.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatCompletionChunk.Choice.Delta.BuilderA builder for Delta.
public final classChatCompletionChunk.Choice.Delta.FunctionCallDeprecated and replaced by
tool_calls. The name and arguments of a function that should be called, as generated by the model.public final classChatCompletionChunk.Choice.Delta.RoleThe role of the author of this message.
public final classChatCompletionChunk.Choice.Delta.ToolCall
-
Method Summary
-
-
Method Detail
-
functionCall
@Deprecated(message = "deprecated") final Optional<ChatCompletionChunk.Choice.Delta.FunctionCall> functionCall()
Deprecated and replaced by
tool_calls. The name and arguments of a function that should be called, as generated by the model.
-
role
final Optional<ChatCompletionChunk.Choice.Delta.Role> role()
The role of the author of this message.
-
toolCalls
final Optional<List<ChatCompletionChunk.Choice.Delta.ToolCall>> toolCalls()
-
_content
final JsonField<String> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
-
_functionCall
@Deprecated(message = "deprecated") final JsonField<ChatCompletionChunk.Choice.Delta.FunctionCall> _functionCall()
Returns the raw JSON value of functionCall.
Unlike functionCall, this method doesn't throw if the JSON field has an unexpected type.
-
_refusal
final JsonField<String> _refusal()
Returns the raw JSON value of refusal.
Unlike refusal, this method doesn't throw if the JSON field has an unexpected type.
-
_role
final JsonField<ChatCompletionChunk.Choice.Delta.Role> _role()
Returns the raw JSON value of role.
Unlike role, this method doesn't throw if the JSON field has an unexpected type.
-
_toolCalls
final JsonField<List<ChatCompletionChunk.Choice.Delta.ToolCall>> _toolCalls()
Returns the raw JSON value of toolCalls.
Unlike toolCalls, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ChatCompletionChunk.Choice.Delta.Builder toBuilder()
-
validate
final ChatCompletionChunk.Choice.Delta 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 ChatCompletionChunk.Choice.Delta.Builder builder()
Returns a mutable builder for constructing an instance of Delta.
-
-
-
-