( userId: string, workspaceId: string | undefined, schemaSurface: string )
| 71 | }) |
| 72 | |
| 73 | function getIntegrationToolSchemaCacheKey( |
| 74 | userId: string, |
| 75 | workspaceId: string | undefined, |
| 76 | schemaSurface: string |
| 77 | ): string { |
| 78 | return JSON.stringify([userId, workspaceId ?? null, schemaSurface]) |
| 79 | } |
| 80 | |
| 81 | function cloneToolSchemas(toolSchemas: ToolSchema[]): ToolSchema[] { |
| 82 | return toolSchemas.map((tool) => { |
no outgoing calls
no test coverage detected