mirror of
https://github.com/langchain-ai/streamlit-agent.git
synced 2026-08-26 19:16:33 -04:00
[PR #49] Pass handle_parsing_errors param through agent_executor_kwargs in Chat with pandas DataFrame example
#52
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langchain-ai/streamlit-agent/pull/49
Author: @andrewnguonly
Created: 2/1/2024
Status: 🔄 Open
Base:
main← Head:handle-parsing-errors📝 Commits (1)
3531a72Pass handle_parsing_errors param through agent_executor_kwargs.📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
streamlit_agent/chat_pandas_df.py(+1 -1)📄 Description
Summary
The experimental function
create_pandas_dataframe_agent()does not passhandle_parsing_errorsto the constructor of theAgentExecutor. The result is that the agent fails to handle parsing errors (i.e. it does not retry or pass the error back to the LLM).Instead, the parameter should be passed through the function's
agent_executor_kwargsparameter.References
create_pandas_dataframe_agent(): https://github.com/langchain-ai/langchain/blob/v0.1.0/libs/experimental/langchain_experimental/agents/agent_toolkits/pandas/base.py#L278AgentExecutor: https://github.com/langchain-ai/langchain/blob/v0.1.0/libs/langchain/langchain/agents/agent.py#L837🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.