Async client for managing recurrent runs (cron jobs) in LangGraph.
Represents a wildcard or 'all' selector.
The field to sort by.
Durability mode for the graph execution.
"sync": Changes are persisted synchronously before the next step starts."async": Changes are persisted asynchronously while the next step executes."exit": Changes are persisted only when the graph exits.Defines action after completion:
The order to sort by.
Defines the mode of streaming:
Handle async requests to the LangGraph API.
Adds additional error messaging & content handling above the provided httpx client.
Configuration options for a call.
Represents a scheduled task.
Represents a single execution run.
Client for managing recurrent runs (cron jobs) in LangGraph.
A run is a single invocation of an assistant with optional input, config, and context. This client allows scheduling recurring runs to occur automatically.
client = get_client(url="http://localhost:2024"))
cron_job = await client.crons.create_for_thread(
thread_id="thread_123",
assistant_id="asst_456",
schedule="0 9 * * *",
input={"message": "Daily update"}
)The crons client functionality is not supported on all licenses. Please check the relevant license documentation for the most up-to-date details on feature availability.