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 Helpers

Run Helpers

Classes

Class

LangSmithExtra

Any additional info to be injected into the run dynamically.

Class

SupportsLangsmithExtra

Implementations of this Protocol accept an optional langsmith_extra parameter.

Class

trace

Manage a LangSmith run in context.

Functions

Function

get_current_run_tree

Get the current run tree.

Function

set_tracing_parent

Set a RunTree as the active tracing parent within this block.

Function

set_run_metadata

Update metadata on the current run tree.

Function

get_tracing_context

Get the current tracing context.

Function

tracing_context

Set the tracing context for a block of code.

Function

is_traceable_function

Check if a function is @traceable decorated.

Function

ensure_traceable

Ensure that a function is traceable.

Function

is_async

Inspect function or wrapped function to see if it is async.

Function

traceable

Trace a function with langsmith.

Function

as_runnable

Convert a function wrapped by the LangSmith @traceable decorator to a Runnable.

Constants

Attribute

LOGGER

Attribute

get_run_tree_context

Attribute

R

Attribute

P

Attribute

T