LangGraph4j Generator + Builder

This module generate a langgraph4j scaffold from a Domain Specific Language (DSL) based on YAML format.

DSL Example

name: CustomAgent
nodes:
  - name: model
  - name: tool
edges:
  - from: __start__
    to: model
  - from: tool
    to: model
  - from: model
    condition: route after reasoning
    paths: [tool, __end__]

The Builder (WebUI)

Based on project langgraph-builder we have integrate the Langgraph4j part (take a look to the fork) so we can now visually scaffolding a langchain4j graph and generate java code

builder

Setup (with Docker)

docker pull bsorrentino/langgraph4j-builder:1.5.0-SNAPSHOT

docker run -d \
  --name langgraph4j-builder-app \
  -p 3000:3000 \
  -e NODE_ENV=production \
  -e LANGRAPH4J_GEN=generator-1.5-SNAPSHOT-jar-with-dependencies.jar \
  -e RUNNING_IN_DOCKER=true \
  bsorrentino/langgraph4j-builder:1.5.0-SNAPSHOT

open browser on address http://localhost:3000