langchain icon indicating copy to clipboard operation
langchain copied to clipboard

Langchain agent is not continuing the entire flow of execution

Open gs-vkrishnasrujan opened this issue 1 year ago • 1 comments

Issue you'd like to raise.

I am using custom tools. I used zero shot react description agent and it was not giving the final answer. It stopped after using 1st tool.

So, I created a custom agent with custom examples in the prompt. It is still behaving the same way.

This is the output of the agent executer for one of the examples: statement = 'a query to get the average outcome variable score of all the CSAT responses' agent_executor.run(statement) Output:

Entering new AgentExecutor chain... Thought : I need to paraphrase the statement to add more context. Action : StatementFormattingTool[a query to get the average outcome variable score of all the CSAT responses] Observation : Get the average outcome variable score for all CSAT responses from the kda_distribution_log_02c581c9912a4ca1af7a67cd46324cf1_llm_test table.

Its has to use SQLGenerationTool to get the query. It stopped after using the first tool. It is happening every time with other statemennts as well.

Suggestion:

No response

gs-vkrishnasrujan avatar May 17 '23 16:05 gs-vkrishnasrujan

System info : python: 3.11.3 langchain: 0.0.128

gs-vkrishnasrujan avatar May 18 '23 02:05 gs-vkrishnasrujan

Were you ever able to resolve this? I face the same issue.

erikriverson avatar Jul 12 '23 23:07 erikriverson

Hi, @gs-vkrishnasrujan! I'm Dosu, and I'm here to help the LangChain team manage their backlog. I wanted to let you know that we are marking this issue as stale.

Based on my understanding, you reported an issue where the Langchain agent stops after using the first tool in the flow of execution. This issue seems to occur consistently with different statements. You provided system information, and another user mentioned facing the same problem. However, there hasn't been any resolution mentioned yet.

Before we close this issue, we wanted to check if it is still relevant to the latest version of the LangChain repository. If it is, please let us know by commenting on this issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days.

Thank you for your understanding and contribution to the LangChain project!

dosubot[bot] avatar Oct 11 '23 16:10 dosubot[bot]

I am having the same issue. Do you happen to have any updates on a solution?

cyclux avatar Oct 12 '23 00:10 cyclux

@baskaryan Could you please help @cyclux with the issue they are facing? They are experiencing the same problem as reported in the stale issue. Thank you!

dosubot[bot] avatar Oct 12 '23 00:10 dosubot[bot]

Hi, @gs-vkrishnasrujan

I'm helping the LangChain team manage our backlog and am marking this issue as stale. It seems like the Langchain agent is halting after using the first tool and not completing the execution flow, even with custom examples in the prompt. "erikriverson" and "cyclux" have reported facing the same issue. The LangChain team has requested an update on its relevance to the latest version of the repository. I have also requested assistance from "baskaryan" for resolving the problem faced by "cyclux."

Could you please confirm if this issue is still relevant to the latest version of the LangChain repository? If it is, please let the LangChain team know by commenting on the issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days. Thank you!

dosubot[bot] avatar Feb 05 '24 16:02 dosubot[bot]

Bump

omiguelpinheiro avatar Jul 15 '24 07:07 omiguelpinheiro