#1703·ag-ui

[Feature]: (LangGraph) Pass `durability` to `.astream_values`

Author: ltoniazziCreated May 15, 2026Updated Oct 1, 2026
Labelsenhancement

Pre-flight Checklist

  • I have searched existing issues and this hasn't been requested yet.

Problem or Motivation

What

Pass durability to astream_events here:

python
kwargs["durability"] = "<durability>"  # add somehow
stream = self.graph.astream_events(**kwargs)

Why

I think durability defaults to durability="async" in LangGraph, which implies a lot of extra DB reads/write compared to"exit".

I think it's useful to be able to control it as a lot of high traffic use cases will want to use exit.

Proposed Solution

Not sure what is the best way to pass durability. I think there is no need to pass it at invocation, and could be set as an env var AG_UI_LANGGRAPH_DURABILITY.