(call: ChatToolCall)
| 31 | } |
| 32 | |
| 33 | getToolCallDescription(call: ChatToolCall) { |
| 34 | const tool = this.#tools[call.name]; |
| 35 | const arg = Object.keys(call.arg).map(key => `${key}: ${JSON.stringify(call.arg[key])}`).join(', '); |
| 36 | return `Tool: ${tool?.displayName ?? call.name}(${arg})`; |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | export default new ToolManager(); |
no outgoing calls
no test coverage detected