Package com.openai.models
Interface ChatCompletionMessageParam.Visitor
-
- All Implemented Interfaces:
public interface ChatCompletionMessageParam.Visitor<T extends Object>
-
-
Method Summary
Modifier and Type Method Description abstract T
visitChatCompletionDeveloperMessageParam(ChatCompletionDeveloperMessageParam chatCompletionDeveloperMessageParam)
Developer-provided instructions that the model should follow, regardless of messages sent by the user. abstract T
visitChatCompletionSystemMessageParam(ChatCompletionSystemMessageParam chatCompletionSystemMessageParam)
Developer-provided instructions that the model should follow, regardless of messages sent by the user. abstract T
visitChatCompletionUserMessageParam(ChatCompletionUserMessageParam chatCompletionUserMessageParam)
Messages sent by an end user, containing prompts or additional context information. abstract T
visitChatCompletionAssistantMessageParam(ChatCompletionAssistantMessageParam chatCompletionAssistantMessageParam)
Messages sent by the model in response to user messages. abstract T
visitChatCompletionToolMessageParam(ChatCompletionToolMessageParam chatCompletionToolMessageParam)
abstract T
visitChatCompletionFunctionMessageParam(ChatCompletionFunctionMessageParam chatCompletionFunctionMessageParam)
T
unknown(JsonValue json)
-
-
Method Detail
-
visitChatCompletionDeveloperMessageParam
abstract T visitChatCompletionDeveloperMessageParam(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.
-
visitChatCompletionSystemMessageParam
abstract T visitChatCompletionSystemMessageParam(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.
-
visitChatCompletionUserMessageParam
abstract T visitChatCompletionUserMessageParam(ChatCompletionUserMessageParam chatCompletionUserMessageParam)
Messages sent by an end user, containing prompts or additional context information.
-
visitChatCompletionAssistantMessageParam
abstract T visitChatCompletionAssistantMessageParam(ChatCompletionAssistantMessageParam chatCompletionAssistantMessageParam)
Messages sent by the model in response to user messages.
-
visitChatCompletionToolMessageParam
abstract T visitChatCompletionToolMessageParam(ChatCompletionToolMessageParam chatCompletionToolMessageParam)
-
visitChatCompletionFunctionMessageParam
@Deprecated(message = "deprecated") abstract T visitChatCompletionFunctionMessageParam(ChatCompletionFunctionMessageParam chatCompletionFunctionMessageParam)
-
-
-
-