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

Stream only the final answer when using an agent #1820

Closed
dogfootruler-kr opened this issue Jun 30, 2023 · 6 comments
Closed

Stream only the final answer when using an agent #1820

dogfootruler-kr opened this issue Jun 30, 2023 · 6 comments
Labels
auto:question A specific question about the codebase, product, project, or how to use a feature

Comments

@dogfootruler-kr
Copy link

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!

@dogfootruler-kr
Copy link
Author

@alexgitENI
Copy link

Hello, do you have an example of code that worked for you? Thanks

@rdroste
Copy link

rdroste commented Nov 21, 2023

@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.

@dogfootruler-kr
Copy link
Author

@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.

@dosubot dosubot bot added the auto:question A specific question about the codebase, product, project, or how to use a feature label Nov 30, 2023
@dosubot dosubot bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Feb 29, 2024
Copy link

dosubot bot commented Feb 29, 2024

🤖

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!

@dosubot dosubot bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 13, 2024
@dosubot dosubot bot removed the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Mar 13, 2024
@Alexmhack
Copy link

is this implemented or anyone has a custom solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:question A specific question about the codebase, product, project, or how to use a feature
Projects
None yet
Development

No branches or pull requests

4 participants