(model: LanguageModel)
| 45 | } |
| 46 | |
| 47 | export function hasLanguageModelCleanup(model: LanguageModel): boolean { |
| 48 | const modelWithCleanup = model as LanguageModelWithCleanup; |
| 49 | return typeof modelWithCleanup[languageModelCleanupSymbol] === "function"; |
| 50 | } |
| 51 | |
| 52 | export function runLanguageModelCleanup(model: LanguageModel | undefined): void { |
| 53 | if (model === undefined) { |
no outgoing calls
no test coverage detected