Quick Start
Bind <chat> from @ngaf/chat to an AG-UI backend in 5 minutes.
Prerequisites
Angular 20+ project with Node.js 22+. If you need setup help, see the Installation guide.
1
Install the packages
2
Configure the provider
Add provideAgUiAgent() to your application config with your AG-UI backend URL.
For offline development without a backend, swap to provideFakeAgUiAgent({}) โ it serves canned streaming responses for UI work.
3
Use in a component
That's it. The <chat> composition handles streaming messages, tool calls, errors, and submit โ all bound to the AG-UI backend through the Agent contract.
What to read next
- The
@ngaf/chatComponents reference covers the primitives the<chat>composition uses internally โ handy if you want to compose your own layout. - Looking for LangGraph instead of AG-UI? See
@ngaf/langgraph.
Switching backends without changing UI
The point of the runtime-neutral Agent contract is that swapping backends is a one-line change in app.config.ts. The component code stays the same: