You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to use Goose with Gemini as the provider, the session fails with a 400 Bad Request error related to function declarations parameter validation. The error specifically mentions that only 'enum' is supported for STRING type in the URL format specification.
Error message:
ERROR goose::agents::truncate: Error: Request failed: Request failed with status: 400 Bad Request. Message: * GenerateContentRequest.tools[0].function_declarations[4].parameters.properties[url].format: only 'enum' is supported for STRING type
at crates/goose/src/agents/truncate.rs:279
To Reproduce
Steps to reproduce the behavior:
Start Goose session
Enter any input
Observe the error in the response
Expected behavior
The session should establish successfully and process the input without throwing parameter validation errors related to function declarations.
If you disable the fetch tool, that should fix it.
Why you're seeing the error?
We found that the Google Gemini model fails with fetch tool because Gemini API doesn't fully support jsonschema, specifically:
fetch server uses format: uri for the url field here. Gemini only supports format: string so it fails in this case.
Describe the bug
When attempting to use Goose with Gemini as the provider, the session fails with a 400 Bad Request error related to function declarations parameter validation. The error specifically mentions that only 'enum' is supported for STRING type in the URL format specification.
Error message:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The session should establish successfully and process the input without throwing parameter validation errors related to function declarations.
Screenshots
Additional context
Same error on other models from Google.
The text was updated successfully, but these errors were encountered: