From 5796ca9a0ad8ec53dbcf12fa9f1d671b826e5f1d Mon Sep 17 00:00:00 2001 From: "Parker J. Rule" Date: Wed, 22 Oct 2025 13:35:15 -0400 Subject: [PATCH] fix(sdk-py): refine `body` param type (`Auth.authenticate`) (#6322) Requests are not guaranteed to contain a body, and a request's body is not guaranteed to be valid JSON. This updates the type signature for authentication handlers to account for these scenarios. --- libs/sdk-py/langgraph_sdk/auth/__init__.py | 1 - 1 file changed, 1 deletion(-) diff --git a/libs/sdk-py/langgraph_sdk/auth/__init__.py b/libs/sdk-py/langgraph_sdk/auth/__init__.py index b76601e55..3379affac 100644 --- a/libs/sdk-py/langgraph_sdk/auth/__init__.py +++ b/libs/sdk-py/langgraph_sdk/auth/__init__.py @@ -194,7 +194,6 @@ class Auth: by name: - request (Request): The raw ASGI request object - - body (dict): The parsed request body - path (str): The request path, e.g., "/threads/abcd-1234-abcd-1234/runs/abcd-1234-abcd-1234/stream" - method (str): The HTTP method, e.g., "GET" - path_params (dict[str, str]): URL path parameters, e.g., {"thread_id": "abcd-1234-abcd-1234", "run_id": "abcd-1234-abcd-1234"}