项目文件夹

文件
T
Alex Rudenko 257b9943e9 chore: add basic eval (#766)
This PR adds a tool based on the node test runner that runs a loop to
see what tools a model chooses given a prompt. The expectations are
encoding for each prompt. Run `npm run eval` to get results. Currently,
only Gemini and needs and API key.
2026-01-14 14:15:21 +00:00

702 B

Instructions

  • Use only scripts from package.json to run commands.
  • Use npm run build to run tsc and test build.
  • Use npm run test to build and run tests, run all tests to verify correctness.
  • Use npm run test path-to-test.ts to build and run a single test file, for example, npm run test tests/McpContext.test.ts.
  • Use npm run format to fix formatting and get linting errors.

Rules for TypeScript

  • Do not use any type.
  • Do not use as keyword for type casting.
  • Do not use ! operator for type assertion.
  • Do not use // @ts-ignore comments.
  • Do not use // @ts-nocheck comments.
  • Do not use // @ts-expect-error comments.
  • Prefer for..of instead of forEach.