Synchronous client for managing runs in LangGraph.
This class provides methods to create, retrieve, and manage runs, which represent individual executions of graphs.
client = get_sync_client(url="http://localhost:2024")
run = client.runs.create(thread_id="thread_123", assistant_id="asst_456")SyncRunsClient(
self,
http: SyncHttpClient,
)| Name | Type |
|---|---|
| http | SyncHttpClient |
Create a run and stream the results.
Create a background run.
Create a batch of stateless background runs.
Create a run, wait until it finishes and return the final state.
List runs.
Get a run.
Get a run.
Cancel one or more runs.
Can cancel runs by thread ID and run IDs, or by status filter.
Block until a run is done. Returns the final state of the thread.
Stream output from a run in real-time, until the run is done. Output is not buffered, so any output produced before this call will not be received here.
Delete a run.