* Strip a single leading `external_` prefix so the model can pass either the * catalog name (`external_fetchStocks`) or the bare name (`fetchStocks`).
(name: string)
| 35 | * catalog name (`external_fetchStocks`) or the bare name (`fetchStocks`). |
| 36 | */ |
| 37 | function stripExternalPrefix(name: string): string { |
| 38 | return name.startsWith(EXTERNAL_PREFIX) |
| 39 | ? name.slice(EXTERNAL_PREFIX.length) |
| 40 | : name |
| 41 | } |
| 42 | |
| 43 | /** |
| 44 | * Build the `discover_tools` sibling tool for Code Mode lazy tools. The model |
no outgoing calls
no test coverage detected