Skip to content

Commit b7e1397

Browse files
authored
[Ai] Fix integration test constructor usage (#7118)
The test is using the `internal` constructor instead of relying on the public factory method which caused it fail with the new grounding functionality.
1 parent 1925119 commit b7e1397

File tree

1 file changed

+1
-1
lines changed
  • firebase-ai/src/androidTest/kotlin/com/google/firebase/ai

1 file changed

+1
-1
lines changed

firebase-ai/src/androidTest/kotlin/com/google/firebase/ai/ToolTests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ class ToolTests {
304304
ToolConfig(
305305
functionCallingConfig = FunctionCallingConfig(FunctionCallingConfig.Mode.ANY)
306306
),
307-
tools = listOf(Tool(functions.toList())),
307+
tools = listOf(Tool.functionDeclarations(functions.toList())),
308308
)
309309
return model
310310
}

0 commit comments

Comments
 (0)