Skip to content

Commit

Permalink
Always trace evaluators (#1014)
Browse files Browse the repository at this point in the history
  • Loading branch information
hinthornw authored Sep 18, 2024
1 parent 1747652 commit afbf1ae
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "langsmith",
"version": "0.1.57",
"version": "0.1.58",
"description": "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform.",
"packageManager": "[email protected]",
"files": [
Expand Down
1 change: 1 addition & 0 deletions js/src/evaluation/_runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,7 @@ export class _ExperimentManager {
: new Date(example.created_at).toISOString(),
},
client: fields.client,
tracingEnabled: true,
};
const evaluatorResponse = await evaluator.evaluateRun(
run,
Expand Down
2 changes: 1 addition & 1 deletion js/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ export { RunTree, type RunTreeConfig } from "./run_trees.js";
export { overrideFetchImplementation } from "./singletons/fetch.js";

// Update using yarn bump-version
export const __version__ = "0.1.57";
export const __version__ = "0.1.58";
4 changes: 2 additions & 2 deletions js/src/tests/run_trees.int.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ test.concurrent(
"Test post and patch run",
async () => {
const projectName = `__test_run_tree_js ${uuid.v4()}`;
const langchainClient = new Client({ timeout_ms: 30000 });
const langchainClient = new Client({ timeout_ms: 30_000 });
const parentRunConfig: RunTreeConfig = {
name: "parent_run",
run_type: "chain",
Expand All @@ -33,7 +33,7 @@ test.concurrent(
);
await parent_run.postRun();

const child_llm_run = await parent_run.createChild({
const child_llm_run = parent_run.createChild({
name: "child_run",
run_type: "llm",
inputs: { text: "hello world" },
Expand Down

0 comments on commit afbf1ae

Please sign in to comment.