feat(frontend): restore agent playground UI on big-agents#4817
feat(frontend): restore agent playground UI on big-agents#4817mmabrouk wants to merge 6 commits into
Conversation
Ports the AgentChatSlice frontend (ai-sdk useChat over the agent /messages stream) and the RAG_QA_chatbot example onto the current functional agent branches. See the PR description for the note to Arda.
The agent-chat slice transport relied on the server defaulting to a stream. The real /messages endpoint only streams when the client sends Accept: text/event-stream; otherwise it returns a batch JSON body, which useChat cannot render. Send the SSE Accept header so streamed assistant replies show up.
Frontend layer for agent workflows, stacked on the agent chat slice (#4780). Playground: - AgentChatPanel as the third generation arm; buildAgentRequest + per-entity isAgentMode; multi-session tabs, attachments, conversation rewind; streaming over the v6 /messages contract (SSE). - Rendering: markdown (tables, headings, code highlight, LaTeX), collapsible thinking, tool cards, streamed usage/cost, failed-run error surfaced from the trace. - Session history picker; open-a-session-from-observability deep link. Observability: - Sessions table renders cell data (page-store context) + real height + id truncation. - Agent reply shown in Last output, session-drawer conversation, and Traces Outputs (read the nested agent span, not the root's streamed-generator repr). - Open-in-Playground replays an agent run from its root span (agent chat, not completion). Agent config controls are taken verbatim from #4775; AgentConfigControl additionally wires gatewayTools (Composio) into the tool picker (2-line delta on top of #4775).
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Context
GitHub marks #4810 as merged, but current
big-agentsdoes not contain the agent playground UI/RAG files fromfe-feat/agent-playground-generation. Representative files such asweb/oss/src/components/AgentChatSlice/AgentChatPanel.tsxandexamples/python/RAG_QA_chatbot/backend/agent_loop.pyare missing onbig-agents, while the branch is still 6 commits ahead.Changes
Superseded by #4818, which reapplies the same current local UI/RAG files onto a fresh branch based directly on current
big-agents.Tests / notes
#4817 was opened directly from the old Arda branch and is not mergeable against current
big-agents. Use #4818 instead.