Commit ae29aae
committed
fix(feishu): replace Type.Record(Type.String(), Type.Any()) with Type.Object({}, {additionalProperties: true}) in bitable tools
Type.Record(Type.String(), Type.Any()) serializes to patternProperties with
an empty sub-schema ({}), which is rejected by strict JSON Schema 2020-12
validators such as AWS Bedrock's Anthropic API. This causes all LLM calls
to fail when the affected feishu bitable tools are in the tool list.
Replace with Type.Object({}, {additionalProperties: true}) which produces
valid additionalProperties: true (boolean) instead of an empty {} sub-schema.
Affected tools: feishu_bitable_create_record (fields),
feishu_bitable_update_record (fields), feishu_bitable_create_field (property).
Fixes #945471 parent 68f6a51 commit ae29aae
1 file changed
Lines changed: 23 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
537 | 541 | | |
538 | 542 | | |
539 | 543 | | |
| |||
560 | 564 | | |
561 | 565 | | |
562 | 566 | | |
563 | | - | |
564 | | - | |
565 | | - | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
566 | 575 | | |
567 | 576 | | |
568 | 577 | | |
| |||
572 | 581 | | |
573 | 582 | | |
574 | 583 | | |
575 | | - | |
576 | | - | |
577 | | - | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
578 | 591 | | |
579 | 592 | | |
580 | 593 | | |
| |||
0 commit comments