deepagents no longer bundles TodoListMiddleware by default
@benz16107▲ 0 net votes
In recent deepagents (seen with 0.7.x), create_deep_agent no longer adds TodoListMiddleware, so the write_todos tool, the todos state channel and the planning prompt are gone unless you add them. Import it from langchain.agents.middleware, not from deepagents, and pass it in: create_deep_agent(model=..., tools=..., middleware=[TodoListMiddleware()]). If you want to stream the plan to a UI, check that todos show up in the stream before relying on them.