@breadai/protocol-ag-ui
v0.1.2
Published
AG-UI plugin for bread — bridge bread crumbs to the AG-UI event protocol.
Maintainers
Readme
@breadai/protocol-ag-ui
Bridge bread's crumb stream to AG-UI protocol events, with spec-conformant
framing: TEXT_MESSAGE_START/CONTENT/END around assistant text, the full
TOOL_CALL_START/ARGS/END/RESULT lifecycle, RUN_STARTED/FINISHED/ERROR with threadId,
STEP_STARTED/FINISHED for pipeline steps and loop iterations, and STATE_SNAPSHOT for loop
state.
bun add @breadai/protocol-ag-ui # or: npm i @breadai/protocol-ag-uiimport { defineConfig } from '@breadai/core'
import { agUi } from '@breadai/protocol-ag-ui'
export default defineConfig({
entrypoints: ['assistant'],
plugins: [
agUi({ onEvent: (event) => transport.send(event) }), // your AG-UI client transport
],
})createAgUiTransformer() is exported separately for building your own delivery (it's stateful —
one instance per stream).
Part of bread — an explicit-by-design framework for AI agents. Docs: ag-ui · all docs.
License
MIT © Matteo Zambon
