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.
CronClient(
self,
http_client: HttpClient,
)| Name | Type |
|---|---|
| http_client | HttpClient |