Commit 2d4da8e
refactor: derive CreateMessageResultSchema from generated spec schema
Use .omit({ content: true }).extend() to inherit all fields from the
generated spec schema while only overriding content to use the
backwards-compatible SamplingContentSchema.
This ensures we automatically inherit any new fields added to the spec.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent a8171e4 commit 2d4da8e
1 file changed
+6
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
616 | | - | |
617 | | - | |
618 | | - | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
619 | 610 | | |
620 | 611 | | |
621 | 612 | | |
| |||
0 commit comments