Repository navigation
Commit 3a4cf75
committed
test(anthropic): lock the structured-output schema non-mutation invariant
The builder deep-clones before walking so it never deletes enum/const from
the caller's schema object. Agent blocks inside a parallel or loop reuse the
same responseFormat object across iterations, so losing that clone would
strip the constraints from every iteration after the first. Verified the
test fails when the clone is removed.1 parent 1f6e843 commit 3a4cf75
1 file changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
509 | 526 | | |
510 | 527 | | |
511 | 528 | | |
| |||
0 commit comments