θΏ™ζ˜―indexlocζδΎ›ηš„ζœεŠ‘οΌŒδΈθ¦θΎ“ε…₯任何密码
Skip to content

JSON Parser from agent flow blocks #3863

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 5, 2025
Merged

Conversation

shatfield4
Copy link
Collaborator

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

update tests to not modify env since no longer needed
do not modify paths with spaces - could be text key with spaces
@timothycarambat timothycarambat merged commit 2938aaf into master Jun 5, 2025
@timothycarambat timothycarambat deleted the flow-output-as-json branch June 5, 2025 14:18
cabwds pushed a commit to cabwds/anything-llm that referenced this pull request Jul 3, 2025
* implement json parser for agent flow to allow dot notation and array access

* lint

* patch parser for pathing on objects
add tests for cases

* Move webscraping deps to closure
update tests to not modify env since no longer needed
do not modify paths with spaces - could be text key with spaces

---------

Co-authored-by: timothycarambat <rambat1010@gmail.com>
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.

[FEAT]: JSON parser for agent flow block responses
2 participants