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

core[major]: AsyncCallbackManagerForToolRun no longer casts return object to string #20374

Merged
merged 2 commits into from
May 13, 2024

Conversation

adreo00
Copy link
Contributor

@adreo00 adreo00 commented Apr 12, 2024

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Apr 12, 2024
Copy link

vercel bot commented Apr 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Apr 17, 2024 10:46pm

@dosubot dosubot bot added Ɑ: core Related to langchain-core 🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature labels Apr 12, 2024
@adreo00
Copy link
Contributor Author

adreo00 commented Apr 12, 2024

This output=str(output) occurs in a few other places: https://github.com/search?q=repo%3Alangchain-ai%2Flangchain%20%22output%20%3D%20str(output)%22&type=code

The only other spot it occurs in langchain_core though, is when it's printed, not returned, so I assume that's fine. The rest are in langchain_community, and I'm limiting this PR to one langchain package, as requested.

@adreo00
Copy link
Contributor Author

adreo00 commented Apr 17, 2024

Due to this being an async callback, I'm not sure how I could add tests to this code, but am open to suggestions. Issue #20372 is able to reproduce this issue, but is not minimal enough to be included as a unit test.

@adreo00
Copy link
Contributor Author

adreo00 commented Apr 17, 2024

@eyurtsev I'm sure you're slammed with other issues, but any chance you could take a look at this considering how close this PR is to the one you and @keenborder786 authored: #18932

@eyurtsev eyurtsev changed the title core: AsyncCallbackManagerForToolRun no longer casts return object to string core[major]: AsyncCallbackManagerForToolRun no longer casts return object to string May 13, 2024
@eyurtsev eyurtsev self-assigned this May 13, 2024
@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label May 13, 2024
@eyurtsev
Copy link
Collaborator

Going to verify a few traces to make sure this doesn't break anything, and if so we can release as part of 0.2 release.

@eyurtsev
Copy link
Collaborator

cc @baskaryan

@eyurtsev eyurtsev merged commit 40aff1e into langchain-ai:master May 13, 2024
96 checks passed
@eyurtsev
Copy link
Collaborator

Will be released as part of 0.2.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature Ɑ: core Related to langchain-core lgtm PR looks good. Use to confirm that a PR is ready for merging. size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants