[langsmith]: value type `Auth.types.on...value` is inconsistent in auth.mdx

Open Beginner friendly
#8,060 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@ZYZ666-RGB is already working on this.

Since Nov 24, 2026.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
88/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
documentation

Research direction

The inconsistency is in src/langsmith/auth.mdx, in the resource-specific handlers and Supported resources sections. Compare the two annotation forms there, Auth.types.<item>.<action> and Auth.types.on.<item>.<action>, against the reported runtime behavior where the version without on raises an AttributeError. Done means both sections use the correct Auth.types.on.<item>.<action> form consistently, so the examples match the installed langgraph_sdk.auth.types API.

Written by the indexing model from the issue text.

Description

external langsmith
Type of issue

issue / bug

Language

Python

Description

The authentication documentation (https://github.com/langchain-ai/docs/blob/main/src/langsmith/auth.mdx) uses inconsistent type annotations.

In section resource-specific handlers, we have value=Auth.types.<item>.<action>
For example,

@auth.on.threads.create
async def on_thread_create(
    ctx: Auth.types.AuthContext,
    value: Auth.types.threads.create.value
):

In section Supported resources, we have value=Auth.types.on.<item>.<action>
For example,

@auth.on.threads.create
async def on_thread_create(
    ctx: Auth.types.AuthContext,
    value: Auth.types.on.threads.create.value
 ):
...

With langgraph=1.2.24 and deepagents=0.7.4:
Without on, we have AttributeError: module 'langgraph_sdk.auth.types' has no attribute 'threads' error.

Dominant language
MDX
Stars
455
Forks
2.8k
Avg merge
23h 19m
Merged PRs (30d)
646

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from langchain-ai/docs

All issues in langchain-ai/docs

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.