Class ChatCompletionTool
- 
                    
                    
- All Implemented Interfaces:
 
public final class ChatCompletionTool 
- 
                
                    
                    
- 
                                
                            
                                
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatCompletionTool.BuilderA builder for ChatCompletionTool.
 
- 
                                
                            
                                
Method Summary
Modifier and Type Method Description final FunctionDefinitionfunction()final JsonValue_type()The type of the tool. final JsonField<FunctionDefinition>_function()Returns the raw JSON value of function. final Map<String, JsonValue>_additionalProperties()final ChatCompletionTool.BuildertoBuilder()final ChatCompletionToolvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatCompletionTool.Builderbuilder()Returns a mutable builder for constructing an instance of ChatCompletionTool. - 
                    
                    
                    
- 
                                
                            
                                
Method Detail
- 
                                        
function
final FunctionDefinition function()
 
- 
                                        
_type
final JsonValue _type()
The type of the tool. Currently, only
functionis supported.Expected to always return the following:
JsonValue.from("function")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
 
- 
                                        
_function
final JsonField<FunctionDefinition> _function()
Returns the raw JSON value of function.
Unlike function, this method doesn't throw if the JSON field has an unexpected type.
 
- 
                                        
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
 
- 
                                        
toBuilder
final ChatCompletionTool.Builder toBuilder()
 
- 
                                        
validate
final ChatCompletionTool validate()
 
- 
                                        
builder
final static ChatCompletionTool.Builder builder()
Returns a mutable builder for constructing an instance of ChatCompletionTool.
The following fields are required:
.function() 
 - 
                                        
 
 - 
                                
                            
                                
 
 - 
                    
                    
                    
 
 -