-
Notifications
You must be signed in to change notification settings - Fork 669
Open
Labels
Description
Summary
The Go Google GenAI plugin fails "Tool Response Conformance" tests with an invalid role error:
Error 400, Message: Please use a valid role: user, model., Status: INVALID_ARGUMENT
This suggests the plugin is sending a role value that the Gemini API doesn't accept (likely tool or function) when constructing tool response messages.
Expected behavior
Tool response messages should use the role expected by the Gemini API (typically user or function). The Go plugin should map the Genkit tool role to whatever the API expects.
Reproduction
cd py && bin/conform check-model google-genai --runtime go --runner nativeLook for "Tool Response Conformance" failure on googleai/gemini-3-pro-preview.
Affected models
googleai/gemini-3-pro-preview
Notes
This may affect other Gemini models that support tool use. The Python Google GenAI plugin handles role mapping correctly.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
No status