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

Pandas agent: Pass callback manager to Python tool. #3646

Merged

Conversation

sliedes
Copy link
Contributor

@sliedes sliedes commented Apr 27, 2023

The callback manager was not passed to the Python tool, making it hard to observe some intermediate steps.

NOTE: The mypy hints seem to suggest that the tool does not accept None as an input—but I didn't check the code—so I use get_callback_manager() to get the real default callback manager in case None is passed to the Pandas tool.

The callback manager was not passed to the Python tool, making it hard
to observe some intermediate steps.
@vowelparrot vowelparrot self-requested a review April 27, 2023 16:55
@vowelparrot
Copy link
Contributor

Thank you for the PR! We are doing a big overhaul of callbacks and will address this, though that may cause aslight delay in landing this pR in particular

@sliedes
Copy link
Contributor Author

sliedes commented Apr 28, 2023

That sounds good. The callbacks system as it is right now does seem a bit fragile; excited to see what you manage to do :) I guess you're talking about e.g. this: #3256 ? (just curious)

@vowelparrot vowelparrot changed the base branch from master to vwp/pandas_cb_manager April 30, 2023 21:12
@vowelparrot vowelparrot merged commit 9844477 into langchain-ai:vwp/pandas_cb_manager Apr 30, 2023
@sliedes sliedes deleted the pandas_cb_manager branch April 30, 2023 21:57
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

Successfully merging this pull request may close these issues.

None yet

2 participants