Commit 658a9fa
committed
fix: replace Type.Record with Type.Object for metadata_filters schema
Type.Record(Type.String(), Type.Unknown()) emits patternProperties,
which several provider compat paths strip or reject (Gemini drops
patternProperties; OpenAI strict-tools rejects it). The result was
that metadata_filters disappeared from the schema presented to some
models (e.g. github-copilot/gpt-5.4).
Switch to Type.Object({}, { additionalProperties: true }) so the
parameter renders as a plain open-ended object that survives every
provider's schema sanitizer. Runtime/types unchanged — the handler
still casts to Record<string, unknown>.
Fixes #381 parent 090e98b commit 658a9fa
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
| |||
0 commit comments