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

[Langchain_community]: Fixed the Pandas Zero React Agent Creation #17475

Closed
wants to merge 2 commits into from
Closed

[Langchain_community]: Fixed the Pandas Zero React Agent Creation #17475

wants to merge 2 commits into from

Conversation

keenborder786
Copy link
Contributor

  • The default create_react_agent being used in create_pandas_dataframe_agent raises the following exception:
Prompt missing required variables: tools,tool_names

Upon closer inspection, it was clear that _get_prompt creates a prompt in which tools and tool_names are created as partial variables therefore the exception being raised. Therefore to fix this without breaking anything, I just created the same function i.e create_react_agent without the exception in the agents.agent_toolkits.pandas.base module and it works. Let me know if this is good or is their is a neater way to solve this issue.

Copy link

vercel bot commented Feb 13, 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 Feb 13, 2024 7:52pm

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. Ɑ: agent Related to agents module 🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature labels Feb 13, 2024
@baskaryan
Copy link
Collaborator

baskaryan commented Feb 13, 2024

believe this was already fixed in #17442 (hasn't been released yet)

@keenborder786
Copy link
Contributor Author

@baskaryan opsi. Closing it.

@keenborder786 keenborder786 deleted the zeroreact_agent_fix branch February 25, 2024 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ɑ: agent Related to agents module 🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants