Class FunctionInfo
java.lang.Object
uno.anahata.ai.tools.FunctionInfo
A metadata class that links a Gemini
FunctionDeclaration to its
underlying Java Method implementation.
This is used internally by the ToolManager to manage the registry
of available tools and to perform the actual method invocation.
- Author:
- anahata
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal com.google.genai.types.FunctionDeclarationThe Gemini API function declaration, including name, description, and schema.final MethodThe Java method that implements the tool's logic. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetSize()Calculates the approximate size of the function declaration in characters when serialized to JSON.
-
Field Details
-
declaration
public final com.google.genai.types.FunctionDeclaration declarationThe Gemini API function declaration, including name, description, and schema. -
method
The Java method that implements the tool's logic.
-
-
Constructor Details
-
FunctionInfo
public FunctionInfo()
-
-
Method Details
-
getSize
public long getSize()Calculates the approximate size of the function declaration in characters when serialized to JSON.- Returns:
- The character length of the JSON representation.
-
