Class ToolSearch
java.lang.Object
com.google.genai.gaos.models.interactions.ToolSearch
- All Implemented Interfaces:
Tool
ToolSearch
A tool that allows the model to dynamically search for and load tools into the model’s context on demand. This allows clients to avoid loading all tool definitions up front and may help reduce overall token usage and cost.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionToolSearch(String description, Execution execution, String name, Object parameters) -
Method Summary
Modifier and TypeMethodDescriptionstatic ToolSearch.Builderbuilder()A description of the function.booleanThe execution mode of the tool search.inthashCode()name()The name of the function.The JSON Schema for the function's parameters.toString()type()withDescription(String description) A description of the function.withExecution(Execution execution) The execution mode of the tool search.The name of the function.withParameters(Object parameters) The JSON Schema for the function's parameters.
-
Constructor Details
-
ToolSearch
-
ToolSearch
public ToolSearch()
-
-
Method Details
-
description
A description of the function. To be set only for client-side execution. -
execution
The execution mode of the tool search. -
name
The name of the function. To be set only for client-side execution. -
parameters
The JSON Schema for the function's parameters. To be set only for client-side execution. -
type
-
builder
-
withDescription
A description of the function. To be set only for client-side execution. -
withExecution
The execution mode of the tool search. -
withName
The name of the function. To be set only for client-side execution. -
withParameters
The JSON Schema for the function's parameters. To be set only for client-side execution. -
equals
-
hashCode
public int hashCode() -
toString
-