Commit 4b8f228
authored
feat(firebaseai): server prompt chat and function calling (#17972)
* add chat and function back to server prompt template
* auto function calling for server prompt template
* update with api decision
* add tool structure
* kts support
* fix compile error for server template page
* Add auto function calling to chat stream, and add test cases
* add tools and toolConfig into template request
* fix the template function name and update the schema override sample
* add too config
* some fix for e2e test
* fix analyzer
* tiny year change
* bot review comment
* fix analyzer and formatter
* remove unrelated files from PR
* fix formatter1 parent bb1e04f commit 4b8f228
9 files changed
Lines changed: 728 additions & 113 deletions
File tree
- packages/firebase_ai/firebase_ai
- example/lib
- pages
- utils
- lib
- src
- server_template
Lines changed: 2 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | 35 | | |
42 | 36 | | |
43 | 37 | | |
| |||
80 | 74 | | |
81 | 75 | | |
82 | 76 | | |
83 | | - | |
| 77 | + | |
84 | 78 | | |
85 | 79 | | |
86 | 80 | | |
| |||
231 | 225 | | |
232 | 226 | | |
233 | 227 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | 228 | | |
245 | 229 | | |
246 | 230 | | |
| |||
301 | 285 | | |
302 | 286 | | |
303 | 287 | | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | 288 | | |
322 | 289 | | |
323 | 290 | | |
| |||
0 commit comments