Synchronous client for managing threads in LangGraph.
This class provides methods to create, retrieve, and manage threads, which represent conversations or stateful interactions.
client = get_sync_client(url="http://localhost:2024")
thread = client.threads.create(metadata={"user_id": "123"})SyncThreadsClient(
self,
http: SyncHttpClient,
)| Name | Type |
|---|---|
| http | SyncHttpClient |
Get a thread by ID.
Create a new thread.
Update a thread.
Delete a thread.
Search for threads.
Count threads matching filters.
Copy a thread.
Prune threads by ID.
Get the state of a thread.
Update the state of a thread.
Get the state history of a thread.
Get a stream of events for a thread.