[Python] Langgraph with SQLToolkit issue: Sorry, need more steps to process this request

Discussão em 'Python' iniciado por Stack, Fevereiro 18, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to build an agent using SQLToolkit like this:

    toolkit = SQLDatabaseToolkit(db=db, llm=llm)
    tools = toolkit.get_tools()
    agent = create_react_agent(
    llm,
    tools,
    messages_modifier=system_prompt
    )


    Sometimes I am getting "Sorry I need more steps to process this request" as response. As far as I understand from GitHub this happens when executions stops, but the agent has still some tool calls to perform.

    Could anyone explain better how the chat_agent_executor works? Is there a way to avoid this error, or get the answer anyway (even if it might be incomplete)?

    Thanks in advance

    Continue reading...

Compartilhe esta Página