Commit c2e1c3b
committed
Fix tool result processing in Claude model
Previously, Claude model only processed tool results if they
contained a 'result' key, ignoring other valid responses.
Changes:
- Serialize entire response Map to JSON instead of extracting only 'result' key
- Use static final ObjectMapper for better performance
- Catch specific JsonProcessingException instead of generic Exception
- Extract repeated expression to local variable for readability
Fixes #5661 parent cf5be25 commit c2e1c3b
1 file changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| |||
170 | 172 | | |
171 | 173 | | |
172 | 174 | | |
173 | | - | |
174 | | - | |
175 | | - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
176 | 183 | | |
177 | 184 | | |
178 | 185 | | |
| |||
0 commit comments