Skip to content

langgraph4j/langgraph4j-copilotkit

Repository files navigation

License: MIT Static Badge Maven Centraldiscord

LangGraph4j support for CopilotKit

Make LangGraph4j compliant with AG-UI protocol with CopilotKit integration

Architecture

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. 
Loading

Getting Started

Start LangGraph4j Agent

mvn package spring-boot:test-run

Start CopilotKit App

cd webui npm run dev

Open web app

Open browser on http://localhost:3000 and play with chat

Demo

demo

References

About

Make Langgraph4j copliant with AG-UI protocol plus CopilotKit integration

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published