MCPcopy Create free account
hub / github.com/antvis/AVA / PythonEngineOptions

Interface PythonEngineOptions

src/types.ts:182–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180 * Python engine options.
181 */
182export 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. */
196export type EngineClass = new (llmConfig: LLMConfig, options?: Record<string, unknown>) => AnalysisEngine;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected