(name: string)
| 1343 | } |
| 1344 | |
| 1345 | function expandToolName(name: string): string { |
| 1346 | for (const [fullName, normalized] of Object.entries(normalizedToolNames)) { |
| 1347 | if (name === normalized) { |
| 1348 | return fullName; |
| 1349 | } |
| 1350 | } |
| 1351 | |
| 1352 | return name; |
| 1353 | } |
| 1354 | |
| 1355 | // Turns a normalized message back into a full OpenAI ChatCompletion that we can replay as a response |
| 1356 | function createOpenAIResponse( |
no outgoing calls
no test coverage detected
searching dependent graphs…