-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Stream only the final answer when using an agent #1820
Comments
I found my solution here https://js.langchain.com/docs/modules/chains/index_related_chains/conversational_retrieval#streaming I'm closing this issue. |
Hello, do you have an example of code that worked for you? Thanks |
@dogfootruler-kr I don't see an implementation of a callback with functionality similar to the Python callback you linked under the link you provided as your solution. I believe that such a callback is missing in JS LangChain. Please consider re-opening the issue. |
@rdroste @alexgitENI Indeed the callback is still missing and the link I shared did not work for me. I'll reopen this issue but I don't really care about it now. You can always make a PR to add this callback. |
🤖 Hi, @dogfootruler-kr, I'm helping the langchainjs team manage their backlog and am marking this issue as stale. From what I understand, you initially asked about streaming only the final answer when using an agent in the JS library, found a solution, and closed the issue. However, another user pointed out the missing functionality and suggested reopening the issue. You mentioned that you don't really care about it now and others are welcome to make a pull request to add this callback. Could you please confirm if this issue is still relevant to the latest version of the langchainjs repository? If it is, please let the langchainjs team know by commenting on the issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days. Thank you! |
is this implemented or anyone has a custom solution? |
I am using an agent and I would like to be able to stream only the final answer just like this question for the python lib that was resolved by creating this specific callback.
Is that also possible using the JS library?
Thank you very much!
The text was updated successfully, but these errors were encountered: