Skip to content

feat: add Agno AgentOS adapter package - #1063

Open
vishxrad wants to merge 2 commits into
mainfrom
visharad/openui-agno-package
Open

feat: add Agno AgentOS adapter package#1063
vishxrad wants to merge 2 commits into
mainfrom
visharad/openui-agno-package

Conversation

@vishxrad

@vishxrad vishxrad commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

What

Adds @openuidev/agno, a publishable integration package for connecting OpenUI chat interfaces to Agno AgentOS.

This is PR 1 of 2 in the Agno integration stack. Follow-up: #1064, which adds the runnable example and Agent Interface session handoff.

Part of #1061.

Changes

  • add createAgnoLLM() for AgentOS AG-UI endpoints, authentication headers, required request fields, and per-run AG-UI context
  • add agnoAGUIAdapter() to preserve text, tools, results, and errors while filtering lifecycle noise and empty tool-parent envelopes
  • incrementally unwrap an optional fenced openui assistant stream so OpenUI renders progressive deltas while AgentOS retains the exact Markdown source
  • apply the same fence normalization when agnoStorage() reloads AgentOS session history
  • maintain a 1:1 identity mapping where OpenUI threadId equals AgentOS session_id
  • add agnoOpenUIPromptRenderer for Agno external-execution HITL calls; an OpenUI @ToAssistant action becomes a tool result that resumes the same run and session
  • add the shared processToolResult() and tool renderer controls required for frontend tool completion
  • document normal visual streaming and blocking prompt_openui as separate paths

Test Plan

  • Verified locally

Commands run after rebasing onto the current main:

pnpm install --frozen-lockfile --filter @openuidev/agno...
pnpm --filter @openuidev/agno run ci
pnpm --filter @openuidev/agno run build
pnpm --filter @openuidev/agno run check:publint
pnpm --filter @openuidev/agno run check:attw
pnpm --filter @openuidev/react-headless run ci
pnpm --filter @openuidev/react-headless run test
pnpm --filter @openuidev/react-headless run build
pnpm --filter @openuidev/react-ui run typecheck
pnpm --filter @openuidev/react-ui run ci
pnpm --filter @openuidev/react-ui run build

Results: 4 Agno test files with 17 tests, 18 React Headless test files with 176 tests, and 8 React UI test files with 39 tests passed. Package builds, lint, formatting, publint, package type analysis, React UI typecheck, and CSS artifact checks passed. React UI lint reports its existing 27 warnings and no errors.

Checklist

  • I linked a related issue, if applicable
  • I updated docs/README when needed
  • I considered backwards compatibility

@vercel

vercel Bot commented Aug 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openui-docs Ready Ready Preview Aug 25, 2026 6:32pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant