Skip to content

feat: stream intermediate agent reasoning and token-by-token final answers#585

Open
knoxiboy wants to merge 1 commit into
param20h:devfrom
knoxiboy:feat/issue-564-stream-thoughts
Open

feat: stream intermediate agent reasoning and token-by-token final answers#585
knoxiboy wants to merge 1 commit into
param20h:devfrom
knoxiboy:feat/issue-564-stream-thoughts

Conversation

@knoxiboy

Copy link
Copy Markdown

📋 PR Checklist


🔗 Related Issue

Closes #564


📝 What does this PR do?

Streams intermediate ReAct agent reasoning steps (thoughts, tool actions, and observations) in the WebSocket/SSE stream, and progressive token-by-token final answers in the chat stream.

Also updates the React frontend (ChatPanel.tsx and MessageBubble.tsx) to handle, parse, and display the intermediate reasoning steps within a collapsible animated accordion component.


🗂️ Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 🔧 Refactor / code cleanup
  • 📝 Documentation update
  • 🎨 UI / styling change
  • ⚙️ CI / tooling / config change
  • 🧪 Tests

🧪 How was this tested?

  • Ran the backend locally
  • Ran the frontend locally
  • Tested the affected API endpoints manually

📸 Screenshots (if UI change)


⚠️ Anything to flag for reviewers?

None.


✅ Self-Review Checklist

  • My branch is based on dev, not main
  • I have not added any secrets / API keys
  • I have not modified main branch or any HuggingFace deployment config
  • My code follows the existing style (no unnecessary formatting changes)
  • I have updated relevant docs / comments if needed

@knoxiboy knoxiboy requested a review from param20h as a code owner June 13, 2026 12:21
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.

[FEATURE] Streaming Intermediate Agentic Reasoning and Token-by-Token Output in Chat Stream

2 participants