(tools = [])
| 10 | } |
| 11 | |
| 12 | function toAnthropicTools(tools = []) { |
| 13 | return tools.map((tool) => ({ |
| 14 | name: tool.function.name, |
| 15 | description: tool.function.description, |
| 16 | input_schema: tool.function.parameters, |
| 17 | })); |
| 18 | } |
| 19 | |
| 20 | function toAnthropicAssistantContent(message) { |
| 21 | const content = []; |