From 3851d938eea167b28865e9bae9c6fec162bb78b3 Mon Sep 17 00:00:00 2001 From: isaac hershenson Date: Wed, 11 Sep 2024 17:02:12 -0700 Subject: [PATCH] add assistant name to create --- libs/sdk-py/langgraph_sdk/client.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/sdk-py/langgraph_sdk/client.py b/libs/sdk-py/langgraph_sdk/client.py index 3f779e688..8eb0c8f3c 100644 --- a/libs/sdk-py/langgraph_sdk/client.py +++ b/libs/sdk-py/langgraph_sdk/client.py @@ -417,6 +417,7 @@ async def create( metadata: Json = None, assistant_id: Optional[str] = None, if_exists: Optional[OnConflictBehavior] = None, + assistant_name: Optional[str] = None, ) -> Assistant: """Create a new assistant. @@ -454,6 +455,8 @@ async def create( payload["assistant_id"] = assistant_id if if_exists: payload["if_exists"] = if_exists + if assistant_name: + payload['assistant_name'] = assistant_name return await self.http.post("/assistants", json=payload) async def update(