langsmith
Version:
Client library to connect to the LangSmith LLM Tracing and Evaluation Platform.
9 lines (8 loc) • 338 B
JavaScript
import { getLangSmithEnvironmentVariable } from "./utils/env.js";
export const isTracingEnabled = (tracingEnabled) => {
if (tracingEnabled !== undefined) {
return tracingEnabled;
}
const envVars = ["TRACING_V2", "TRACING"];
return !!envVars.find((envVar) => getLangSmithEnvironmentVariable(envVar) === "true");
};