diff --git a/python/langsmith/run_helpers.py b/python/langsmith/run_helpers.py index 3f4f3057d..35ce222c7 100644 --- a/python/langsmith/run_helpers.py +++ b/python/langsmith/run_helpers.py @@ -47,11 +47,14 @@ _METADATA = contextvars.ContextVar[Optional[Dict[str, Any]]]("_METADATA", default=None) -def get_run_tree_context() -> Optional[run_trees.RunTree]: +def get_current_run_tree() -> Optional[run_trees.RunTree]: """Get the current run tree context.""" return _PARENT_RUN_TREE.get() +get_run_tree_context = get_current_run_tree + + def _is_traceable_function(func: Callable) -> bool: return getattr(func, "__langsmith_traceable__", False) diff --git a/python/pyproject.toml b/python/pyproject.toml index 5467a191c..ec0414b2f 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "langsmith" -version = "0.1.2" +version = "0.1.3" description = "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform." authors = ["LangChain "] license = "MIT"