Interface ChatCompletionMessageParam.Visitor
- 
                    
                    - All Implemented Interfaces:
 
 public interface ChatCompletionMessageParam.Visitor<T extends Object>An interface that defines how to map each variant of ChatCompletionMessageParam to a value of type T. 
- 
                
                    
                    - 
                                
                            
                                Method SummaryModifier 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)Maps an unknown variant of ChatCompletionMessageParam to a value of type T. - 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        visitDeveloperabstract 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.
 - 
                                        visitSystemabstract 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.
 - 
                                        visitUserabstract T visitUser(ChatCompletionUserMessageParam user) Messages sent by an end user, containing prompts or additional context information. 
 - 
                                        visitAssistantabstract T visitAssistant(ChatCompletionAssistantMessageParam assistant) Messages sent by the model in response to user messages. 
 - 
                                        visitToolabstract T visitTool(ChatCompletionToolMessageParam tool) 
 - 
                                        visitFunction@Deprecated(message = "deprecated") abstract T visitFunction(ChatCompletionFunctionMessageParam function) 
 - 
                                        unknownT unknown(JsonValue json) Maps an unknown variant of ChatCompletionMessageParam to a value of type T. An instance of ChatCompletionMessageParam can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of. 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-