Skip to content

Conversation

@MohammedAlhajji
Copy link
Contributor

@MohammedAlhajji MohammedAlhajji commented Apr 1, 2023

Hello!
I've noticed a bug in create_pandas_dataframe_agent. When calling it with argument return_intermediate_steps=True, it doesn't return the intermediate step. I think the issue is that kwargs was not passed where it needed to be passed. It should be passed into AgentExecutor.from_agent_and_tools

Please correct me if my solution isn't appropriate and I will fix with the appropriate approach.

Copy link
Contributor

@hwchase17 hwchase17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

**kwargs also gets passed to ZeroShotAgent, need someway to differentiate them

could just add return_intermediate_steps to the function signature

@MohammedAlhajji
Copy link
Contributor Author

@hwchase17 Thanks for the review! Updated now with return_intermediate_steps , max_iterations, and early_stopping_method . Let me know if I can make more changes to enhance this

Copy link
Contributor

@hwchase17 hwchase17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks great to me! thanks

@hwchase17 hwchase17 merged commit fd0d631 into langchain-ai:master Apr 3, 2023
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.

2 participants