Class ChatCompletionMessageParam
- 
                    
                    - All Implemented Interfaces:
 
 public final class ChatCompletionMessageParamDeveloper-provided instructions that the model should follow, regardless of messages sent by the user. With o1 models and newer, developermessages replace the previoussystemmessages.
- 
                
                    
                    - 
                                
                            
                                Nested Class SummaryNested Classes Modifier and Type Class Description public interfaceChatCompletionMessageParam.VisitorAn interface that defines how to map each variant of ChatCompletionMessageParam to a value of type T. 
 - 
                                
                            
                                Method SummaryModifier and Type Method Description final Optional<ChatCompletionDeveloperMessageParam>developer()Developer-provided instructions that the model should follow, regardless of messages sent by the user. final Optional<ChatCompletionSystemMessageParam>system()Developer-provided instructions that the model should follow, regardless of messages sent by the user. final Optional<ChatCompletionUserMessageParam>user()Messages sent by an end user, containing prompts or additional context information. final Optional<ChatCompletionAssistantMessageParam>assistant()Messages sent by the model in response to user messages. final Optional<ChatCompletionToolMessageParam>tool()final Optional<ChatCompletionFunctionMessageParam>function()final BooleanisDeveloper()final BooleanisSystem()final BooleanisUser()final BooleanisAssistant()final BooleanisTool()final BooleanisFunction()final ChatCompletionDeveloperMessageParamasDeveloper()Developer-provided instructions that the model should follow, regardless of messages sent by the user. final ChatCompletionSystemMessageParamasSystem()Developer-provided instructions that the model should follow, regardless of messages sent by the user. final ChatCompletionUserMessageParamasUser()Messages sent by an end user, containing prompts or additional context information. final ChatCompletionAssistantMessageParamasAssistant()Messages sent by the model in response to user messages. final ChatCompletionToolMessageParamasTool()final ChatCompletionFunctionMessageParamasFunction()final Optional<JsonValue>_json()final <T extends Any> Taccept(ChatCompletionMessageParam.Visitor<T> visitor)final ChatCompletionMessageParamvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatCompletionMessageParamofDeveloper(ChatCompletionDeveloperMessageParam developer)Developer-provided instructions that the model should follow, regardless of messages sent by the user. final static ChatCompletionMessageParamofSystem(ChatCompletionSystemMessageParam system)Developer-provided instructions that the model should follow, regardless of messages sent by the user. final static ChatCompletionMessageParamofUser(ChatCompletionUserMessageParam user)Messages sent by an end user, containing prompts or additional context information. final static ChatCompletionMessageParamofAssistant(ChatCompletionAssistantMessageParam assistant)Messages sent by the model in response to user messages. final static ChatCompletionMessageParamofTool(ChatCompletionToolMessageParam tool)final static ChatCompletionMessageParamofFunction(ChatCompletionFunctionMessageParam function)- 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        developerfinal Optional<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.
 - 
                                        systemfinal Optional<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.
 - 
                                        userfinal Optional<ChatCompletionUserMessageParam> user() Messages sent by an end user, containing prompts or additional context information. 
 - 
                                        assistantfinal Optional<ChatCompletionAssistantMessageParam> assistant() Messages sent by the model in response to user messages. 
 - 
                                        toolfinal Optional<ChatCompletionToolMessageParam> tool() 
 - 
                                        function@Deprecated(message = "deprecated") final Optional<ChatCompletionFunctionMessageParam> function() 
 - 
                                        isDeveloperfinal Boolean isDeveloper() 
 - 
                                        isAssistantfinal Boolean isAssistant() 
 - 
                                        isFunction@Deprecated(message = "deprecated") final Boolean isFunction() 
 - 
                                        asDeveloperfinal ChatCompletionDeveloperMessageParam asDeveloper() Developer-provided instructions that the model should follow, regardless of messages sent by the user. With o1 models and newer, developermessages replace the previoussystemmessages.
 - 
                                        asSystemfinal ChatCompletionSystemMessageParam asSystem() 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.
 - 
                                        asUserfinal ChatCompletionUserMessageParam asUser() Messages sent by an end user, containing prompts or additional context information. 
 - 
                                        asAssistantfinal ChatCompletionAssistantMessageParam asAssistant() Messages sent by the model in response to user messages. 
 - 
                                        asToolfinal ChatCompletionToolMessageParam asTool() 
 - 
                                        asFunction@Deprecated(message = "deprecated") final ChatCompletionFunctionMessageParam asFunction() 
 - 
                                        acceptfinal <T extends Any> T accept(ChatCompletionMessageParam.Visitor<T> visitor) 
 - 
                                        validatefinal ChatCompletionMessageParam validate() 
 - 
                                        ofDeveloperfinal static ChatCompletionMessageParam ofDeveloper(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.
 - 
                                        ofSystemfinal static ChatCompletionMessageParam ofSystem(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.
 - 
                                        ofUserfinal static ChatCompletionMessageParam ofUser(ChatCompletionUserMessageParam user) Messages sent by an end user, containing prompts or additional context information. 
 - 
                                        ofAssistantfinal static ChatCompletionMessageParam ofAssistant(ChatCompletionAssistantMessageParam assistant) Messages sent by the model in response to user messages. 
 - 
                                        ofToolfinal static ChatCompletionMessageParam ofTool(ChatCompletionToolMessageParam tool) 
 - 
                                        ofFunction@Deprecated(message = "deprecated") final static ChatCompletionMessageParam ofFunction(ChatCompletionFunctionMessageParam function) 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-