From a7730d5b1ad2b993fc992e7392e5b2b87aeb4f75 Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Wed, 28 Jun 2023 23:37:41 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=95=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- legacy/packages/core/test/_utils.ts | 9 ++++++++ legacy/readme.md | 36 ----------------------------- 2 files changed, 9 insertions(+), 36 deletions(-) diff --git a/legacy/packages/core/test/_utils.ts b/legacy/packages/core/test/_utils.ts index de10a2b9..dd9ad507 100644 --- a/legacy/packages/core/test/_utils.ts +++ b/legacy/packages/core/test/_utils.ts @@ -149,6 +149,15 @@ export function createTestKyInstance( } const responseBody = await response.json() + const resopnseBodyAsBuffer = Buffer.from( + JSON.stringify(responseBody), + 'utf8' + ) + + if (resopnseBodyAsBuffer.byteLength >= 1_000_000) { + // ignore response bodies which are too large + return + } // console.log({ cacheKey, responseBody }) await keyv.set(cacheKey, responseBody) diff --git a/legacy/readme.md b/legacy/readme.md index 4c577716..99406efa 100644 --- a/legacy/readme.md +++ b/legacy/readme.md @@ -15,7 +15,6 @@ - [Development](#development) - [Environment](#environment) - [Local Testing](#local-testing) - - [Scratch](#scratch) - [License](#license) ## Intro @@ -56,41 +55,6 @@ Ensure you have `REDIS_URL_TEST` set to a valid redis connection URL. pnpm test ``` -Agentic uses [ava][ava] as its test runner. To just execute unit tests, run: - -```bash -pnpm test:unit -``` - -To run a specific test, use the `--match` flag like so: - -```bash -pnpm test:unit --match='name of the test' -``` - -### Scratch - -- `@agentic/core` - - Task, Agentic, logging, caching, types, constants -- `@agentic/human-feedback` -- `@agentic/human-feedback-cli` -- `@agentic/human-feedback-sms` -- `@agentic/human-feedback-slack` -- `@agentic/experimenation` -- `@agentic/tools` -- `@agentic/tools-serpapi` -- `@agentic/tools-metaphor` -- `@agentic/tools-browser` -- `@agentic/tools-multion` -- `@agentic/llms` -- `@agentic/llms-openai` -- `@agentic/llms-anthropic` -- `@agentic/llms-huggingface` -- `@agentic/agents` -- `@agentic/cli` - ## License MIT © [Travis Fischer](https://transitivebullsh.it) - -[ava]: https://github.com/avajs/ava