adding NON-BREAKING/BACKWARDS-COMPATIBLE support for LangChain's v1 astream event #576
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description: Adding NON-BREAKING/BACKWARDS-COMPATIBLE support for LangChain's v1 astream events to the AgentRearrange & Agent classes. PLUS this PR include an example of how to use it.
Issue: Would like to stream the tokens of each agent in a swarm for enhanced UI/UX for a Web Application I am building on top of Swarms
Dependencies: No additional work needed other than merging
Maintainer: @kyegomez
Twitter handle: @cmd_labs on X.com
Leaving below for reference...
Please make sure your PR is passing linting and testing before submitting. Run
make format
,make lint
andmake test
to check this locally.See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/kyegomez/swarms/blob/master/CONTRIBUTING.md
See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/kyegomez/swarms
📚 Documentation preview 📚: https://swarms--576.org.readthedocs.build/en/576/