MCPcopy
hub / github.com/promptfoo/promptfoo / CleanupProvider

Interface CleanupProvider

src/providers/providerRegistry.ts:6–8  ·  view source on GitHub ↗

* Interface for providers that need cleanup on process exit.

Source from the content-addressed store, hash-verified

4 * Interface for providers that need cleanup on process exit.
5 */
6interface CleanupProvider {
7 shutdown(): Promise<void>;
8}
9
10/**
11 * Global registry of Python providers for cleanup on process exit.

Callers 8

telemetry.test.tsFile · 0.65
tracing.test.tsFile · 0.65
worker.test.tsFile · 0.65
workerPool.test.tsFile · 0.65

Implementers 12

Telemetrysrc/telemetry.ts
PythonWorkerPoolsrc/python/workerPool.ts
PythonWorkersrc/python/worker.ts
PythonProvidersrc/providers/pythonCompletion.ts
ProviderRegistrysrc/providers/providerRegistry.ts
AwsBedrockConverseProvidersrc/providers/bedrock/converse.ts
OpenAICodexAppServerProvidersrc/providers/openai/codex-app-server.
OpenAICodexSDKProvidersrc/providers/openai/codex-sdk.ts
ChatKitBrowserPoolsrc/providers/openai/chatkit-pool.ts
OpenAiChatKitProvidersrc/providers/openai/chatkit.ts
LocalSpanExportersrc/tracing/localSpanExporter.ts
PromptfooTracingProcessorexamples/openai-agents/promptfoo_traci

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…