Repository navigation
Would you take an assistant-ui example in examples/? #2656
samdickson22
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi! I work on assistant-ui, an open-source React chat library.
useAgentChatreturns the same shape as the AI SDK'suseChat, so assistant-ui's AI SDK runtime takes it directly, and we document the pairing in our Cloudflare Agents guide.I built an
examples/assistant-uifollowingexamples/AGENTS.md:AIChatAgenton Workers AI, set up likeai-chat(@cf/moonshotai/kimi-k2.7-code,sessionAffinity), with a server-sidegetWeathertool and acalculatetool that needs approval above 1000useAgent+useAgentChatpassed to assistant-ui, styled with Kumo, with the usual shell (PoweredByCloudflare, mode toggle, connection indicator, explainer card, Clear)oxfmt,oxlint,sherif, a frozen-lockfile install, typecheck andvite buildpassCode: https://github.com/samdickson22/agents/tree/examples/assistant-ui/examples/assistant-ui
I know you're not taking external PRs right now. If an example like this would be welcome, I'm happy to open a PR whenever that changes, or hand the code to whoever would own it. If it's not a fit, no worries.
All reactions