The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
Improve error message (#6275)
Alonso Silva Allendeb82ddf9cfbf8
diff --git a/langchain/agents/openai_functions_agent/base.py b/langchain/agents/openai_functions_agent/base.pyindex 87108e5f7f..704cbf04b7 100644--- a/langchain/agents/openai_functions_agent/base.py+++ b/langchain/agents/openai_functions_agent/base.py@@ -290,7 +290,7 @@ class OpenAIFunctionsAgent(BaseSingleActionAgent):) -> BaseSingleActionAgent:"""Construct an agent from an LLM and tools."""if not isinstance(llm, ChatOpenAI):- raise ValueError("Only supported with OpenAI models.")+ raise ValueError("Only supported with ChatOpenAI models.")prompt = cls.create_prompt(extra_prompt_messages=extra_prompt_messages,system_message=system_message,