mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-12 12:59:07 +00:00
core,langchain,community[patch]: allow langsmith 0.2 (#28598)
This commit is contained in:
@@ -6,6 +6,7 @@ from contextvars import ContextVar
|
||||
from typing import (
|
||||
TYPE_CHECKING,
|
||||
Any,
|
||||
Literal,
|
||||
Optional,
|
||||
Union,
|
||||
cast,
|
||||
@@ -141,7 +142,7 @@ def _get_trace_callbacks(
|
||||
return cb
|
||||
|
||||
|
||||
def _tracing_v2_is_enabled() -> bool:
|
||||
def _tracing_v2_is_enabled() -> Union[bool, Literal["local"]]:
|
||||
if tracing_v2_callback_var.get() is not None:
|
||||
return True
|
||||
return ls_utils.tracing_is_enabled()
|
||||
|
Reference in New Issue
Block a user