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
Pythonlangsmithrun_trees
Module●Since v0.0

run_trees

Schemas for the LangSmith API.

Attributes

attribute
RUN_TYPE_T: Literal['tool', 'chain', 'llm', 'retriever', 'embedding', 'prompt', 'parser']
attribute
logger
attribute
LANGSMITH_PREFIX: str
attribute
LANGSMITH_DOTTED_ORDER
attribute
LANGSMITH_DOTTED_ORDER_BYTES
attribute
LANGSMITH_METADATA
attribute
LANGSMITH_TAGS
attribute
LANGSMITH_PROJECT
attribute
LANGSMITH_REPLICAS
attribute
OVERRIDE_OUTPUTS
attribute
NOT_PROVIDED
attribute
TIMESTAMP_LENGTH: int

Functions

function
uuid7_from_datetime

Generate a UUID v7 from a datetime.

function
get_cached_client
function
configure

Configure global LangSmith tracing context.

This function allows you to set global configuration options for LangSmith tracing that will be applied to all subsequent traced operations. It modifies context variables that control tracing behavior across your application.

Do this once at startup to configure the global settings in code.

If, instead, you wish to only configure tracing for a single invocation, use the tracing_context context manager instead.

function
validate_extracted_usage_metadata

Validate that the dict only contains allowed keys.

Classes

class
Client

Client for interacting with the LangSmith API.

class
ApiKeyAuth

API key authentication for write replicas.

class
ServiceAuth

Service-to-service JWT authentication for write replicas.

class
AuthHeaders

Custom authentication headers for write replicas.

class
WriteReplica

Configuration for a write replica endpoint.

class
RunTree

Run Schema with back-references for posting runs.

class
ReplicaAuth

Type Aliases

typeAlias
ID_TYPE

Modules

module
ls_schemas

Schemas for the LangSmith API.

module
utils

Generic utility functions.

View source on GitHub