Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Branch version with no langchain peer deps #1006

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions js/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,10 @@ Chinook_Sqlite.sql
/evaluation.js
/evaluation.d.ts
/evaluation.d.cts
/evaluation/langchain.cjs
/evaluation/langchain.js
/evaluation/langchain.d.ts
/evaluation/langchain.d.cts
/schemas.cjs
/schemas.js
/schemas.d.ts
/schemas.d.cts
/langchain.cjs
/langchain.js
/langchain.d.ts
/langchain.d.cts
/wrappers.cjs
/wrappers.js
/wrappers.d.ts
Expand Down
36 changes: 1 addition & 35 deletions js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "langsmith",
"version": "0.1.55",
"version": "0.1.56-rc.1",
"description": "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform.",
"packageManager": "yarn@1.22.19",
"files": [
Expand All @@ -21,18 +21,10 @@
"evaluation.js",
"evaluation.d.ts",
"evaluation.d.cts",
"evaluation/langchain.cjs",
"evaluation/langchain.js",
"evaluation/langchain.d.ts",
"evaluation/langchain.d.cts",
"schemas.cjs",
"schemas.js",
"schemas.d.ts",
"schemas.d.cts",
"langchain.cjs",
"langchain.js",
"langchain.d.ts",
"langchain.d.cts",
"wrappers.cjs",
"wrappers.js",
"wrappers.d.ts",
Expand Down Expand Up @@ -135,19 +127,11 @@
"zod": "^3.23.8"
},
"peerDependencies": {
"@langchain/core": "*",
"langchain": "*",
"openai": "*"
},
"peerDependenciesMeta": {
"openai": {
"optional": true
},
"langchain": {
"optional": true
},
"@langchain/core": {
"optional": true
}
},
"lint-staged": {
Expand Down Expand Up @@ -202,15 +186,6 @@
"import": "./evaluation.js",
"require": "./evaluation.cjs"
},
"./evaluation/langchain": {
"types": {
"import": "./evaluation/langchain.d.ts",
"require": "./evaluation/langchain.d.cts",
"default": "./evaluation/langchain.d.ts"
},
"import": "./evaluation/langchain.js",
"require": "./evaluation/langchain.cjs"
},
"./schemas": {
"types": {
"import": "./schemas.d.ts",
Expand All @@ -220,15 +195,6 @@
"import": "./schemas.js",
"require": "./schemas.cjs"
},
"./langchain": {
"types": {
"import": "./langchain.d.ts",
"require": "./langchain.d.cts",
"default": "./langchain.d.ts"
},
"import": "./langchain.js",
"require": "./langchain.cjs"
},
"./wrappers": {
"types": {
"import": "./wrappers.d.ts",
Expand Down
2 changes: 0 additions & 2 deletions js/scripts/create-entrypoints.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ const entrypoints = {
run_trees: "run_trees",
traceable: "traceable",
evaluation: "evaluation/index",
"evaluation/langchain": "evaluation/langchain",
schemas: "schemas",
langchain: "langchain",
wrappers: "wrappers/index",
anonymizer: "anonymizer/index",
"wrappers/openai": "wrappers/openai",
Expand Down
4 changes: 1 addition & 3 deletions js/src/evaluation/_runner.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Client, RunTree, RunTreeConfig } from "../index.js";
import { getLangchainCallbacks } from "../langchain.js";
import { BaseRun, Example, KVMap, Run, TracerSession } from "../schemas.js";
import { traceable } from "../traceable.js";
import { getDefaultRevisionId, getGitInfo } from "../utils/_git.js";
Expand Down Expand Up @@ -882,8 +881,7 @@ async function _forward(
const wrappedFn =
"invoke" in fn
? traceable(async (inputs) => {
const callbacks = await getLangchainCallbacks();
return fn.invoke(inputs, { callbacks });
return fn.invoke(inputs);
}, options)
: traceable(fn, options);

Expand Down
69 changes: 0 additions & 69 deletions js/src/evaluation/langchain.ts

This file was deleted.

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.55";
export const __version__ = "0.1.56-rc.1";
167 changes: 0 additions & 167 deletions js/src/langchain.ts

This file was deleted.

Loading
Loading