Make LangGraph4j compliant with AG-UI protocol with CopilotKit integration
flowchart LR User((User)) CopilotKit(Copilot Kit) LangGraph4JAdaptor(LangGraph4J AGUI Adaptor Typescript) LangGraph4JServer(LangGraph4J AGUI Adaptor Java) Agent(Agent) subgraph "AG-UI-APP" CopilotKit --> LangGraph4JAdaptor end subgraph "LangGraph4J Server" LangGraph4JServer --> Agent end User --> CopilotKit %%CopilotKit --> LangGraph4JAdaptor LangGraph4JAdaptor --> LangGraph4JServer %%LangGraph4JServer --> Agent Agent --> LangGraph4JServer LangGraph4JServer --> LangGraph4JAdaptor LangGraph4JAdaptor --> CopilotKit CopilotKit --> User %% Legend %% - The User sends a request to the Copilot Kit. %% - The Copilot Kit processes the request and passes it to the LangGraph4J Adaptor. %% - The LangGraph4J Adaptor forwards the request to the LangGraph4J Server. %% - The LangGraph4J Server processes the request using the Agent. %% - The Agent processes the data and sends back a response to the LangGraph4J Server. %% - The LangGraph4J Server sends the processed response back to the LangGraph4J Adaptor. %% - The LangGraph4J Adaptor then sends the response back to the Copilot Kit. %% - Finally, the Copilot Kit presents the results back to the User. mvn package spring-boot:test-runcd webui npm run devOpen browser on http://localhost:3000 and play with chat
