Class ChatCompletionAssistantMessageParam
-
- All Implemented Interfaces:
public final class ChatCompletionAssistantMessageParamMessages sent by the model in response to user messages.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatCompletionAssistantMessageParam.Builderpublic final classChatCompletionAssistantMessageParam.AudioData about a previous audio response from the model. Learn more.
public final classChatCompletionAssistantMessageParam.ContentThe contents of the assistant message. Required unless
tool_callsorfunction_callis specified.public final classChatCompletionAssistantMessageParam.FunctionCallDeprecated 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 ChatCompletionAssistantMessageParamvalidate()final ChatCompletionAssistantMessageParam.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatCompletionAssistantMessageParam.Builderbuilder()-
-
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_callsorfunction_callis 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_callsorfunction_callis 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()
-
-
-
-