最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

python 3.x - Recursion Limit in LangGraph agent : Recursion limit of 25 reached without hitting a stop condition - Stack Overflo

programmeradmin4浏览0评论
agent_executor = create_react_agent(
        model,
        tools=tools,
        prompt=instructions,
        checkpointer=memory,   
    )
    config = {
            "thread_id": "abc123",
            "recursion_limit": 100
              }
    response = agent_executor.invoke(
                                    {
                                        "messages": [HumanMessage(content=user_input)]
                                    },
                                    config=config
                                    )
    
    print(response["messages"][-1].content)

I am getting this error even when I am setting recursion limit to be 100.

langgraph.errors.GraphRecursionError: Recursion limit of 25 reached without hitting a stop condition. You can increase the limit by setting the recursion_limit config key. For troubleshooting, visit:

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论