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 TvisitDeveloper(ChatCompletionDeveloperMessageParam developer)Developer-provided instructions that the model should follow, regardless of messages sent by the user. abstract TvisitSystem(ChatCompletionSystemMessageParam system)Developer-provided instructions that the model should follow, regardless of messages sent by the user. abstract TvisitUser(ChatCompletionUserMessageParam user)Messages sent by an end user, containing prompts or additional context information. abstract TvisitAssistant(ChatCompletionAssistantMessageParam assistant)Messages sent by the model in response to user messages. abstract TvisitTool(ChatCompletionToolMessageParam tool)abstract TvisitFunction(ChatCompletionFunctionMessageParam function)Tunknown(JsonValue json)-
-
Method Detail
-
visitDeveloper
abstract T visitDeveloper(ChatCompletionDeveloperMessageParam developer)
Developer-provided instructions that the model should follow, regardless of messages sent by the user. With o1 models and newer,
developermessages replace the previoussystemmessages.
-
visitSystem
abstract T visitSystem(ChatCompletionSystemMessageParam system)
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.
-
visitUser
abstract T visitUser(ChatCompletionUserMessageParam user)
Messages sent by an end user, containing prompts or additional context information.
-
visitAssistant
abstract T visitAssistant(ChatCompletionAssistantMessageParam assistant)
Messages sent by the model in response to user messages.
-
visitTool
abstract T visitTool(ChatCompletionToolMessageParam tool)
-
visitFunction
@Deprecated(message = "deprecated") abstract T visitFunction(ChatCompletionFunctionMessageParam function)
-
-
-
-