(toolSchemas: ToolSchema[])
| 79 | } |
| 80 | |
| 81 | function cloneToolSchemas(toolSchemas: ToolSchema[]): ToolSchema[] { |
| 82 | return toolSchemas.map((tool) => { |
| 83 | const cloned: ToolSchema = { |
| 84 | ...tool, |
| 85 | input_schema: { ...tool.input_schema }, |
| 86 | } |
| 87 | if (tool.params) cloned.params = { ...tool.params } |
| 88 | if (tool.oauth) cloned.oauth = { ...tool.oauth } |
| 89 | return cloned |
| 90 | }) |
| 91 | } |
| 92 | |
| 93 | export function clearIntegrationToolSchemaCacheForTests(): void { |
| 94 | integrationToolSchemaCache.clear() |
no outgoing calls
no test coverage detected