agent never stop #3079
Unanswered
mei19941201
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
我是一个langchain的新人,我在尝试根据文档的描述构建一个agent,当我调用这个agent的时候,我发现他很长时间都没有返回,我观察到langsmith中,他一直在agent 和 tools之间循环,Did i miss something? The code follows:
search = TavilySearchResults(max_results=2) llm = ChatOpenAI( model="deepseek-chat", api_key=config.deepseek_chat_api_key, base_url=config.deepseek_chat_base_url ) agent = create_react_agent(llm, [search]) agent.invoke({"messages": "what time it is now?"})
Beta Was this translation helpful? Give feedback.
All reactions