Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
hinthornw committed Oct 2, 2024
1 parent 462df99 commit d1ce219
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions libs/sdk-py/langgraph_sdk/client.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""The LangGraph client implementations connect to the LangGraph API.
It includes functionality for API authentication, HTTP request handling,
and interfaces for interacting with LangGraph's core resources such as
This module provides both asynchronous (LangGraphClient) and synchronous (SyncLanggraphClient)
clients to interacting with the LangGraph API's core resources such as
Assistants, Threads, Runs, and Cron jobs, as well as its persistent
document Store.
"""
Expand Down Expand Up @@ -2259,7 +2259,7 @@ def __init__(self, client: httpx.Client) -> None:
self.client = client

def get(self, path: str, *, params: Optional[QueryParamTypes] = None) -> Any:
"""Make a GET request."""
"""Send a GET request."""
r = self.client.get(path, params=params)
try:
r.raise_for_status()
Expand All @@ -2273,7 +2273,7 @@ def get(self, path: str, *, params: Optional[QueryParamTypes] = None) -> Any:
return decode_json(r)

def post(self, path: str, *, json: Optional[dict]) -> Any:
"""Make a POST request."""
"""Send a POST request."""
if json is not None:
headers, content = encode_json(json)
else:
Expand All @@ -2291,7 +2291,7 @@ def post(self, path: str, *, json: Optional[dict]) -> Any:
return decode_json(r)

def put(self, path: str, *, json: dict) -> Any:
"""Make a PUT request."""
"""Send a PUT request."""
headers, content = encode_json(json)
r = self.client.put(path, headers=headers, content=content)
try:
Expand All @@ -2306,7 +2306,7 @@ def put(self, path: str, *, json: dict) -> Any:
return decode_json(r)

def patch(self, path: str, *, json: dict) -> Any:
"""Make a PATCH request."""
"""Send a PATCH request."""
headers, content = encode_json(json)
r = self.client.patch(path, headers=headers, content=content)
try:
Expand All @@ -2321,7 +2321,7 @@ def patch(self, path: str, *, json: dict) -> Any:
return decode_json(r)

def delete(self, path: str, *, json: Optional[Any] = None) -> None:
"""Make a DELETE request."""
"""Send a DELETE request."""
r = self.client.request("DELETE", path, json=json)
try:
r.raise_for_status()
Expand Down

0 comments on commit d1ce219

Please sign in to comment.