Class GraalVmPythonExecutionEngine

java.lang.Object
dev.langchain4j.code.graalvm.GraalVmPythonExecutionEngine
All Implemented Interfaces:
dev.langchain4j.code.CodeExecutionEngine

public class GraalVmPythonExecutionEngine extends Object implements dev.langchain4j.code.CodeExecutionEngine
CodeExecutionEngine that uses GraalVM Polyglot/Truffle to execute provided Python code. Attention! It might be dangerous to execute the code, see SandboxPolicy.TRUSTED and HostAccess.UNTRUSTED for more details.
  • Constructor Details

    • GraalVmPythonExecutionEngine

      public GraalVmPythonExecutionEngine()
  • Method Details

    • execute

      public String execute(String code)
      Specified by:
      execute in interface dev.langchain4j.code.CodeExecutionEngine