Package com.google.genai.types
Class ToolConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ToolConfig
Tool config.
This config is shared for all tools provided in the request.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ToolConfig.Builderbuilder()Instantiates a builder for ToolConfig.static ToolConfigDeserializes a JSON string to a ToolConfig object.abstract Optional<FunctionCallingConfig>Optional.abstract Optional<RetrievalConfig>Optional.abstract ToolConfig.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
ToolConfig
public ToolConfig()
-
-
Method Details
-
functionCallingConfig
Optional. Function calling config. -
retrievalConfig
Optional. Retrieval config. -
builder
Instantiates a builder for ToolConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a ToolConfig object.
-