| 180 | * Python engine options. |
| 181 | */ |
| 182 | export interface PythonEngineOptions { |
| 183 | /** |
| 184 | * Override local python3 execution with a custom environment. Local execution is not sandboxed. |
| 185 | * Run the complete Python script and return its JSON output as ExecutionResult. |
| 186 | * Each query first sends a compile-only validation script, then the source-loading and result script. |
| 187 | * The buffer limit is in bytes. The signal fires on cancellation, disposal, or the configured deadline. |
| 188 | * A custom executor must act on the signal to stop work in its own environment. |
| 189 | */ |
| 190 | execute?: (code: string, maxBuffer?: number, signal?: AbortSignal) => Promise<ExecutionResult>; |
| 191 | /** Wait and local process deadline for each validation or execution call. Default 30000 ms. */ |
| 192 | queryTimeoutMs?: number; |
| 193 | } |
| 194 | |
| 195 | /** Constructor signature every engine class must satisfy. */ |
| 196 | export type EngineClass = new (llmConfig: LLMConfig, options?: Record<string, unknown>) => AnalysisEngine; |
nothing calls this directly
no outgoing calls
no test coverage detected