Class Function
java.lang.Object
com.google.genai.gaos.models.interactions.Function
- All Implemented Interfaces:
AgentTool,FunctionResultSubcontent,Tool
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Function.Builderbuilder()If true, the function's loading is deferred.A description of the function.booleaninthashCode()name()The name of the function.The JSON Schema for the function's parameters.A brief description of the function, shown to the model as a short summary of functions with `defer_loading` set to true.toString()type()withDeferLoading(Boolean deferLoading) If true, the function's loading is deferred.withDescription(String description) A description of the function.The name of the function.withParameters(Object parameters) The JSON Schema for the function's parameters.withShortDescription(String shortDescription) A brief description of the function, shown to the model as a short summary of functions with `defer_loading` set to true.
-
Constructor Details
-
Function
-
Function
public Function() -
Function
Retained for source and binary compatibility with SDK versions that predatedefer_loadingandshort_description. Preferbuilder().
-
-
Method Details
-
deferLoading
If true, the function's loading is deferred. -
description
A description of the function. -
name
The name of the function. -
parameters
The JSON Schema for the function's parameters.Supports a subset of JSON Schema. `minLength`, `maxLength`, `minProperties`, `maxProperties`, `uniqueItems`, `contains`, `minContains`, and `maxContains` are ignored and not enforced.
-
shortDescription
A brief description of the function, shown to the model as a short summary of functions with `defer_loading` set to true. -
type
-
builder
-
withDeferLoading
If true, the function's loading is deferred. -
withDescription
A description of the function. -
withName
The name of the function. -
withParameters
The JSON Schema for the function's parameters.Supports a subset of JSON Schema. `minLength`, `maxLength`, `minProperties`, `maxProperties`, `uniqueItems`, `contains`, `minContains`, and `maxContains` are ignored and not enforced.
-
withShortDescription
A brief description of the function, shown to the model as a short summary of functions with `defer_loading` set to true. -
equals
-
hashCode
public int hashCode() -
toString
-