[PR #3863] [MERGED] JSON Parser from agent flow blocks #4438

Closed
opened 2026-02-22 18:35:50 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/3863
Author: @shatfield4
Created: 5/21/2025
Status: Merged
Merged: 6/5/2025
Merged by: @timothycarambat

Base: masterHead: flow-output-as-json


📝 Commits (5)

  • cbefd93 implement json parser for agent flow to allow dot notation and array access
  • e6a3de4 lint
  • d52fc5f patch parser for pathing on objects
  • e145838 merge with upstream
  • 93022f3 Move webscraping deps to closure

📊 Changes

6 files changed (+201 additions, -18 deletions)

View changed files

📝 package.json (+3 -1)
📝 server/.gitignore (+1 -0)
server/__tests__/utils/agentFlows/executor.test.js (+93 -0)
📝 server/utils/agentFlows/executor.js (+95 -8)
📝 server/utils/agentFlows/executors/llm-instruction.js (+4 -4)
📝 server/utils/agentFlows/executors/web-scraping.js (+5 -5)

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

resolves #3862

What is in this change?

  • Create getValueFromPath util function inside of the FlowExecutor class
  • Implements a JSON parser to allow accessing an agent flow block's response via dot notation or accessing arrays inside of the JSON object response

Additional Information

Developer Validations

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

🔄 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/3863 **Author:** [@shatfield4](https://github.com/shatfield4) **Created:** 5/21/2025 **Status:** ✅ Merged **Merged:** 6/5/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `flow-output-as-json` --- ### 📝 Commits (5) - [`cbefd93`](https://github.com/Mintplex-Labs/anything-llm/commit/cbefd93e80c3943b11bc6f449f100c82a291bb85) implement json parser for agent flow to allow dot notation and array access - [`e6a3de4`](https://github.com/Mintplex-Labs/anything-llm/commit/e6a3de4d57350d899882754f98eb8edaa0841835) lint - [`d52fc5f`](https://github.com/Mintplex-Labs/anything-llm/commit/d52fc5fc9521f3f643e089d6cc42b9a0a202d42c) patch parser for pathing on objects - [`e145838`](https://github.com/Mintplex-Labs/anything-llm/commit/e145838881fd8d96a27d9f1d5942027948133650) merge with upstream - [`93022f3`](https://github.com/Mintplex-Labs/anything-llm/commit/93022f3a16d68689f17754f109c6ec3aee26e2f4) Move webscraping deps to closure ### 📊 Changes **6 files changed** (+201 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `package.json` (+3 -1) 📝 `server/.gitignore` (+1 -0) ➕ `server/__tests__/utils/agentFlows/executor.test.js` (+93 -0) 📝 `server/utils/agentFlows/executor.js` (+95 -8) 📝 `server/utils/agentFlows/executors/llm-instruction.js` (+4 -4) 📝 `server/utils/agentFlows/executors/web-scraping.js` (+5 -5) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #3862 ### What is in this change? <!-- Describe the changes in this PR that are impactful to the repo. --> - Create `getValueFromPath` util function inside of the `FlowExecutor` class - Implements a JSON parser to allow accessing an agent flow block's response via dot notation or accessing arrays inside of the JSON object response ### 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. --> - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated - [x] I have tested my code functionality - [x] Docker build succeeds locally --- <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-02-22 18:35:50 -05:00
yindo closed this issue 2026-02-22 18:35:50 -05:00
yindo changed title from [PR #3863] JSON Parser from agent flow blocks to [PR #3863] [MERGED] JSON Parser from agent flow blocks 2026-06-05 15:18:33 -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#4438