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
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
function
get_cached_client
function
configure
function
validate_extracted_usage_metadata

Classes

class
Client
class
ApiKeyAuth
class
ServiceAuth
class
AuthHeaders
class
WriteReplica
class
RunTree
class
ReplicaAuth

Type Aliases

Modules

View source on GitHub
typeAlias
ID_TYPE
module
ls_schemas
module
utils

Generate a UUID v7 from a datetime.

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.

Validate that the dict only contains allowed keys.

Client for interacting with the LangSmith API.

API key authentication for write replicas.

Service-to-service JWT authentication for write replicas.

Custom authentication headers for write replicas.

Configuration for a write replica endpoint.

Run Schema with back-references for posting runs.

Schemas for the LangSmith API.

Generic utility functions.