LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Client
  • AsyncClient
  • Run Helpers
  • Run Trees
  • Evaluation
  • Schemas
  • Utilities
  • Wrappers
  • Anonymizer
  • Testing
  • Expect API
  • Middleware
  • Pytest Plugin
  • Deployment SDK
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
PythonlangsmithUtilities

Utilities

Utility classes and functions including error types, environment helpers, and thread pool executors.

Classes

Class

LangSmithError

An error occurred while communicating with the LangSmith API.

Class

LangSmithAPIError

Internal server error while communicating with LangSmith.

Class

LangSmithUserError

User error caused an exception when communicating with LangSmith.

Class

LangSmithAuthError

Couldn't authenticate with the LangSmith API.

Class

LangSmithNotFoundError

Couldn't find the requested resource.

Class

LangSmithConflictError

The resource already exists.

Class

LangSmithConnectionError

Couldn't connect to the LangSmith API.

Class

LangSmithRateLimitError

You have exceeded the rate limit for the LangSmith API.

Class

LangSmithRequestTimeout

Client took too long to send request body.

Class

ContextThreadPoolExecutor

ThreadPoolExecutor that copies the context to the child thread.

Functions

Function

tracing_is_enabled

Return True if tracing is enabled.

Function

get_api_url

Get the LangSmith API URL from the environment or the given value.

Function

get_api_key

Get the API key from the environment or the given value.

Function

get_tracer_project

Get the project name for a LangSmith tracer.