Skip to content
masterclass Buddy

LangSmith · Function

get_current_run_tree

Get the active LangSmith run inside a traced function. Use it to read IDs, tags, and other run data.

Last updated

Since
0.5

Syntax

get_current_run_tree() -> Optional[run_trees.RunTree]

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

Subscribe
  • traceable
  • getCurrentRunTree
  • RunTree
  • run_helpers

Source: Access the current run (span) within a traced function. Checked 2026-11-03.