Repository navigation
Commit a047206
fix(gooddata-eval): a rejected draft attempt is not a refusal
`_extract_tool_result` takes only successful calls, which is right for the
normal path -- a failed call there is a retry the agent recovered from. But
a refusal case was scored on `tool_result is None` and `dashboard_part is
None`, and an agent whose draft the tool REJECTED leaves both empty. So a
run that tried to build and was stopped by a guardrail read as a clean
refusal, which credits the model for the guardrail.
`dashboard_not_drafted` now also requires that the producing tool was never
called at all. The flag is computed in the run loop over every tool-call
event, not from the extracted result, so it survives the filtering that
hides the failed call. Nothing outside the refusal shape reads it.
Found in review by CodeRabbit.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 544aefa commit a047206
2 files changed
Lines changed: 63 additions & 3 deletions
File tree
- packages/gooddata-eval
- src/gooddata_eval/core/agentic
- tests
Lines changed: 23 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
769 | 769 | | |
770 | 770 | | |
771 | 771 | | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
772 | 776 | | |
773 | 777 | | |
774 | 778 | | |
| |||
781 | 785 | | |
782 | 786 | | |
783 | 787 | | |
784 | | - | |
785 | | - | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
786 | 795 | | |
787 | | - | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
788 | 799 | | |
789 | 800 | | |
790 | 801 | | |
| |||
870 | 881 | | |
871 | 882 | | |
872 | 883 | | |
| 884 | + | |
873 | 885 | | |
874 | 886 | | |
875 | 887 | | |
| |||
909 | 921 | | |
910 | 922 | | |
911 | 923 | | |
| 924 | + | |
912 | 925 | | |
913 | 926 | | |
914 | 927 | | |
| |||
921 | 934 | | |
922 | 935 | | |
923 | 936 | | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
924 | 942 | | |
925 | 943 | | |
926 | 944 | | |
| |||
1198 | 1216 | | |
1199 | 1217 | | |
1200 | 1218 | | |
| 1219 | + | |
| 1220 | + | |
1201 | 1221 | | |
1202 | 1222 | | |
1203 | 1223 | | |
| |||
Lines changed: 40 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1485 | 1485 | | |
1486 | 1486 | | |
1487 | 1487 | | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
1488 | 1528 | | |
1489 | 1529 | | |
1490 | 1530 | | |
| |||
0 commit comments