(tool: ToolConfig<P, R>, params: P)
| 66 | ] as const |
| 67 | |
| 68 | function buildUrl<P, R>(tool: ToolConfig<P, R>, params: P): string { |
| 69 | return typeof tool.request.url === 'function' ? tool.request.url(params) : tool.request.url |
| 70 | } |
| 71 | |
| 72 | function buildHeaders<P, R>(tool: ToolConfig<P, R>, params: P): Record<string, string> { |
| 73 | return tool.request.headers(params) |
no outgoing calls
no test coverage detected