Class ChatCompletionMessageToolCall
- 
                    
                    - All Implemented Interfaces:
 
 public final class ChatCompletionMessageToolCallA call to a function tool created by the model. 
- 
                
                    
                    - 
                                
                            
                                Nested Class SummaryNested Classes Modifier and Type Class Description public interfaceChatCompletionMessageToolCall.VisitorAn interface that defines how to map each variant of ChatCompletionMessageToolCall to a value of type T. 
 - 
                                
                            
                                Method Summary- 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        functionfinal Optional<ChatCompletionMessageFunctionToolCall> function() A call to a function tool created by the model. 
 - 
                                        customfinal Optional<ChatCompletionMessageCustomToolCall> custom() A call to a custom tool created by the model. 
 - 
                                        isFunctionfinal Boolean isFunction() 
 - 
                                        asFunctionfinal ChatCompletionMessageFunctionToolCall asFunction() A call to a function tool created by the model. 
 - 
                                        asCustomfinal ChatCompletionMessageCustomToolCall asCustom() A call to a custom tool created by the model. 
 - 
                                        acceptfinal <T extends Any> T accept(ChatCompletionMessageToolCall.Visitor<T> visitor) 
 - 
                                        validatefinal ChatCompletionMessageToolCall validate() 
 - 
                                        ofFunctionfinal static ChatCompletionMessageToolCall ofFunction(ChatCompletionMessageFunctionToolCall function) A call to a function tool created by the model. 
 - 
                                        ofCustomfinal static ChatCompletionMessageToolCall ofCustom(ChatCompletionMessageCustomToolCall custom) A call to a custom tool created by the model. 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-