Merge pull request #1083 from langchain-ai/vb/update-sdk

This commit is contained in:
Nuno Campos
2024-07-22 08:05:50 -07:00
committed by GitHub
+4
View File
@@ -392,6 +392,10 @@ class ThreadsClient:
json=payload,
)
async def copy(self, thread_id: str) -> None:
"""Copy a thread."""
return await self.http.post(f"/threads/{thread_id}/copy", json=None)
async def get_state(
self, thread_id: str, checkpoint_id: Optional[str] = None
) -> ThreadState: