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.
This commit is contained in:
Parker J. Rule
2025-10-22 17:35:15 +00:00
committed by GitHub
parent fca3e4513c
commit 5796ca9a0a
@@ -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"}