* Build custom tool metadata for API response
(toolConfig: ToolConfig)
| 287 | * Build custom tool metadata for API response |
| 288 | */ |
| 289 | function buildCustomTool(toolConfig: ToolConfig): Tool { |
| 290 | return { |
| 291 | name: toolConfig.name, |
| 292 | description: toolConfig.description!, |
| 293 | parameters: customParamsToToolParams(toolConfig.parameters), |
| 294 | statement: toolConfig.statement, |
| 295 | readonly: toolConfig.readonly, |
| 296 | max_rows: toolConfig.max_rows, |
| 297 | }; |
| 298 | } |
| 299 | |
| 300 | /** |
| 301 | * Get tools for a specific source (API response format) |
no test coverage detected