Class FunctionTool
- 
                    
                    - All Implemented Interfaces:
 
 public final class FunctionToolDefines a function in your own code the model can choose to call. Learn more about function calling. 
- 
                
                    
                    - 
                                
                            
                                Nested Class SummaryNested Classes Modifier and Type Class Description public final classFunctionTool.BuilderA builder for FunctionTool. public final classFunctionTool.ParametersA JSON schema object describing the parameters of the function. 
 - 
                                
                            
                                Method SummaryModifier and Type Method Description final Stringname()The name of the function to call. final Optional<FunctionTool.Parameters>parameters()A JSON schema object describing the parameters of the function. final Optional<Boolean>strict()Whether to enforce strict parameter validation. final JsonValue_type()The type of the function tool. final Optional<String>description()A description of the function. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<FunctionTool.Parameters>_parameters()Returns the raw JSON value of parameters. final JsonField<Boolean>_strict()Returns the raw JSON value of strict. final JsonField<String>_description()Returns the raw JSON value of description. final Map<String, JsonValue>_additionalProperties()final FunctionTool.BuildertoBuilder()final FunctionToolvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static FunctionTool.Builderbuilder()Returns a mutable builder for constructing an instance of FunctionTool. - 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        parametersfinal Optional<FunctionTool.Parameters> parameters() A JSON schema object describing the parameters of the function. 
 - 
                                        strictfinal Optional<Boolean> strict() Whether to enforce strict parameter validation. Default true.
 - 
                                        _typefinal JsonValue _type() The type of the function tool. Always function.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). 
 - 
                                        descriptionfinal Optional<String> description() A description of the function. Used by the model to determine whether or not to call the function. 
 - 
                                        _namefinal JsonField<String> _name() Returns the raw JSON value of name. Unlike name, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _parametersfinal JsonField<FunctionTool.Parameters> _parameters() Returns the raw JSON value of parameters. Unlike parameters, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _strictfinal JsonField<Boolean> _strict() Returns the raw JSON value of strict. Unlike strict, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _descriptionfinal JsonField<String> _description() Returns the raw JSON value of description. Unlike description, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _additionalPropertiesfinal Map<String, JsonValue> _additionalProperties() 
 - 
                                        toBuilderfinal FunctionTool.Builder toBuilder() 
 - 
                                        validatefinal FunctionTool validate() 
 - 
                                        builderfinal static FunctionTool.Builder builder() Returns a mutable builder for constructing an instance of FunctionTool. The following fields are required: .name() .parameters() .strict()
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-