Commit b65dd04
fix: remove unnecessary tracker guards, forward variables and default_ai_provider
- Remove if-tracker guards in both runners since create_tracker is
always set on enabled graphs (disabled graphs are filtered before
runner creation), also fixing token_usage NameError when tracker=None
- Forward variables through _build_evaluator to _initialize_judges so
judge templates can interpolate user-provided variables
- Add default_ai_provider param to agent_graph() and forward it to
__evaluate_agent so graph node evaluators use the correct provider;
propagate from create_agent_graph() as well
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 64d8060 commit b65dd04
3 files changed
Lines changed: 26 additions & 26 deletions
File tree
- packages
- ai-providers
- server-ai-langchain/src/ldai_langchain
- server-ai-openai/src/ldai_openai
- sdk/server-ai/src/ldai
Lines changed: 7 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | | - | |
| 307 | + | |
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
334 | 332 | | |
335 | 333 | | |
336 | 334 | | |
| |||
347 | 345 | | |
348 | 346 | | |
349 | 347 | | |
350 | | - | |
351 | | - | |
352 | | - | |
| 348 | + | |
| 349 | + | |
353 | 350 | | |
354 | 351 | | |
355 | 352 | | |
| |||
Lines changed: 9 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
102 | 103 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
110 | 109 | | |
111 | 110 | | |
112 | 111 | | |
| |||
122 | 121 | | |
123 | 122 | | |
124 | 123 | | |
125 | | - | |
126 | | - | |
127 | | - | |
| 124 | + | |
| 125 | + | |
128 | 126 | | |
129 | 127 | | |
130 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
| 330 | + | |
330 | 331 | | |
331 | 332 | | |
332 | 333 | | |
333 | 334 | | |
334 | 335 | | |
335 | 336 | | |
336 | 337 | | |
| 338 | + | |
337 | 339 | | |
338 | 340 | | |
339 | 341 | | |
340 | 342 | | |
341 | 343 | | |
342 | 344 | | |
343 | | - | |
| 345 | + | |
| 346 | + | |
344 | 347 | | |
345 | 348 | | |
346 | 349 | | |
| |||
604 | 607 | | |
605 | 608 | | |
606 | 609 | | |
| 610 | + | |
607 | 611 | | |
608 | 612 | | |
609 | 613 | | |
| |||
648 | 652 | | |
649 | 653 | | |
650 | 654 | | |
651 | | - | |
| 655 | + | |
| 656 | + | |
652 | 657 | | |
653 | 658 | | |
654 | 659 | | |
| |||
756 | 761 | | |
757 | 762 | | |
758 | 763 | | |
759 | | - | |
| 764 | + | |
760 | 765 | | |
761 | 766 | | |
762 | 767 | | |
| |||
916 | 921 | | |
917 | 922 | | |
918 | 923 | | |
919 | | - | |
| 924 | + | |
920 | 925 | | |
921 | 926 | | |
922 | 927 | | |
| |||
0 commit comments