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
  • RemoteGraph
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDKRemoteGraph
Language
Theme
PythonlangsmithClient

Client

Classes

Class

ZoneInfo

Introduced in python 3.9.

Class

TracerProvider

Used for optional OTEL tracing.

Class

Client

Client for interacting with the LangSmith API.

Functions

Function

close_session

Close the session.

Function

convert_prompt_to_openai_format

Convert a prompt to OpenAI format.

Function

convert_prompt_to_anthropic_format

Convert a prompt to Anthropic format.

Function

dump_model

Dump model depending on pydantic version.

Function

prep_obj_for_push

Format the object so its Prompt Hub compatible.

Types

Type

ID_TYPE

Constants

Attribute

logger

Attribute

X_API_KEY

Attribute

EMPTY_SEQ

Attribute

URLLIB3_SUPPORTS_BLOCKSIZE

Attribute

DEFAULT_INSTRUCTIONS

Attribute

RUN_TYPE_T