Package com.openai.models
Class ChatCompletionUserMessageParam
-
- All Implemented Interfaces:
public final class ChatCompletionUserMessageParam
Messages sent by an end user, containing prompts or additional context information.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ChatCompletionUserMessageParam.Builder
public final class
ChatCompletionUserMessageParam.Content
The contents of the user message.
public final class
ChatCompletionUserMessageParam.Role
The role of the messages author, in this case
user
.
-
Method Summary
Modifier and Type Method Description final ChatCompletionUserMessageParam.Content
content()
The contents of the user message. final ChatCompletionUserMessageParam.Role
role()
The role of the messages author, in this case user
.final Optional<String>
name()
An optional name for the participant. final JsonField<ChatCompletionUserMessageParam.Content>
_content()
The contents of the user message. final JsonField<ChatCompletionUserMessageParam.Role>
_role()
The role of the messages author, in this case user
.final JsonField<String>
_name()
An optional name for the participant. final Map<String, JsonValue>
_additionalProperties()
final ChatCompletionUserMessageParam
validate()
final ChatCompletionUserMessageParam.Builder
toBuilder()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ChatCompletionUserMessageParam.Builder
builder()
-
-
Method Detail
-
content
final ChatCompletionUserMessageParam.Content content()
The contents of the user message.
-
role
final ChatCompletionUserMessageParam.Role role()
The role of the messages author, in this case
user
.
-
name
final Optional<String> name()
An optional name for the participant. Provides the model information to differentiate between participants of the same role.
-
_content
final JsonField<ChatCompletionUserMessageParam.Content> _content()
The contents of the user message.
-
_role
final JsonField<ChatCompletionUserMessageParam.Role> _role()
The role of the messages author, in this case
user
.
-
_name
final JsonField<String> _name()
An optional name for the participant. Provides the model information to differentiate between participants of the same role.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
validate
final ChatCompletionUserMessageParam validate()
-
toBuilder
final ChatCompletionUserMessageParam.Builder toBuilder()
-
builder
final static ChatCompletionUserMessageParam.Builder builder()
-
-
-
-