Class ChatCompletionMessageParam
-
- All Implemented Interfaces:
public final class ChatCompletionMessageParam
Developer-provided instructions that the model should follow, regardless of messages sent by the user. With o1 models and newer,
developer
messages replace the previoussystem
messages.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
ChatCompletionMessageParam.Visitor
public final class
ChatCompletionMessageParam.Deserializer
public final class
ChatCompletionMessageParam.Serializer
-
Method Summary
-
-
Method Detail
-
chatCompletionDeveloperMessageParam
final Optional<ChatCompletionDeveloperMessageParam> chatCompletionDeveloperMessageParam()
Developer-provided instructions that the model should follow, regardless of messages sent by the user. With o1 models and newer,
developer
messages replace the previoussystem
messages.
-
chatCompletionSystemMessageParam
final Optional<ChatCompletionSystemMessageParam> chatCompletionSystemMessageParam()
Developer-provided instructions that the model should follow, regardless of messages sent by the user. With o1 models and newer, use
developer
messages for this purpose instead.
-
chatCompletionUserMessageParam
final Optional<ChatCompletionUserMessageParam> chatCompletionUserMessageParam()
Messages sent by an end user, containing prompts or additional context information.
-
chatCompletionAssistantMessageParam
final Optional<ChatCompletionAssistantMessageParam> chatCompletionAssistantMessageParam()
Messages sent by the model in response to user messages.
-
chatCompletionToolMessageParam
final Optional<ChatCompletionToolMessageParam> chatCompletionToolMessageParam()
-
chatCompletionFunctionMessageParam
@Deprecated(message = "deprecated") final Optional<ChatCompletionFunctionMessageParam> chatCompletionFunctionMessageParam()
-
isChatCompletionDeveloperMessageParam
final Boolean isChatCompletionDeveloperMessageParam()
-
isChatCompletionSystemMessageParam
final Boolean isChatCompletionSystemMessageParam()
-
isChatCompletionUserMessageParam
final Boolean isChatCompletionUserMessageParam()
-
isChatCompletionAssistantMessageParam
final Boolean isChatCompletionAssistantMessageParam()
-
isChatCompletionToolMessageParam
final Boolean isChatCompletionToolMessageParam()
-
isChatCompletionFunctionMessageParam
@Deprecated(message = "deprecated") final Boolean isChatCompletionFunctionMessageParam()
-
asChatCompletionDeveloperMessageParam
final ChatCompletionDeveloperMessageParam asChatCompletionDeveloperMessageParam()
Developer-provided instructions that the model should follow, regardless of messages sent by the user. With o1 models and newer,
developer
messages replace the previoussystem
messages.
-
asChatCompletionSystemMessageParam
final ChatCompletionSystemMessageParam asChatCompletionSystemMessageParam()
Developer-provided instructions that the model should follow, regardless of messages sent by the user. With o1 models and newer, use
developer
messages for this purpose instead.
-
asChatCompletionUserMessageParam
final ChatCompletionUserMessageParam asChatCompletionUserMessageParam()
Messages sent by an end user, containing prompts or additional context information.
-
asChatCompletionAssistantMessageParam
final ChatCompletionAssistantMessageParam asChatCompletionAssistantMessageParam()
Messages sent by the model in response to user messages.
-
asChatCompletionToolMessageParam
final ChatCompletionToolMessageParam asChatCompletionToolMessageParam()
-
asChatCompletionFunctionMessageParam
@Deprecated(message = "deprecated") final ChatCompletionFunctionMessageParam asChatCompletionFunctionMessageParam()
-
accept
final <T extends Any> T accept(ChatCompletionMessageParam.Visitor<T> visitor)
-
validate
final ChatCompletionMessageParam validate()
-
ofChatCompletionDeveloperMessageParam
final static ChatCompletionMessageParam ofChatCompletionDeveloperMessageParam(ChatCompletionDeveloperMessageParam chatCompletionDeveloperMessageParam)
Developer-provided instructions that the model should follow, regardless of messages sent by the user. With o1 models and newer,
developer
messages replace the previoussystem
messages.
-
ofChatCompletionSystemMessageParam
final static ChatCompletionMessageParam ofChatCompletionSystemMessageParam(ChatCompletionSystemMessageParam chatCompletionSystemMessageParam)
Developer-provided instructions that the model should follow, regardless of messages sent by the user. With o1 models and newer, use
developer
messages for this purpose instead.
-
ofChatCompletionUserMessageParam
final static ChatCompletionMessageParam ofChatCompletionUserMessageParam(ChatCompletionUserMessageParam chatCompletionUserMessageParam)
Messages sent by an end user, containing prompts or additional context information.
-
ofChatCompletionAssistantMessageParam
final static ChatCompletionMessageParam ofChatCompletionAssistantMessageParam(ChatCompletionAssistantMessageParam chatCompletionAssistantMessageParam)
Messages sent by the model in response to user messages.
-
ofChatCompletionToolMessageParam
final static ChatCompletionMessageParam ofChatCompletionToolMessageParam(ChatCompletionToolMessageParam chatCompletionToolMessageParam)
-
ofChatCompletionFunctionMessageParam
@Deprecated(message = "deprecated") final static ChatCompletionMessageParam ofChatCompletionFunctionMessageParam(ChatCompletionFunctionMessageParam chatCompletionFunctionMessageParam)
-
-
-
-