Class EmbeddedPythonExecutionStrategy

java.lang.Object
ai.nervemind.app.executor.script.EmbeddedPythonExecutionStrategy
All Implemented Interfaces:
ScriptExecutionStrategy

@Component public class EmbeddedPythonExecutionStrategy extends Object implements ScriptExecutionStrategy
Embedded Python execution strategy using GraalPy.

Executes Python code using GraalVM's Python implementation (GraalPy). This provides zero-install Python execution with a sandboxed environment.

Features

  • No Python installation required
  • Sandboxed execution (no file system or network access by default)
  • Fast startup compared to subprocess
  • Access to Python standard library subset

Limitations

  • Not all Python packages available (no pip)
  • Some C extension modules not supported
  • Slight compatibility differences from CPython

Available Globals

  • input / $input - Data from previous nodes (dict)
  • node / $node - Current node parameters (dict)

Example

# Transform input data
items = input.get('items', [])
result = {
    'count': len(items),
    'processed': [x.upper() for x in items]
}
return result