ag-ui-protocol / ag-ui-protocol/ag-ui

Add Convex Agent integration

未關閉
#1,064 5 則留言 1 個 reaction 已指派 1 人 已被 @mikelrobbins 認領 在 GitHub 檢視
Roadmap
主要語言
Python
星號
15.9k
分支
1.4k
平均合併
1 天 17 小時
30 天內合併 PR
163

描述

## Summary

Proposing a community integration for [Convex Agents](https://docs.convex.dev/agents) - AI agents built on Convex with built-in persistence, streaming, and the Vercel AI SDK.

## Why Convex?

Convex provides:
- Built-in real-time sync and persistence
- Native streaming support in HTTP actions
- TypeScript-first with end-to-end type safety
- Convex Agents wrap Vercel AI SDK with threads, messages, and tool execution

## Implementation Approach

Server-side integration using Convex HTTP Actions:
- Receive AG-UI `RunAgentInput` via POST
- Execute Convex Agent internally
- Translate Vercel AI SDK `fullStream` parts to AG-UI events
- Return SSE response

## AG-UI Events Supported

| Vercel AI SDK Stream Part | AG-UI Event |
|---------------------------|-------------|
| `text-start` | `TEXT_MESSAGE_START` |
| `text-delta` | `TEXT_MESSAGE_CONTENT` |
| `text-end` | `TEXT_MESSAGE_END` |
| `tool-call` | `TOOL_CALL_START` + `TOOL_CALL_ARGS` + `TOOL_CALL_END` |
| `tool-result` | `TOOL_CALL_RESULT` |
| `start-step` / `finish-step` | `STEP_STARTED` / `STEP_FINISHED` |
| `error` | `RUN_ERROR` |

## Status

I have a working implementation ready to submit as a PR to `integrations/community/convex/typescript/`.

Happy to provide more details or adjust the approach based on feedback.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。