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
visitDeveloper(ChatCompletionDeveloperMessageParam developer)
Developer-provided instructions that the model should follow, regardless of messages sent by the user. abstract T
visitSystem(ChatCompletionSystemMessageParam system)
Developer-provided instructions that the model should follow, regardless of messages sent by the user. abstract T
visitUser(ChatCompletionUserMessageParam user)
Messages sent by an end user, containing prompts or additional context information. abstract T
visitAssistant(ChatCompletionAssistantMessageParam assistant)
Messages sent by the model in response to user messages. abstract T
visitTool(ChatCompletionToolMessageParam tool)
abstract T
visitFunction(ChatCompletionFunctionMessageParam function)
T
unknown(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,
developer
messages replace the previoussystem
messages.
-
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
developer
messages 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)
-
-
-
-