UNPKG

claude-flow

Version:

Ruflo - Enterprise AI agent orchestration for Claude Code. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration

31 lines 1.22 kB
/** * GAIA Tool: python_exec — DAG actor catalogue (iter-65 Fix 1) * * Executes a Python script in a sandboxed subprocess and returns stdout. * Designed for use by DAG actors that need to simulate probabilities, * run numeric computations, or process data programmatically. * * Security: * - Code is passed via stdin (not shell args) to avoid injection. * - Hard timeout: 30 seconds. * - No network access inside the script (subprocess environment is the * same user-level Python, not a full sandbox — adequate for GAIA L1 * computations which are math/logic only, not I/O heavy). * * Input schema: * code — Python source to execute (passed via stdin to python3 -) * * Output: * stdout of the script, trimmed. * On non-zero exit or timeout, returns a descriptive error string. * * Refs: ADR-139, iter-65, #2156 */ import { GaiaTool, ToolDefinition } from './types.js'; export declare class PythonExecTool implements GaiaTool { readonly name = "python_exec"; readonly definition: ToolDefinition; execute(input: Record<string, unknown>): Promise<string>; } export declare function createPythonExecTool(): PythonExecTool; //# sourceMappingURL=python_exec.d.ts.map