Commit 0ee97d3
committed
fix(kosong): strip JSON Schema metadata from Google GenAI tool parameters
Google GenAI SDK's Pydantic model has extra='forbid', which rejects
JSON Schema metadata fields like $schema, $id, and $comment.
This causes validation errors when using MCP tools that include
standard JSON Schema metadata in their inputSchema.
Fixes #7341 parent fa3d95a commit 0ee97d3
File tree
1 file changed
+10
-1
lines changed- packages/kosong/src/kosong/contrib/chat_provider
1 file changed
+10
-1
lines changedLines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
357 | 366 | | |
358 | 367 | | |
359 | 368 | | |
360 | 369 | | |
361 | 370 | | |
362 | | - | |
| 371 | + | |
363 | 372 | | |
364 | 373 | | |
365 | 374 | | |
| |||
0 commit comments