Class ChatCompletionAssistantMessageParam
-
- All Implemented Interfaces:
public final class ChatCompletionAssistantMessageParam
Messages sent by the model in response to user messages.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ChatCompletionAssistantMessageParam.Builder
A builder for ChatCompletionAssistantMessageParam.
public final class
ChatCompletionAssistantMessageParam.Audio
Data about a previous audio response from the model. Learn more.
public final class
ChatCompletionAssistantMessageParam.Content
The contents of the assistant message. Required unless
tool_calls
orfunction_call
is specified.public final class
ChatCompletionAssistantMessageParam.FunctionCall
Deprecated and replaced by
tool_calls
. The name and arguments of a function that should be called, as generated by the model.
-
Method Summary
Modifier and Type Method Description final JsonValue
_role()
The role of the messages author, in this case assistant
.final Optional<ChatCompletionAssistantMessageParam.Audio>
audio()
Data about a previous audio response from the model. final Optional<ChatCompletionAssistantMessageParam.Content>
content()
The contents of the assistant message. final Optional<ChatCompletionAssistantMessageParam.FunctionCall>
functionCall()
Deprecated and replaced by tool_calls
.final Optional<String>
name()
An optional name for the participant. final Optional<String>
refusal()
The refusal message by the assistant. final Optional<List<ChatCompletionMessageToolCall>>
toolCalls()
The tool calls generated by the model, such as function calls. final JsonField<ChatCompletionAssistantMessageParam.Audio>
_audio()
Data about a previous audio response from the model. final JsonField<ChatCompletionAssistantMessageParam.Content>
_content()
The contents of the assistant message. final JsonField<ChatCompletionAssistantMessageParam.FunctionCall>
_functionCall()
Deprecated and replaced by tool_calls
.final JsonField<String>
_name()
An optional name for the participant. final JsonField<String>
_refusal()
The refusal message by the assistant. final JsonField<List<ChatCompletionMessageToolCall>>
_toolCalls()
The tool calls generated by the model, such as function calls. final Map<String, JsonValue>
_additionalProperties()
final ChatCompletionAssistantMessageParam
validate()
final ChatCompletionAssistantMessageParam.Builder
toBuilder()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ChatCompletionAssistantMessageParam.Builder
builder()
-
-
Method Detail
-
audio
final Optional<ChatCompletionAssistantMessageParam.Audio> audio()
Data about a previous audio response from the model. Learn more.
-
content
final Optional<ChatCompletionAssistantMessageParam.Content> content()
The contents of the assistant message. Required unless
tool_calls
orfunction_call
is specified.
-
functionCall
@Deprecated(message = "deprecated") final Optional<ChatCompletionAssistantMessageParam.FunctionCall> functionCall()
Deprecated and replaced by
tool_calls
. The name and arguments of a function that should be called, as generated by the model.
-
name
final Optional<String> name()
An optional name for the participant. Provides the model information to differentiate between participants of the same role.
-
toolCalls
final Optional<List<ChatCompletionMessageToolCall>> toolCalls()
The tool calls generated by the model, such as function calls.
-
_audio
final JsonField<ChatCompletionAssistantMessageParam.Audio> _audio()
Data about a previous audio response from the model. Learn more.
-
_content
final JsonField<ChatCompletionAssistantMessageParam.Content> _content()
The contents of the assistant message. Required unless
tool_calls
orfunction_call
is specified.
-
_functionCall
@Deprecated(message = "deprecated") final JsonField<ChatCompletionAssistantMessageParam.FunctionCall> _functionCall()
Deprecated and replaced by
tool_calls
. The name and arguments of a function that should be called, as generated by the model.
-
_name
final JsonField<String> _name()
An optional name for the participant. Provides the model information to differentiate between participants of the same role.
-
_toolCalls
final JsonField<List<ChatCompletionMessageToolCall>> _toolCalls()
The tool calls generated by the model, such as function calls.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
validate
final ChatCompletionAssistantMessageParam validate()
-
toBuilder
final ChatCompletionAssistantMessageParam.Builder toBuilder()
-
builder
final static ChatCompletionAssistantMessageParam.Builder builder()
-
-
-
-