The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
Fix handling of missing action & input for async MRKL agent (#5985)
Daniel Grittner0ca37e613c7f
diff --git a/langchain/agents/agent.py b/langchain/agents/agent.pyindex a1da5e7a24..0056d10fbc 100644--- a/langchain/agents/agent.py+++ b/langchain/agents/agent.py@@ -864,7 +864,11 @@ class AgentExecutor(Chain):raise etext = str(e)if isinstance(self.handle_parsing_errors, bool):- observation = "Invalid or incomplete response"+ if e.send_to_llm:+ observation = str(e.observation)+ text = str(e.llm_output)+ else:+ observation = "Invalid or incomplete response"elif isinstance(self.handle_parsing_errors, str):observation = self.handle_parsing_errorselif callable(self.handle_parsing_errors):