Class GraalVmPythonExecutionTool

java.lang.Object
dev.langchain4j.agent.tool.graalvm.GraalVmPythonExecutionTool

public class GraalVmPythonExecutionTool extends Object
A tool that executes provided Python code using GraalVM Polyglot/Truffle. Attention! It might be dangerous to execute the code, see GraalVmPythonExecutionEngine for more details.
  • Constructor Details

    • GraalVmPythonExecutionTool

      public GraalVmPythonExecutionTool()
  • Method Details

    • executePythonCode

      public String executePythonCode(String code)