diff --git a/src/backend/base/langflow/components/agents/CSVAgent.py b/src/backend/base/langflow/components/agents/CSVAgent.py index 444a04ae2a5..25cec6653d9 100644 --- a/src/backend/base/langflow/components/agents/CSVAgent.py +++ b/src/backend/base/langflow/components/agents/CSVAgent.py @@ -56,11 +56,13 @@ def build_agent_response(self) -> Message: } agent_csv = create_csv_agent( - llm=self.llm, path=self.path, agent_type=self.agent_type, handle_parsing_errors=True, **agent_kwargs + llm=self.llm, + path=self.path, + agent_type=self.agent_type, + handle_parsing_errors=self.handle_parsing_errors, + **agent_kwargs, ) - print(f"self.inputs = {agent_csv}") - result = agent_csv.invoke({"input": self.input_value}) return Message(text=str(result["output"])) @@ -71,7 +73,11 @@ def build_agent(self) -> AgentExecutor: } agent_csv = create_csv_agent( - llm=self.llm, path=self.path, agent_type=self.agent_type, handle_parsing_errors=True, **agent_kwargs + llm=self.llm, + path=self.path, + agent_type=self.agent_type, + handle_parsing_errors=self.handle_parsing_errors, + **agent_kwargs, ) self.status = Message(text=str(agent_csv))