Skip to content
masterclass Buddy

LangSmith · Class

AsyncClient

AsyncClient is the asynchronous LangSmith API client. Configure its endpoint, credentials, timeouts, retries, headers, workspace, cache, and profile settings when you create it.

Last updated

Since
v0.5

Syntax

AsyncClient(self, api_url: Optional[str] = None, api_key: Optional[str] = None, timeout_ms: Optional[Union[int, tuple[Optional[int], Optional[int], Optional[int], Optional[int]]]] = None, retry_config: Optional[Mapping[str, Any]] = None, web_url: Optional[str] = None, headers: Optional[dict[str, str]] = None, workspace_id: Optional[str] = None, disable_prompt_cache: bool = False, cache: Optional[Union[bool, AsyncPromptCache]] = None, *, profile: Optional[str] = None, profile_config_path: Optional[str] = None, prefer_profile_auth: bool = False)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • AsyncPromptCache
  • Client
  • AsyncAPIClient
  • runs.retrieve
  • runs.query
  • runs.share.create

Source: AsyncClient | langsmith | LangChain Reference. Checked 2026-11-03.