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

Setup basic eval for transfers #309

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
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
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@ ALLORA_API_KEY=
ALLORA_API_URL=
ALLORA_NETWORK= testnet | mainnet
ELFA_AI_API_KEY=

LANGSMITH_TRACING=true
LANGSMITH_ENDPOINT=https://api.smith.langchain.com
LANGSMITH_API_KEY=
LANGSMITH_PROJECT=
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"plugin:@typescript-eslint/recommended",
"prettier"
],
"ignorePatterns": ["examples/**/*", "src/utils/keypair.ts", "test/**/*", "dist/**/*"],
"ignorePatterns": ["examples/**/*", "src/utils/keypair.ts", "test/**/*", "dist/**/*", "src/langchain/evals/**/*"],
"rules": {
"prettier/prettier": "error",
"no-constant-condition": "off",
Expand Down
28 changes: 28 additions & 0 deletions ls.vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import path from "path";
import { defineConfig } from "vitest/config";
import tsconfigPaths from "vite-tsconfig-paths";
import { nodePolyfills } from "vite-plugin-node-polyfills";

export default defineConfig({
test: {
include: ["**/*.eval.?(c|m)[jt]s"],
reporters: ["langsmith/vitest/reporter"],
setupFiles: ["dotenv/config"],
},
plugins: [
tsconfigPaths(),
nodePolyfills({
include: ["crypto", "stream", "util"],
}),
],
// ... existing config ...
resolve: {
alias: {
"@cks-systems/manifest-sdk": path.resolve(
__dirname,
"node_modules/@cks-systems/manifest-sdk/dist/cjs/index.js",
),
},
mainFields: ["browser", "module", "main"],
},
});
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"tool-summary": "tsx src/utils/analyzeTools.ts",
"tool-summary:langchain": "tsx src/utils/analyzeTools.ts --langchain",
"check-tool-names:langchain": "tsx scripts/check-langchain-tool-duplicates.ts"
"check-tool-names:langchain": "tsx scripts/check-langchain-tool-duplicates.ts",
"eval": "vitest run --config ls.vitest.config.ts"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -90,6 +91,7 @@
"flash-sdk": "^2.24.3",
"form-data": "^4.0.1",
"langchain": "^0.3.8",
"langsmith": "^0.3.7",
"openai": "^4.77.0",
"tiktoken": "^1.0.18",
"typedoc": "^0.27.6",
Expand All @@ -108,7 +110,10 @@
"lint-staged": "^15.3.0",
"prettier": "^3.4.2",
"tsx": "^4.19.2",
"typescript": "^5.7.2"
"typescript": "^5.7.2",
"vite-plugin-node-polyfills": "^0.23.0",
"vite-tsconfig-paths": "^5.1.4",
"vitest": "^3.0.5"
},
"packageManager": "[email protected]"
}
Loading
Loading