[PR #49] Pass handle_parsing_errors param through agent_executor_kwargs in Chat with pandas DataFrame example #52

Open
opened 2026-02-15 19:15:33 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/streamlit-agent/pull/49
Author: @andrewnguonly
Created: 2/1/2024
Status: 🔄 Open

Base: mainHead: handle-parsing-errors


📝 Commits (1)

  • 3531a72 Pass 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 pass handle_parsing_errors to the constructor of the AgentExecutor. 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_kwargs parameter.

References

  1. create_pandas_dataframe_agent(): https://github.com/langchain-ai/langchain/blob/v0.1.0/libs/experimental/langchain_experimental/agents/agent_toolkits/pandas/base.py#L278
  2. AgentExecutor: 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.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/streamlit-agent/pull/49 **Author:** [@andrewnguonly](https://github.com/andrewnguonly) **Created:** 2/1/2024 **Status:** 🔄 Open **Base:** `main` ← **Head:** `handle-parsing-errors` --- ### 📝 Commits (1) - [`3531a72`](https://github.com/langchain-ai/streamlit-agent/commit/3531a7202ac77145a30caf7308cf0fcf5236b573) Pass handle_parsing_errors param through agent_executor_kwargs. ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `streamlit_agent/chat_pandas_df.py` (+1 -1) </details> ### 📄 Description ### Summary The experimental function `create_pandas_dataframe_agent()` does not pass `handle_parsing_errors` to the constructor of the `AgentExecutor`. 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_kwargs` parameter. ### References 1. `create_pandas_dataframe_agent()`: https://github.com/langchain-ai/langchain/blob/v0.1.0/libs/experimental/langchain_experimental/agents/agent_toolkits/pandas/base.py#L278 2. `AgentExecutor`: https://github.com/langchain-ai/langchain/blob/v0.1.0/libs/langchain/langchain/agents/agent.py#L837 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 19:15:33 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/streamlit-agent#52