SyncThreadsClient(
self,
http: SyncHttpClient,
)| Name | Type |
|---|---|
| http | SyncHttpClient |
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"})