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 TvisitChatCompletionDeveloperMessageParam(ChatCompletionDeveloperMessageParam chatCompletionDeveloperMessageParam)Developer-provided instructions that the model should follow, regardless of messages sent by the user. abstract TvisitChatCompletionSystemMessageParam(ChatCompletionSystemMessageParam chatCompletionSystemMessageParam)Developer-provided instructions that the model should follow, regardless of messages sent by the user. abstract TvisitChatCompletionUserMessageParam(ChatCompletionUserMessageParam chatCompletionUserMessageParam)Messages sent by an end user, containing prompts or additional context information. abstract TvisitChatCompletionAssistantMessageParam(ChatCompletionAssistantMessageParam chatCompletionAssistantMessageParam)Messages sent by the model in response to user messages. abstract TvisitChatCompletionToolMessageParam(ChatCompletionToolMessageParam chatCompletionToolMessageParam)abstract TvisitChatCompletionFunctionMessageParam(ChatCompletionFunctionMessageParam chatCompletionFunctionMessageParam)Tunknown(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,
developermessages replace the previoussystemmessages.
-
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
developermessages 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)
-
-
-
-