LangSmith Python SDK#

Version: 0.1.147

Welcome to the API reference for the LangSmith Python SDK.

For user guides see https://docs.smith.langchain.com.

Here are quick links to some of the key classes and functions:

Class/function

Description

Client

Synchronous client for interacting with the LangSmith API.

AsyncClient

Asynchronous client for interacting with the LangSmith API.

traceable

Wrapper/decorator for tracing any function.

wrap_openai

Wrapper for OpenAI client, adds LangSmith tracing to all OpenAI calls.

evaluate

Evaluate an application on a dataset.

aevaluate

Asynchronously evaluate an application on a dataset.

unit

Create a LangSmith unit test.