Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions reference/python/docs/langsmith/anonymizer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Anonymizer

::: langsmith.anonymizer
3 changes: 3 additions & 0 deletions reference/python/docs/langsmith/async_client.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Async Client

::: langsmith.async_client
3 changes: 3 additions & 0 deletions reference/python/docs/langsmith/client.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Client

::: langsmith.client
3 changes: 3 additions & 0 deletions reference/python/docs/langsmith/evaluation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Evaluation

::: langsmith.evaluation
3 changes: 3 additions & 0 deletions reference/python/docs/langsmith/expect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Expect API

::: langsmith._expect
38 changes: 38 additions & 0 deletions reference/python/docs/langsmith/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
title: LangSmith
---

# Reference

Welcome to the LangSmith Python SDK reference docs! These pages detail the core interfaces you will use when building with LangSmith.

## Quick Reference

| Class/function | Description |
| :- | :- |
| [Client](client.md) | Synchronous client for interacting with the LangSmith API. |
| [AsyncClient](async_client.md) | Asynchronous client for interacting with the LangSmith API. |
| [traceable](run_helpers.md) | Wrapper/decorator for tracing any function. |
| [evaluate](evaluation.md) | Evaluate a function or model on a dataset. |
| [RunTree](run_trees.md) | Tree structure representing a run and its nested runs. |
| [wrap_openai](wrappers.md) | Wrapper for OpenAI client, adds LangSmith tracing. |
| [wrap_anthropic](wrappers.md) | Wrapper for Anthropic client, adds LangSmith tracing. |

## Core APIs

The primary interfaces for the LangSmith SDK.

- [Client](client.md): Synchronous client for the LangSmith API.
- [AsyncClient](async_client.md): Asynchronous client for the LangSmith API.
- [Run Helpers](run_helpers.md): Functions like `traceable`, `trace`, and tracing context management.
- [Run Trees](run_trees.md): Tree structure for representing runs and nested runs.
- [Evaluation](evaluation.md): Tools for evaluating functions and models on datasets.

## Additional APIs

- [Schemas](schemas.md): Data schemas and type definitions.
- [Utilities](utils.md): Utility classes including error types and thread pool executors.
- [Wrappers](wrappers.md): Tracing wrappers for popular LLM providers.
- [Anonymizer](anonymizer.md): Tools for anonymizing sensitive data.
- [Testing](testing.md): Testing utilities and pytest integration.
- [Expect API](expect.md): Assertions and expectations for testing.
Copy link

Copilot AI Oct 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The navigation entry lists 'Expect API' but references a private module langsmith._expect (with underscore prefix) in expect.md. Consider documenting whether this is intended to be a public API or if the module reference should point to a public interface.

Suggested change
- [Expect API](expect.md): Assertions and expectations for testing.
- [Expect API](expect.md): Assertions and expectations for testing. **(Internal/private API)**

Copilot uses AI. Check for mistakes.
7 changes: 7 additions & 0 deletions reference/python/docs/langsmith/middleware.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Middleware
---

# Middleware

::: langsmith.middleware
7 changes: 7 additions & 0 deletions reference/python/docs/langsmith/pytest_plugin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Pytest Plugin
---

# Pytest Plugin

::: langsmith.pytest_plugin
3 changes: 3 additions & 0 deletions reference/python/docs/langsmith/run_helpers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Run Helpers

::: langsmith.run_helpers
3 changes: 3 additions & 0 deletions reference/python/docs/langsmith/run_trees.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Run Trees

::: langsmith.run_trees
3 changes: 3 additions & 0 deletions reference/python/docs/langsmith/schemas.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Schemas

::: langsmith.schemas
3 changes: 3 additions & 0 deletions reference/python/docs/langsmith/testing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Testing

::: langsmith.testing
3 changes: 3 additions & 0 deletions reference/python/docs/langsmith/utils.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Utilities

::: langsmith.utils
3 changes: 3 additions & 0 deletions reference/python/docs/langsmith/wrappers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Wrappers

::: langsmith.wrappers
5 changes: 0 additions & 5 deletions reference/python/docs/platform/python_sdk.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
# LangGraph Platform SDK Reference

::: langgraph_sdk.client
handler: python

::: langgraph_sdk.schema
handler: python

::: langgraph_sdk.auth
handler: python

::: langgraph_sdk.auth.types
handler: python

::: langgraph_sdk.auth.exceptions
handler: python
18 changes: 18 additions & 0 deletions reference/python/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ plugins:
# Preload modules before collecting documentation to enable cross-references
- langchain
- langchain_core
- langsmith

# Generate objects.inv file for this site to enable cross-referencing from other sites
# (e.g. what the python langchain.com site does above)
Expand Down Expand Up @@ -330,6 +331,23 @@ nav:
- Supervisor: langgraph/supervisor.md
- Swarm: langgraph/swarm.md
- MCP Adapters: langgraph/mcp.md
- LangSmith:
- langsmith/index.md
- Core APIs:
- Client: langsmith/client.md
- AsyncClient: langsmith/async_client.md
- Run Helpers: langsmith/run_helpers.md
- Run Trees: langsmith/run_trees.md
- Evaluation: langsmith/evaluation.md
- Additional APIs:
- Schemas: langsmith/schemas.md
- Utilities: langsmith/utils.md
- Wrappers: langsmith/wrappers.md
- Anonymizer: langsmith/anonymizer.md
- Testing: langsmith/testing.md
- Expect API: langsmith/expect.md
- Middleware: langsmith/middleware.md
- Pytest Plugin: langsmith/pytest_plugin.md
- Integrations:
- LangChain integrations: integrations/index.md
- All packages:
Expand Down
4 changes: 4 additions & 0 deletions reference/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ dependencies = [
#"langgraph-supervisor",
#"langgraph-swarm",
#"langgraph-checkpoint-aws",
"langsmith",
]


Expand Down Expand Up @@ -180,3 +181,6 @@ langgraph-supervisor = { git = "https://github.com/langchain-ai/langgraph-superv
langgraph-swarm = { git = "https://github.com/langchain-ai/langgraph-swarm-py" }
langgraph-checkpoint-aws = { git = "https://github.com/langchain-ai/langchain-aws.git", subdirectory = "libs/langgraph-checkpoint-aws" }

## LangSmith SDK
langsmith = { git = "https://github.com/langchain-ai/langsmith-sdk.git", subdirectory = "python" }

2 changes: 2 additions & 0 deletions reference/python/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.