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

Interface PythonEngineOptions

src/types.ts:188–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186 * Python engine options.
187 */
188export interface PythonEngineOptions {
189 /**
190 * Override local python3 execution with a custom environment. Local execution is not sandboxed.
191 * Run the complete Python script and return its JSON output as ExecutionResult.
192 * Each query first sends a compile-only validation script, then the source-loading and result script.
193 * The buffer limit is in bytes. The signal fires on cancellation, disposal, or the configured deadline.
194 * A custom executor must act on the signal to stop work in its own environment.
195 */
196 execute?: (code: string, maxBuffer?: number, signal?: AbortSignal) => Promise<ExecutionResult>;
197 /** Wait and local process deadline for each validation or execution call. Default 30000 ms. */
198 queryTimeoutMs?: number;
199}
200
201/** Constructor signature every engine class must satisfy. */
202export 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