Package com.openai.models
Class ChatCompletionStoreMessage
-
- All Implemented Interfaces:
public final class ChatCompletionStoreMessageA chat completion message generated by the model.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatCompletionStoreMessage.BuilderA builder for ChatCompletionStoreMessage.
-
Method Summary
Modifier and Type Method Description final Optional<String>content()The contents of the message. final Optional<String>refusal()The refusal message generated by the model. final JsonValue_role()The role of the author of this message. final Optional<ChatCompletionAudio>audio()If the audio output modality is requested, this object contains data about the audio response from the model. final Optional<ChatCompletionMessage.FunctionCall>functionCall()Deprecated and replaced by tool_calls.final Optional<List<ChatCompletionMessageToolCall>>toolCalls()The tool calls generated by the model, such as function calls. final Stringid()The identifier of the chat message. final JsonField<String>_content()The contents of the message. final JsonField<String>_refusal()The refusal message generated by the model. final JsonField<ChatCompletionAudio>_audio()If the audio output modality is requested, this object contains data about the audio response from the model. final JsonField<ChatCompletionMessage.FunctionCall>_functionCall()Deprecated and replaced by tool_calls.final JsonField<List<ChatCompletionMessageToolCall>>_toolCalls()The tool calls generated by the model, such as function calls. final JsonField<String>_id()The identifier of the chat message. final Map<String, JsonValue>_additionalProperties()final ChatCompletionMessagetoChatCompletionMessage()final ChatCompletionStoreMessagevalidate()final ChatCompletionStoreMessage.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatCompletionStoreMessage.Builderbuilder()-
-
Method Detail
-
audio
final Optional<ChatCompletionAudio> audio()
If the audio output modality is requested, this object contains data about the audio response from the model. Learn more.
-
functionCall
@Deprecated(message = "deprecated") final Optional<ChatCompletionMessage.FunctionCall> functionCall()
Deprecated and replaced by
tool_calls. The name and arguments of a function that should be called, as generated by the model.
-
toolCalls
final Optional<List<ChatCompletionMessageToolCall>> toolCalls()
The tool calls generated by the model, such as function calls.
-
_audio
final JsonField<ChatCompletionAudio> _audio()
If the audio output modality is requested, this object contains data about the audio response from the model. Learn more.
-
_functionCall
@Deprecated(message = "deprecated") final JsonField<ChatCompletionMessage.FunctionCall> _functionCall()
Deprecated and replaced by
tool_calls. The name and arguments of a function that should be called, as generated by the model.
-
_toolCalls
final JsonField<List<ChatCompletionMessageToolCall>> _toolCalls()
The tool calls generated by the model, such as function calls.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toChatCompletionMessage
final ChatCompletionMessage toChatCompletionMessage()
-
validate
final ChatCompletionStoreMessage validate()
-
toBuilder
final ChatCompletionStoreMessage.Builder toBuilder()
-
builder
final static ChatCompletionStoreMessage.Builder builder()
-
-
-
-