Skip to content

Commit

Permalink
add assistant name to create
Browse files Browse the repository at this point in the history
  • Loading branch information
isahers1 committed Sep 12, 2024
1 parent f49a713 commit 3851d93
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libs/sdk-py/langgraph_sdk/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 3851d93

Please sign in to comment.