( apiType: PythonApiType, prompt: string, optionsWithProcessedConfig: ProviderOptions, sanitizedContext: CallApiContextParams | undefined, )
| 32 | type PythonApiType = 'call_api' | 'call_embedding_api' | 'call_classification_api'; |
| 33 | |
| 34 | function buildPythonScriptArgs( |
| 35 | apiType: PythonApiType, |
| 36 | prompt: string, |
| 37 | optionsWithProcessedConfig: ProviderOptions, |
| 38 | sanitizedContext: CallApiContextParams | undefined, |
| 39 | ) { |
| 40 | return apiType === 'call_api' |
| 41 | ? [prompt, optionsWithProcessedConfig, sanitizedContext] |
| 42 | : [prompt, optionsWithProcessedConfig]; |
| 43 | } |
| 44 | |
| 45 | function hasPythonResultProperty( |
| 46 | result: any, |
no outgoing calls
no test coverage detected
searching dependent graphs…