Skip to content

docs(ag-ui): add README with usage examples and CopilotKit integration#1352

Open
nuthalapativarun wants to merge 2 commits into
VoltAgent:mainfrom
nuthalapativarun:docs/ag-ui-readme
Open

docs(ag-ui): add README with usage examples and CopilotKit integration#1352
nuthalapativarun wants to merge 2 commits into
VoltAgent:mainfrom
nuthalapativarun:docs/ag-ui-readme

Conversation

@nuthalapativarun

@nuthalapativarun nuthalapativarun commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

PR Checklist

  • Commit message follows guidelines (conventional commits: <type>(<scope>): <description>)

Bugs / Features

  • Related issue(s) linked
  • Tests for the changes have been added
  • Docs have been added / updated
  • Changesets have been added (pnpm changeset)

What is the current behavior?

@voltagent/ag-ui has no README, so users have no documentation for wrapping a VoltAgent agent as an AG-UI agent or exposing it through a CopilotKit runtime.

What is the new behavior?

Adds a README covering installation, the createVoltAgentAGUI adapter, and both CopilotKit integration helpers (createCopilotKitHandler and registerCopilotKitRoutes) with their options.

Notes for reviewers

Mirrors the style/structure of the recently added @voltagent/server-core README (#1331).


Summary by cubic

Adds a README for @voltagent/ag-ui with install and usage examples, including @voltagent/core and @ai-sdk/openai in the install commands. Covers createVoltAgentAGUI, CopilotKit integration via createCopilotKitHandler/registerCopilotKitRoutes, and documents options and AgentRegistry-based routing.

Written for commit da64e01. Summary will update on new commits.

Review in cubic

Summary by CodeRabbit

  • Documentation
    • Added comprehensive README for the @voltagent/ag-ui package, including installation steps, basic usage with createVoltAgentAGUI, configuration options, observable-based runtime behavior, and CopilotKit integration (handler setup and route registration).

@changeset-bot

changeset-bot Bot commented Jun 23, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: da64e01

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@voltagent/ag-ui Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai

coderabbitai Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 24a3930c-8b24-4e98-bb12-7b2625407c91

📥 Commits

Reviewing files that changed from the base of the PR and between e205290 and da64e01.

📒 Files selected for processing (1)
  • packages/ag-ui/README.md
✅ Files skipped from review due to trivial changes (1)
  • packages/ag-ui/README.md

📝 Walkthrough

Walkthrough

Adds a new packages/ag-ui/README.md documenting the @voltagent/ag-ui package: its purpose, installation, createVoltAgentAGUI usage, CopilotKit integration via createCopilotKitHandler and registerCopilotKitRoutes, option references, and MIT license. A matching .changeset/ag-ui-readme.md declares a patch release.

Changes

@voltagent/ag-ui README and changeset

Layer / File(s) Summary
README and changeset
packages/ag-ui/README.md, .changeset/ag-ui-readme.md
Adds the full package README covering installation, createVoltAgentAGUI options and observable-based run behavior, CopilotKit handler and route-registration options, documentation links, and MIT license. Paired with a patch-release changeset entry.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐇 Hop hop, the docs have arrived,
A README so clear, the package has thrived!
createVoltAgentAGUI spelled out with care,
CopilotKit options floating in air.
The rabbit stamps "patch" and leaps with delight~ 🌿

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly states the main change: adding AG-UI README docs with usage examples and CopilotKit integration.
Description check ✅ Passed The description follows the template well and covers checklist items, current/new behavior, and reviewer notes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 2 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread packages/ag-ui/README.md Outdated
@nuthalapativarun

Copy link
Copy Markdown
Contributor Author

Fixed — added @voltagent/core and @ai-sdk/openai to the install command so users can run the quickstart example without hitting import errors.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3 issues found across 1 file (changes from recent commits).

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="packages/ag-ui/README.md">

<violation number="1" location="packages/ag-ui/README.md:1">
P2: README starts with a UTF-8 BOM, which is an unintended encoding artifact inconsistent with the rest of the repository.</violation>

<violation number="2" location="packages/ag-ui/README.md:109">
P2: The em dash default marker is corrupted to `‗`, making the table look broken.</violation>

<violation number="3" location="packages/ag-ui/README.md:131">
P2: The copyright symbol is corrupted to `©`, making the license line look broken.</violation>
</file>

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread packages/ag-ui/README.md
@@ -0,0 +1,131 @@
<div align="center">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: README starts with a UTF-8 BOM, which is an unintended encoding artifact inconsistent with the rest of the repository.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At packages/ag-ui/README.md, line 1:

<comment>README starts with a UTF-8 BOM, which is an unintended encoding artifact inconsistent with the rest of the repository.</comment>

<file context>
@@ -1,4 +1,4 @@
-<div align="center">
+<div align="center">
 <a href="https://voltagent.dev/">
 <img width="1500" height="276" alt="voltagent" src="https://github.com/user-attachments/assets/d9ad69bd-b905-42a3-81af-99a0581348c0" />
</file context>
Suggested change
<div align="center">
+<div align="center">

Comment thread packages/ag-ui/README.md

## License

Licensed under the MIT License, Copyright © 2026-present VoltAgent.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: The copyright symbol is corrupted to ©, making the license line look broken.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At packages/ag-ui/README.md, line 131:

<comment>The copyright symbol is corrupted to `©`, making the license line look broken.</comment>

<file context>
@@ -128,4 +128,4 @@ registerCopilotKitRoutes({
 ## License
 
-Licensed under the MIT License, Copyright © 2026-present VoltAgent.
+Licensed under the MIT License, Copyright © 2026-present VoltAgent.
</file context>
Suggested change
Licensed under the MIT License, Copyright © 2026-present VoltAgent.
Licensed under the MIT License, Copyright © 2026-present VoltAgent.

Comment thread packages/ag-ui/README.md

| Option | Type | Default | Description |
| ---------------- | ------------------------------------------------------------------------------- | -------------------------- | ------------------------------------------- |
| `agents` | `Record<string, AbstractAgent>` | — | Static map of AG-UI agents |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: The em dash default marker is corrupted to ‗, making the table look broken.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At packages/ag-ui/README.md, line 109:

<comment>The em dash default marker is corrupted to `‗`, making the table look broken.</comment>

<file context>
@@ -106,17 +106,17 @@ registerCopilotKitRoutes({
 | ---------------- | ------------------------------------------------------------------------------- | -------------------------- | ------------------------------------------- |
-| `agents`         | `Record<string, AbstractAgent>`                                                 | —                          | Static map of AG-UI agents                  |
-| `loadAgents`     | `() => Promise<Record<string, AbstractAgent>> \| Record<string, AbstractAgent>` | —                          | Lazy loader; overrides `agents` if provided |
+| `agents`         | `Record<string, AbstractAgent>`                                                 | —                        | Static map of AG-UI agents                  |
+| `loadAgents`     | `() => Promise<Record<string, AbstractAgent>> \| Record<string, AbstractAgent>` | —                        | Lazy loader; overrides `agents` if provided |
 | `serviceAdapter` | `CopilotServiceAdapter`                                                         | `ExperimentalEmptyAdapter` | CopilotKit service adapter                  |
</file context>
Suggested change
| `agents` | `Record<string, AbstractAgent>` | — | Static map of AG-UI agents |
| `agents` | `Record<string, AbstractAgent>` | | Static map of AG-UI agents |

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