MCPcopy Index your code
hub / github.com/promptfoo/promptfoo / callClassificationApi

Method callClassificationApi

src/providers/pythonCompletion.ts:418–423  ·  view source on GitHub ↗
(prompt: string)

Source from the content-addressed store, hash-verified

416 }
417
418 async callClassificationApi(prompt: string): Promise<ProviderClassificationResponse> {
419 if (!this.isInitialized) {
420 await this.initialize();
421 }
422 return this.executePythonScript(prompt, undefined, 'call_classification_api');
423 }
424
425 async shutdown(): Promise<void> {
426 if (this.pool) {

Callers

nothing calls this directly

Calls 2

initializeMethod · 0.95
executePythonScriptMethod · 0.95

Tested by

no test coverage detected