Skip to content

Commit

Permalink
document assistant name
Browse files Browse the repository at this point in the history
  • Loading branch information
isahers1 committed Sep 12, 2024
1 parent 3851d93 commit cf8b27b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libs/sdk-py/langgraph_sdk/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@ async def create(
assistant_id: Assistant ID to use, will default to a random UUID if not provided.
if_exists: How to handle duplicate creation. Defaults to 'raise' under the hood.
Must be either 'raise' (raise error if duplicate), or 'do_nothing' (return existing assistant).
assistant_name: The name of the assistant. Defaults to 'Untitled' under the hood.
Returns:
Assistant: The created assistant.
Expand All @@ -441,7 +442,8 @@ async def create(
config={"configurable": {"model_name": "openai"}},
metadata={"number":1},
assistant_id="my-assistant-id",
if_exists="do_nothing"
if_exists="do_nothing",
assistant_name="my_assistant_name"
)
""" # noqa: E501
payload: Dict[str, Any] = {
Expand Down

0 comments on commit cf8b27b

Please sign in to comment.