Feature request: AG-UI protocol support for effect/ai

Đang mở
#6,341 0 bình luận 7 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@IMax153 đang làm issue này rồi.

Từ ngày 14/7/2026.

  • #9842 của @tim-smart — đang mở
  • #9852 của @tim-smart — đang mở
  • #9853 của @tim-smart — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

4.0 ai enhancement
What is the problem this feature would solve?

effect/ai can run an agent backend (LanguageModel.streamText, tools, layers), but there is no standard way to stream that output to a browser UI. Connecting one today means writing the SSE endpoint, the request shape, the event mapping, and a matching client by hand for every app.

AG-UI (Agent–User Interaction Protocol) is an open, event-based wire protocol for streaming agent output to UI clients over HTTP/SSE. It defines one request shape (RunAgentInput) and a fixed set of event types (RUN_STARTED, TEXT_MESSAGE_CONTENT, TOOL_CALL_*, RUN_FINISHED, RUN_ERROR, and so on). It covers agent-to-UI the way MCP, already supported here, covers agent-to-tools.

What is the feature you are proposing to solve the problem?

AG-UI protocol support in effect/unstable/ai, so an Effect HTTP server can run the LLM calls (LanguageModel.streamText, tools, layers) and be driven by any AG-UI client. One such client is a React frontend using @tanstack/ai-react (useChat + fetchServerSentEvents). TanStack AI is fully AG-UI compliant, so it would work unmodified.

References:

What alternatives have you considered?

No response

Ngôn ngữ chính
TypeScript
Star
16.7k
Fork
808
Merge trung bình
10 giờ 21 phút
Pull request đã merge (30 ngày)
834

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Effect-TS/effect

Tất cả issue của Effect-TS/effect

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.