mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-21 15:12:26 +02:00
Fix
This commit is contained in:
@@ -378,7 +378,7 @@ class SyncAssistantsClient:
|
||||
""" # noqa: E501
|
||||
return self.http.get(f"/assistants/{assistant_id}/schemas")
|
||||
|
||||
async def get_subgraphs(
|
||||
def get_subgraphs(
|
||||
self, assistant_id: str, namespace: Optional[str] = None, recurse: bool = False
|
||||
) -> Subgraphs:
|
||||
"""Get the schemas of an assistant by ID.
|
||||
@@ -391,12 +391,12 @@ class SyncAssistantsClient:
|
||||
|
||||
""" # noqa: E501
|
||||
if namespace is not None:
|
||||
return await self.http.get(
|
||||
return self.http.get(
|
||||
f"/assistants/{assistant_id}/subgraphs/{namespace}",
|
||||
params={"recurse": recurse},
|
||||
)
|
||||
else:
|
||||
return await self.http.get(
|
||||
return self.http.get(
|
||||
f"/assistants/{assistant_id}/subgraphs",
|
||||
params={"recurse": recurse},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user