Gemini can serialize assistant messages with its native "model" role.
(role any)
| 139 | |
| 140 | // Gemini can serialize assistant messages with its native "model" role. |
| 141 | func isAssistantRole(role any) bool { |
| 142 | roleValue, _ := role.(string) |
| 143 | return roleValue == "assistant" || roleValue == "model" |
| 144 | } |
| 145 | |
| 146 | // Real provider signatures are preserved when present. |
| 147 | func ensureThoughtSignature(toolCall map[string]any) bool { |
no outgoing calls
no test coverage detected