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

Chat LangChain

What can I help with?

Enter to sendยทShift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
Pythonlangsmithasync_client
Moduleโ—Since v0.16

async_client

The Async LangSmith Client.

Attributes

attribute
async_prompt_cache_singleton
attribute
logger

Classes

class
AsyncAgentsResource
class
AsyncRunsResource
class
AgentAddress
class
AsyncPromptCache
class
AsyncAnnotationQueuesResource
class
AsyncDatasetsResource
class
AsyncEvaluatorsResource
class
AsyncPublicResource
class
AsyncSandboxesResource
class
AsyncThreadsResource
class
AsyncTracesResource
class
AsyncClient

Type Aliases

typeAlias
ID_TYPE

Modules

View source on GitHub
module
langsmith
module
ls_client
module
ls_schemas
module
ls_utils

An agent address. Use agent_address to validate and construct one.

The id is a DNS label of 1 to 63 lowercase ASCII letters, digits or hyphens, starting with a letter and ending with a letter or digit. The environment is local, development, staging or production.

Thread-safe LRU cache with asyncio task refresh.

For use with the asynchronous AsyncClient.

Features:

  • In-memory LRU cache with configurable max size
  • Asyncio task for refreshing stale entries
  • Stale-while-revalidate: returns stale data while refresh happens
  • Thread-safe for concurrent access

Async Client for interacting with the LangSmith API.

LangSmith Client.

Client for interacting with the LangSmith API.

Use the client to customize API keys / workspace connections, SSL certs, etc. for tracing.

Also used to create, read, update, and delete LangSmith resources such as runs (~trace spans), datasets, examples (~records), feedback (~metrics), projects (tracer sessions/groups), etc.

For detailed API documentation, visit the LangSmith docs.

Schemas for the LangSmith API.

Generic utility functions.