Package com.openai.models
Class ChatCompletionUserMessageParam
-
- All Implemented Interfaces:
public final class ChatCompletionUserMessageParamMessages sent by an end user, containing prompts or additional context information.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatCompletionUserMessageParam.Builderpublic final classChatCompletionUserMessageParam.ContentThe contents of the user message.
public final classChatCompletionUserMessageParam.RoleThe role of the messages author, in this case
user.
-
Method Summary
Modifier and Type Method Description final ChatCompletionUserMessageParam.Contentcontent()The contents of the user message. final ChatCompletionUserMessageParam.Rolerole()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 ChatCompletionUserMessageParamvalidate()final ChatCompletionUserMessageParam.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatCompletionUserMessageParam.Builderbuilder()-
-
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()
-
-
-
-