Package com.openai.models
Class ChatCompletionChunk.Choice.Delta
-
- All Implemented Interfaces:
public final class ChatCompletionChunk.Choice.Delta
A chat completion delta generated by streamed model responses.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ChatCompletionChunk.Choice.Delta.Builder
A builder for Delta.
public final class
ChatCompletionChunk.Choice.Delta.FunctionCall
Deprecated and replaced by
tool_calls
. The name and arguments of a function that should be called, as generated by the model.public final class
ChatCompletionChunk.Choice.Delta.Role
The role of the author of this message.
public final class
ChatCompletionChunk.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()
-
_functionCall
@Deprecated(message = "deprecated") final JsonField<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 JsonField<ChatCompletionChunk.Choice.Delta.Role> _role()
The role of the author of this message.
-
_toolCalls
final JsonField<List<ChatCompletionChunk.Choice.Delta.ToolCall>> _toolCalls()
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
validate
final ChatCompletionChunk.Choice.Delta validate()
-
toBuilder
final ChatCompletionChunk.Choice.Delta.Builder toBuilder()
-
builder
final static ChatCompletionChunk.Choice.Delta.Builder builder()
-
-
-
-