[Feature Request] AG-UI protocol support for external agent backends #13272
Replies: 2 comments
|
I am very interested in this too. Has there been any updates on LibreChat supporting external agents? |
|
+1. I built an AG-UI proof of concept for LibreChat and would like to contribute a PR covering the scope proposed here: https://github.com/SirCypkowskyy/LibreChat/tree/agui-poc The same want keeps turning up in different shapes. #9238 asks for it through A2A and has 33 upvotes, #16047 through a reverse-connected runtime, this thread through AG-UI. All three are the same request: people who already run their own agents want a self-hostable chat frontend that can talk to them, instead of rebuilding those agents inside another builder or taking on a chat UI of their own. LibreChat already solves the harder half of that. The connection is the bit that is missing. I keep having that conversation at conferences too, and it's on the table as a use case where I work. Of the options I looked at, AG-UI has the most frameworks already shipping support for it. That weighed more with me than which spec reads best, so this is where I would put the energy. I have not found another self-hostable chat client that speaks it yet. Being early on this seems worth something. The fork was largely vibecoded, fast, to find out whether the mapping holds rather than to produce something I would defend line by line. It has 104 unit tests. Every screenshot in the walkthrough was driven by hand against a live pydantic-ai backend. I expect to rewrite parts of it for upstream review. What it covers today, against the first-pass scope in the opening post: text deltas, the One implementation choice differs from the proposal above. There is no The walkthrough also covers three things beyond that scope, and I'd keep all three out of a first PR: an AG-UI interrupt landing on LibreChat's existing approval card, a Two questions:
@danny-avila, pinging you directly since CONTRIBUTING asks for approval before work starts on anything off the roadmap, and those two are the parts I cannot settle on my own. |
Uh oh!
There was an error while loading. Please reload this page.
Summary
LibreChat's agent builder is excellent for the majority of use cases — fast to configure, well-integrated with MCP tools, and fits naturally into the existing UI. However, enterprise users running very complex agentic workflows (multi-step orchestration, stateful pipelines, LangGraph-based agents) currently have no clean way to connect those external agents to LibreChat's UI. This proposal adds AG-UI protocol support as a complementary path, not a replacement for the built-in agent builder.
Problem
Proposed Solution
Add an AG-UI endpoint type to the agent or endpoint configuration. When selected, LibreChat acts as an AG-UI client — opening an SSE stream to the configured agent backend and mapping incoming AG-UI events to the existing chat UI primitives.
Scope (minimal first pass)
TEXT_MESSAGE_CONTENTevents to streaming token displayTOOL_CALL_START/TOOL_CALL_ENDto existing tool-use UIRUN_STARTED/RUN_FINISHEDto loading/done stateWhat This Is Not
This does not replace or compete with the built-in agent builder. Users who don't need external agents see no change. The AG-UI endpoint type is opt-in and additive — one more endpoint type alongside
openai,anthropic, etc.References
All reactions