Commit 75c863e
committed
fix(feishu): allow number/boolean/array types in bitable fields parameter
The fields parameter in CreateRecordSchema and UpdateRecordSchema
uses Type.Any() which serializes to an empty JSON Schema {}.
This makes the LLM default to passing all values as strings,
even for numeric fields where number type is expected.
Change Type.Any() to Type.Union([...]) so the JSON Schema
explicitly advertises type: [string,number,boolean,array,object],
allowing the LLM to correctly pass number/boolean/array values.1 parent 4ecb45b commit 75c863e
1 file changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
533 | | - | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
534 | 540 | | |
535 | 541 | | |
536 | 542 | | |
| |||
572 | 578 | | |
573 | 579 | | |
574 | 580 | | |
575 | | - | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
576 | 588 | | |
577 | 589 | | |
578 | 590 | | |
| |||
0 commit comments