Class GraalVmJavaScriptExecutionTool

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

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

    • GraalVmJavaScriptExecutionTool

      public GraalVmJavaScriptExecutionTool()
  • Method Details

    • executeJavaScriptCode

      public String executeJavaScriptCode(String code)