Skip to content
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

For nodes that are generator based, let them self enforce stop patterns or exhaust #1

Open
iantbutler01 opened this issue Oct 23, 2024 · 0 comments

Comments

@iantbutler01
Copy link
Contributor

Right now if you have a node that yields anything you must have a second node that decides to jump back into that node for it to continue yielding. That is useful in complex cases like code analysis or any type of output checking, but in simple cases like greeting a user with streaming the need for flow control is tedious as it should just stream through to exhaustion.

To that end we should let users both A. run a node to exhaustion without flow control. B. Allow ways to configure a callback to decide if the next step in execution should be moved to as this would obviate the need for the second node entirely.

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

No branches or pull requests

1 participant