Commit abdd004
committed
Fix gemini_investigate: revert function-result role to "user" and thread functionCall.id through to functionResponse.id for Gemini 3 compatibility
The 2026-07-25 "context drift" fix changed function-result turns from role:"user" to role:"function", based on an older multi-turn doc example. That contract doesn't match Gemini 3 models (gemini-flash-latest now resolves to gemini-3.5-flash): current docs for generateContent with gemini-3.6-flash show function-result turns going back with role:"user", and functionResponse now also carrying an id echoing the model's original functionCall.id. This reverts the role and adds id-threading so both the original convention and Gemini 3's schema are satisfied.1 parent 6addcf6 commit abdd004
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
800 | 800 | | |
801 | 801 | | |
802 | 802 | | |
803 | | - | |
| 803 | + | |
804 | 804 | | |
805 | 805 | | |
806 | 806 | | |
| |||
813 | 813 | | |
814 | 814 | | |
815 | 815 | | |
816 | | - | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
817 | 821 | | |
818 | | - | |
| 822 | + | |
819 | 823 | | |
820 | 824 | | |
821 | 825 | | |
| |||
0 commit comments