[PR #6867] feat(sdk-py): improve store auth type safety and docstrings #5359

Closed
opened 2026-02-20 17:51:36 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langchain-ai/langgraph/pull/6867

State: closed
Merged: Yes


Summary

  • Add _StoreActionOn class with action-specific decorator properties (.put, .get, .search, .delete, .list_namespaces) to _StoreOn, enabling @auth.on.store.put etc. which was documented but not implemented
  • Update docstring examples to show namespace-rewriting pattern as the canonical store auth approach
  • Fix AuthContext.action docstring: add missing search and delete store actions
  • Fix typo in StoreSearch.query docstring
  • Add auth-handler-aware docstrings to all store TypedDicts

Test plan

  • make format && make lint passes in libs/sdk-py
  • [] Verify @auth.on.store.put decorator works at runtime
**Original Pull Request:** https://github.com/langchain-ai/langgraph/pull/6867 **State:** closed **Merged:** Yes --- ## Summary - Add `_StoreActionOn` class with action-specific decorator properties (`.put`, `.get`, `.search`, `.delete`, `.list_namespaces`) to `_StoreOn`, enabling `@auth.on.store.put` etc. which was documented but not implemented - Update docstring examples to show namespace-rewriting pattern as the canonical store auth approach - Fix `AuthContext.action` docstring: add missing `search` and `delete` store actions - Fix typo in `StoreSearch.query` docstring - Add auth-handler-aware docstrings to all store TypedDicts ## Test plan - [x] `make format && make lint` passes in `libs/sdk-py` - [] Verify `@auth.on.store.put` decorator works at runtime
yindo added the pull-request label 2026-02-20 17:51:36 -05:00
yindo closed this issue 2026-02-20 17:51:36 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#5359