From c917664f60064672ede076d29f2635c9183d510a Mon Sep 17 00:00:00 2001 From: William FH <13333726+hinthornw@users.noreply.github.com> Date: Thu, 27 Jun 2024 10:23:37 -0700 Subject: [PATCH] [SDK] Cleanup docstring(#841) --- .../code_assistant/langgraph_code_assistant.ipynb | 2 +- libs/sdk-py/langgraph_sdk/client.py | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/examples/code_assistant/langgraph_code_assistant.ipynb b/examples/code_assistant/langgraph_code_assistant.ipynb index c435cd3ce..02a9759f6 100644 --- a/examples/code_assistant/langgraph_code_assistant.ipynb +++ b/examples/code_assistant/langgraph_code_assistant.ipynb @@ -82,7 +82,7 @@ "\n", "### Code solution\n", "\n", - "Try OpenAI and [Claude3](https://docs.anthropic.com/claude/docs/models-overview) with function calling.\n", + "Try OpenAI and [Claude3](https://docs.anthropic.com/en/docs/about-claude/models) with function calling.\n", "\n", "Create `code_gen_chain` w/ either OpenAI or Claude and test here." ] diff --git a/libs/sdk-py/langgraph_sdk/client.py b/libs/sdk-py/langgraph_sdk/client.py index efb4494df..29f9eec8a 100644 --- a/libs/sdk-py/langgraph_sdk/client.py +++ b/libs/sdk-py/langgraph_sdk/client.py @@ -279,7 +279,18 @@ class AssistantsClient: limit: int = 10, offset: int = 0, ) -> list[Assistant]: - """Search for assistants.""" + """Search for assistants. + + Args: + metadata (dict, optional): Metadata to filter by. Defaults to None. + graph_id (str, optional): The ID of the graph to filter by. Defaults to None. + The graph ID is normally set in your langgraph.json configuration. + limit (int, optional): The maximum number of results to return. Defaults to 10. + offset (int, optional): The number of results to skip. Defaults to 0. + + Returns: + list[Assistant]: A list of assistants. + """ payload: Dict[str, Any] = { "limit": limit, "offset": offset,