Commit d018ad4
committed
This commit adds a new test to
The new test, `testTools_enumParameter`, defines a function with a parameter that is constrained to a list of enum values. It then verifies that the model correctly calls this function with one of the allowed enum values when prompted. This increases the test coverage of the tool functionality in the Firebase AI library.ToolTests.kt to verify the handling of enum parameters in tool function schemas.1 parent 64b488f commit d018ad4
File tree
1 file changed
+27
-0
lines changed- firebase-ai/src/androidTest/kotlin/com/google/firebase/ai
1 file changed
+27
-0
lines changedLines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
296 | 323 | | |
297 | 324 | | |
298 | 325 | | |
| |||
0 commit comments