We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd0dd2e commit 6868ce5Copy full SHA for 6868ce5
firebase-ai/src/test/java/com/google/firebase/ai/type/ToolTest.kt
@@ -27,6 +27,7 @@ internal class ToolTest {
27
28
tool.googleSearch.shouldNotBeNull()
29
tool.functionDeclarations.shouldBeNull()
30
+ tool.codeExecution.shouldBeNull()
31
}
32
33
@Test
@@ -36,5 +37,14 @@ internal class ToolTest {
36
37
38
tool.functionDeclarations?.first() shouldBe functionDeclaration
39
tool.googleSearch.shouldBeNull()
40
41
+ }
42
+
43
+ @Test
44
+ fun `codeExecution() creates a tool with code execution`() {
45
+ val tool = Tool.codeExecution()
46
+ tool.codeExecution.shouldNotBeNull()
47
+ tool.functionDeclarations.shouldBeNull()
48
+ tool.googleSearch.shouldBeNull()
49
50
0 commit comments