-
Notifications
You must be signed in to change notification settings - Fork 15.8k
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
Streaming only final output of agent (#2483) #4630
Streaming only final output of agent (#2483) #4630
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is fantastic! can we add an example showing how to use this in a notebook?
…UmerHA/langchain into 2483-agent-final-only-streaming
Done ✅ |
@hwchase17 ping :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@UmerHA Do we have any library in node js for streaming only the result? |
Hey @soumyabeebolt So far we don't, it's also not currently on my roadmap. But the PR is don't that complicated. You can port it if you want :) |
if someone needs the same implementation in TS then,
|
Streaming only final output of agent (#2483)
As requested in issue #2483, this Callback allows to stream only the final output of an agent (ie not the intermediate steps).
Fixes #2483
Who can review?
Community members can review the PR once tests pass. Tag maintainers/contributors who might be interested: @agola11
Twitter: @UmerHAdil | Discord: RicChilligerDude#7589