Increasing recursion limit on deployment

Hello, I can’t find the correct way to increase the recursion limit when running my app on a LangSmith deployment. The with_config call below is honored when locally, but on the deployment, it still errors out when hitting the default limit of 25.

app = builder.compile().with_config({“recursion_limit”: 100})

Any pointers? Thanks!

Update: On reading the LangGraph code, it would seem that setting the environment variable LANGGRAPH_DEFAULT_RECURSION_LIMIT should do the trick; however, that is not the case either. If recursion_limit is not explicitly passed at invoke time, the env variable’s default is ignored/overwritten with None.

hi @rkauf

have you passed through that post How to set recursion_limit for create_agent (v1)?? Is that helpful?