langsmith 0.0.1-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/README.md +262 -0
  2. package/client.cjs +1 -0
  3. package/client.d.ts +1 -0
  4. package/client.js +1 -0
  5. package/dist/cli/docker-compose.ngrok.yaml +17 -0
  6. package/dist/cli/docker-compose.yaml +43 -0
  7. package/dist/cli/main.cjs +278 -0
  8. package/dist/cli/main.d.ts +1 -0
  9. package/dist/cli/main.js +252 -0
  10. package/dist/cli/main.ts +292 -0
  11. package/dist/client.cjs +588 -0
  12. package/dist/client.d.ts +130 -0
  13. package/dist/client.js +561 -0
  14. package/dist/evaluation/evaluator.cjs +2 -0
  15. package/dist/evaluation/evaluator.d.ts +12 -0
  16. package/dist/evaluation/evaluator.js +1 -0
  17. package/dist/evaluation/index.cjs +5 -0
  18. package/dist/evaluation/index.d.ts +2 -0
  19. package/dist/evaluation/index.js +1 -0
  20. package/dist/evaluation/string_evaluator.cjs +66 -0
  21. package/dist/evaluation/string_evaluator.d.ts +30 -0
  22. package/dist/evaluation/string_evaluator.js +62 -0
  23. package/dist/index.cjs +7 -0
  24. package/dist/index.d.ts +3 -0
  25. package/dist/index.js +2 -0
  26. package/dist/run_trees.cjs +232 -0
  27. package/dist/run_trees.d.ts +47 -0
  28. package/dist/run_trees.js +205 -0
  29. package/dist/schemas.cjs +2 -0
  30. package/dist/schemas.d.ts +117 -0
  31. package/dist/schemas.js +1 -0
  32. package/dist/utils/async_caller.cjs +111 -0
  33. package/dist/utils/async_caller.d.ts +37 -0
  34. package/dist/utils/async_caller.js +104 -0
  35. package/dist/utils/env.cjs +80 -0
  36. package/dist/utils/env.d.ts +22 -0
  37. package/dist/utils/env.js +68 -0
  38. package/evaluation.cjs +1 -0
  39. package/evaluation.d.ts +1 -0
  40. package/evaluation.js +1 -0
  41. package/index.cjs +1 -0
  42. package/index.d.ts +1 -0
  43. package/index.js +1 -0
  44. package/package.json +121 -0
  45. package/run_trees.cjs +1 -0
  46. package/run_trees.d.ts +1 -0
  47. package/run_trees.js +1 -0
  48. package/schemas.cjs +1 -0
  49. package/schemas.d.ts +1 -0
  50. package/schemas.js +1 -0
package/package.json ADDED
@@ -0,0 +1,121 @@
1
+ {
2
+ "name": "langsmith",
3
+ "version": "0.0.1-0",
4
+ "description": "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform.",
5
+ "files": [
6
+ "dist/",
7
+ "client.cjs",
8
+ "client.js",
9
+ "client.d.ts",
10
+ "run_trees.cjs",
11
+ "run_trees.js",
12
+ "run_trees.d.ts",
13
+ "evaluation.cjs",
14
+ "evaluation.js",
15
+ "evaluation.d.ts",
16
+ "schemas.cjs",
17
+ "schemas.js",
18
+ "schemas.d.ts",
19
+ "index.cjs",
20
+ "index.js",
21
+ "index.d.ts"
22
+ ],
23
+ "type": "module",
24
+ "main": "./dist/index.js",
25
+ "bin": {
26
+ "langchain": "./dist/cli/main.cjs"
27
+ },
28
+ "types": "./dist/index.d.ts",
29
+ "scripts": {
30
+ "build": "yarn clean && yarn build:esm && yarn build:cjs && node scripts/create-entrypoints.js && node scripts/create-cli.js",
31
+ "clean": "rm -rf dist/ && node scripts/create-entrypoints.js clean",
32
+ "build:esm": "tsc --outDir dist/ && rm -rf dist/tests dist/**/tests",
33
+ "build:cjs": "tsc --outDir dist-cjs/ -p tsconfig.cjs.json && node scripts/move-cjs-to-dist.js && rm -r dist-cjs",
34
+ "test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --passWithNoTests --testPathIgnorePatterns='\\.int\\.test.[tj]s' --testTimeout 30000",
35
+ "test:integration": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000",
36
+ "test:single": "NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000",
37
+ "lint": "eslint 'src/**/*.{ts,tsx}' --quiet --fix",
38
+ "format": "prettier --write 'src/**/*.{ts,tsx}'",
39
+ "format:check": "prettier --check 'src/**/*.{ts,tsx}'",
40
+ "precommit": "lint-staged",
41
+ "prepublish": "yarn run build"
42
+ },
43
+ "repository": {
44
+ "type": "git",
45
+ "url": "git+https://github.com/langchain-ai/langchainplus-sdk.git"
46
+ },
47
+ "keywords": [
48
+ "LLM",
49
+ "Tracing",
50
+ "Evaluation",
51
+ "LangChain"
52
+ ],
53
+ "author": "LangChain",
54
+ "license": "MIT",
55
+ "bugs": {
56
+ "url": "https://github.com/langchain-ai/langchainplus-sdk/issues"
57
+ },
58
+ "homepage": "https://github.com/langchain-ai/langchainplus-sdk#readme",
59
+ "devDependencies": {
60
+ "@babel/preset-env": "^7.22.4",
61
+ "@jest/globals": "^29.5.0",
62
+ "@tsconfig/recommended": "^1.0.2",
63
+ "@types/jest": "^29.5.1",
64
+ "@typescript-eslint/eslint-plugin": "^5.59.8",
65
+ "@typescript-eslint/parser": "^5.59.8",
66
+ "babel-jest": "^29.5.0",
67
+ "cross-env": "^7.0.3",
68
+ "dotenv": "^16.1.3",
69
+ "eslint": "^8.41.0",
70
+ "eslint-config-prettier": "^8.8.0",
71
+ "eslint-plugin-import": "^2.27.5",
72
+ "eslint-plugin-no-instanceof": "^1.0.1",
73
+ "eslint-plugin-prettier": "^4.2.1",
74
+ "jest": "^29.5.0",
75
+ "prettier": "^2.8.8",
76
+ "ts-jest": "^29.1.0",
77
+ "ts-node": "^10.9.1",
78
+ "typescript": "^5.0.4"
79
+ },
80
+ "dependencies": {
81
+ "@types/uuid": "^9.0.1",
82
+ "commander": "^10.0.1",
83
+ "p-queue": "^6.6.2",
84
+ "p-retry": "4",
85
+ "uuid": "^9.0.0"
86
+ },
87
+ "lint-staged": {
88
+ "**/*.{ts,tsx}": [
89
+ "prettier --write --ignore-unknown",
90
+ "eslint --cache --fix"
91
+ ]
92
+ },
93
+ "exports": {
94
+ ".": {
95
+ "types": "./index.d.ts",
96
+ "import": "./index.js",
97
+ "require": "./index.cjs"
98
+ },
99
+ "./client": {
100
+ "types": "./client.d.ts",
101
+ "import": "./client.js",
102
+ "require": "./client.cjs"
103
+ },
104
+ "./run_trees": {
105
+ "types": "./run_trees.d.ts",
106
+ "import": "./run_trees.js",
107
+ "require": "./run_trees.cjs"
108
+ },
109
+ "./evaluation": {
110
+ "types": "./evaluation.d.ts",
111
+ "import": "./evaluation.js",
112
+ "require": "./evaluation.cjs"
113
+ },
114
+ "./schemas": {
115
+ "types": "./schemas.d.ts",
116
+ "import": "./schemas.js",
117
+ "require": "./schemas.cjs"
118
+ },
119
+ "./package.json": "./package.json"
120
+ }
121
+ }
package/run_trees.cjs ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('./dist/run_trees.cjs');
package/run_trees.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './dist/run_trees.js'
package/run_trees.js ADDED
@@ -0,0 +1 @@
1
+ export * from './dist/run_trees.js'
package/schemas.cjs ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('./dist/schemas.cjs');
package/schemas.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './dist/schemas.js'
package/schemas.js ADDED
@@ -0,0 +1 @@
1
+ export * from './dist/schemas.js'