[PR #5199] [MERGED] Report citations for Agent call stacks #5347

Closed
opened 2026-06-05 15:21:03 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/5199
Author: @timothycarambat
Created: 3/12/2026
Status: Merged
Merged: 3/12/2026
Merged by: @timothycarambat

Base: masterHead: agent-citations


📝 Commits (1)

  • 3bf8a99 Report citations for Agent call stacks

📊 Changes

9 files changed (+220 additions, -14 deletions)

View changed files

📝 frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/Citation/index.jsx (+43 -6)
📝 frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/index.jsx (+2 -1)
📝 frontend/src/components/WorkspaceChat/ChatContainer/SourcesSidebar/SourceItem/index.jsx (+6 -1)
📝 frontend/src/utils/chat/agent.js (+12 -0)
📝 server/utils/agents/aibitat/index.js (+52 -2)
📝 server/utils/agents/aibitat/plugins/chat-history.js (+7 -2)
📝 server/utils/agents/aibitat/plugins/summarize.js (+9 -0)
📝 server/utils/agents/aibitat/plugins/web-browsing.js (+61 -2)
📝 server/utils/agents/aibitat/plugins/web-scraping.js (+28 -0)

📄 Description

Pull Request Type

  • feat (New feature)
  • 🐛 fix (Bug fix)
  • ♻️ refactor (Code refactoring without changing behavior)
  • 💄 style (UI style changes)
  • 🔨 chore (Build, CI, maintenance)
  • 📝 docs (Documentation updates)

Relevant Issues

resolves #

Description

  • Reports citations for @agent executions
  • Shows Web resource favicons (if possible)
  • Reports citations for summarize, web-scrape, web-browsing tool calls.

Visuals (if applicable)

https://github.com/user-attachments/assets/5b69e4ff-8936-47d4-adf6-91496db3dce1

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated (if applicable)
  • I have tested my code functionality
  • Docker build succeeds locally

Note: Will need to also compensate for attachment docs present in PR #5143


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/5199 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 3/12/2026 **Status:** ✅ Merged **Merged:** 3/12/2026 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `agent-citations` --- ### 📝 Commits (1) - [`3bf8a99`](https://github.com/Mintplex-Labs/anything-llm/commit/3bf8a9923057963de08825b4f52664520a5fc52c) Report citations for Agent call stacks ### 📊 Changes **9 files changed** (+220 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/Citation/index.jsx` (+43 -6) 📝 `frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/index.jsx` (+2 -1) 📝 `frontend/src/components/WorkspaceChat/ChatContainer/SourcesSidebar/SourceItem/index.jsx` (+6 -1) 📝 `frontend/src/utils/chat/agent.js` (+12 -0) 📝 `server/utils/agents/aibitat/index.js` (+52 -2) 📝 `server/utils/agents/aibitat/plugins/chat-history.js` (+7 -2) 📝 `server/utils/agents/aibitat/plugins/summarize.js` (+9 -0) 📝 `server/utils/agents/aibitat/plugins/web-browsing.js` (+61 -2) 📝 `server/utils/agents/aibitat/plugins/web-scraping.js` (+28 -0) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat (New feature) - [ ] 🐛 fix (Bug fix) - [ ] ♻️ refactor (Code refactoring without changing behavior) - [x] 💄 style (UI style changes) - [ ] 🔨 chore (Build, CI, maintenance) - [ ] 📝 docs (Documentation updates) ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves # ### Description - Reports citations for `@agent` executions - Shows Web resource favicons (if possible) - Reports citations for `summarize`, `web-scrape`, `web-browsing` tool calls. <!-- Describe the changes in this PR that are impactful to the repo. What problem does it solve? --> ### Visuals (if applicable) https://github.com/user-attachments/assets/5b69e4ff-8936-47d4-adf6-91496db3dce1 <!-- Add screenshots or screen recordings to demonstrate the changes, especially for UI updates. --> ### Additional Information <!-- Add any other context about the Pull Request here that was not captured above. --> ### Developer Validations <!-- All of the applicable items should be checked. --> - [ ] I ran `yarn lint` from the root of the repo & committed changes - [ ] Relevant documentation has been updated (if applicable) - [ ] I have tested my code functionality - [ ] Docker build succeeds locally Note: Will need to also compensate for attachment docs present in PR #5143 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-06-05 15:21:03 -04:00
yindo closed this issue 2026-06-05 15:21:03 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#5347