Class ChatCompletionMessageToolCall
- 
                    
                    
- All Implemented Interfaces:
 
public final class ChatCompletionMessageToolCallA call to a function tool created by the model.
 
- 
                
                    
                    
- 
                                
                            
                                
Nested Class Summary
Nested 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
- 
                                        
function
final Optional<ChatCompletionMessageFunctionToolCall> function()
A call to a function tool created by the model.
 
- 
                                        
custom
final Optional<ChatCompletionMessageCustomToolCall> custom()
A call to a custom tool created by the model.
 
- 
                                        
isFunction
final Boolean isFunction()
 
- 
                                        
asFunction
final ChatCompletionMessageFunctionToolCall asFunction()
A call to a function tool created by the model.
 
- 
                                        
asCustom
final ChatCompletionMessageCustomToolCall asCustom()
A call to a custom tool created by the model.
 
- 
                                        
accept
final <T extends Any> T accept(ChatCompletionMessageToolCall.Visitor<T> visitor)
 
- 
                                        
validate
final ChatCompletionMessageToolCall validate()
 
- 
                                        
ofFunction
final static ChatCompletionMessageToolCall ofFunction(ChatCompletionMessageFunctionToolCall function)
A call to a function tool created by the model.
 
- 
                                        
ofCustom
final static ChatCompletionMessageToolCall ofCustom(ChatCompletionMessageCustomToolCall custom)
A call to a custom tool created by the model.
 
 - 
                                        
 
 - 
                                
                            
                                
 
 - 
                    
                    
                    
 
 -