Commit eeb8acf
fix(ai-code-mode-models-eval): handle multimodal tool result content in metrics
ToolResultPart.content was widened to string | Array<ContentPart> for
multimodal tool results, breaking the string-typed lookup in metrics.ts.
Coerce non-string content to a serialized form so the type check passes
while preserving the existing execute_typescript JSON-parse behavior.1 parent ccc044b commit eeb8acf
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
80 | 87 | | |
81 | 88 | | |
82 | 89 | | |
| |||
0 commit comments