(argumentsText)
| 1 | // This file was generated with the assistance of an AI coding tool. |
| 2 | |
| 3 | function parseArguments(argumentsText) { |
| 4 | if (!argumentsText) return {}; |
| 5 | try { |
| 6 | return JSON.parse(argumentsText); |
| 7 | } catch { |
| 8 | return {}; |
| 9 | } |
| 10 | } |
| 11 | |
| 12 | function toAnthropicTools(tools = []) { |
| 13 | return tools.map((tool) => ({ |
no test coverage detected