Skip to content

Commit

Permalink
Rename get_current_run_tree (#454)
Browse files Browse the repository at this point in the history
  • Loading branch information
hinthornw authored Feb 20, 2024
1 parent cd36bca commit c1a81fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion python/langsmith/run_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit c1a81fc

Please sign in to comment.