mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-19 20:14:17 +02:00
* fix: strip title fields from tool schemas for Gemini compatibility Gemini 2.5 Flash produces MALFORMED_FUNCTION_CALL when a function declaration's parameters_json_schema contains 'title' fields (which Pydantic adds by default). Strip them in _convert_tool_to_google_genai before passing to the API. Fixes #3860 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Fix ty errors and lowest-deps test failure - Add assertions for non-None before subscripting FunctionDeclaration fields (ty check) - Test compress_schema directly instead of constructing FunctionDeclaration which may not support parameters_json_schema in google-genai==1.18.0 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| handlers | ||
| __init__.py | ||