Skip to content

Commit 5bf9cb0

Browse files
google-genai-botcopybara-github
authored andcommitted
feat: Make FunctionDeclaration.buildFunctionDeclaration public
PiperOrigin-RevId: 780586097
1 parent e21807c commit 5bf9cb0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/main/java/com/google/adk/tools/FunctionCallingUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ public final class FunctionCallingUtils {
3939

4040
private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
4141

42-
static FunctionDeclaration buildFunctionDeclaration(Method func, List<String> ignoreParams) {
42+
public static FunctionDeclaration buildFunctionDeclaration(
43+
Method func, List<String> ignoreParams) {
4344
String name =
4445
func.isAnnotationPresent(Annotations.Schema.class)
4546
&& !func.getAnnotation(Annotations.Schema.class).name().isEmpty()

0 commit comments

Comments
 (0)