This repo contains the Python and JS clients for the LangSmith platform.
This repository is archived. The Python and JavaScript SDKs now live in langsmith-python and langsmith-javascript. Open new issues and pull requests in the corresponding repository.
See python/AGENTS.md for Python-specific lint/test instructions.
For security reasons, maintainers do not authorize GitHub Actions to run on external contributors' PRs. Instead, review the contribution, cherry-pick its commits onto a branch in langchain-ai/langsmith-sdk, and open a maintainer-owned PR so CI can run there.
-
Inspect the original PR's complete diff and commit list without approving its workflows. Review code, tests, dependency changes, and any scripts or workflow changes that CI would execute. Moving code to an internal branch does not make it safe; finish this review before pushing.
-
Start from the latest target branch in a clean checkout. Fetch the original PR's head and cherry-pick only the reviewed commits, oldest first:
git fetch origin git switch -c external-pr-<number> origin/<target-branch> git fetch origin pull/<number>/head git cherry-pick -x <reviewed-commit-sha> [<next-reviewed-commit-sha> ...]
Use explicit SHAs from the original PR, not a moving branch head.
-xrecords the source commit, and cherry-picking preserves the contributor's authorship. If a cherry-pick conflicts, resolve and review the resulting diff before continuing, or abort withgit cherry-pick --abort. -
Check the final diff against the target branch, run the relevant local checks, then push the branch to
origin(not the contributor's fork) and open a new PR against the original target branch. Link the original PR, credit the contributor, and describe any changes made during the takeover. Agents should use their PR-creation tool when available. -
Run CI and obtain the usual review on the replacement PR. Do not approve workflows on the original PR or weaken CI security settings. Link the replacement from the original PR; close the original as superseded once the replacement is merged.
If the contributor adds commits later, review and cherry-pick those explicitly as well; do not automatically sync unreviewed updates.