langsmith
Advanced tools
Comparing version 0.1.65-rc.0 to 0.1.65-rc.1
import { BaseRun, KVMap, RunCreate } from "./schemas.js"; | ||
import { Client } from "./client.js"; | ||
export declare function convertToDottedOrderFormat(epoch: number, runId: string, executionOrder?: number): string; | ||
export declare const _LC_CONTEXT_VARIABLES_KEY: unique symbol; | ||
export interface RunTreeConfig { | ||
@@ -5,0 +6,0 @@ name: string; |
@@ -15,2 +15,3 @@ import * as uuid from "uuid"; | ||
} | ||
export const _LC_CONTEXT_VARIABLES_KEY = Symbol.for("lc:context_variables"); | ||
/** | ||
@@ -266,6 +267,6 @@ * Baggage header information | ||
}); | ||
const CONTEXT_VARIABLES_KEY = Symbol.for("lc:context_variables"); | ||
if (CONTEXT_VARIABLES_KEY in this) { | ||
if (_LC_CONTEXT_VARIABLES_KEY in this) { | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
child[CONTEXT_VARIABLES_KEY] = this[CONTEXT_VARIABLES_KEY]; | ||
child[_LC_CONTEXT_VARIABLES_KEY] = | ||
this[_LC_CONTEXT_VARIABLES_KEY]; | ||
} | ||
@@ -272,0 +273,0 @@ const LC_CHILD = Symbol.for("lc:child_config"); |
import { AsyncLocalStorage } from "node:async_hooks"; | ||
import { RunTree, isRunTree, isRunnableConfigLike, } from "./run_trees.js"; | ||
import { RunTree, _LC_CONTEXT_VARIABLES_KEY, isRunTree, isRunnableConfigLike, } from "./run_trees.js"; | ||
import { isTracingEnabled } from "./env.js"; | ||
@@ -279,2 +279,8 @@ import { ROOT, AsyncLocalStorageProviderSingleton, } from "./singletons/traceable.js"; | ||
const currentRunTree = getTracingRunTree(new RunTree(ensuredConfig), processedArgs, config?.getInvocationParams); | ||
if (prevRunFromStore !== undefined && | ||
_LC_CONTEXT_VARIABLES_KEY in prevRunFromStore) { | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
currentRunTree[_LC_CONTEXT_VARIABLES_KEY] = | ||
prevRunFromStore[_LC_CONTEXT_VARIABLES_KEY]; | ||
} | ||
return [currentRunTree, processedArgs]; | ||
@@ -281,0 +287,0 @@ })(); |
{ | ||
"name": "langsmith", | ||
"version": "0.1.65-rc.0", | ||
"version": "0.1.65-rc.1", | ||
"description": "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform.", | ||
@@ -5,0 +5,0 @@ "packageManager": "yarn@1.22.19", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
674613
17814