From b9a64e4ac5d5df67928807db2a0807244bb6ff09 Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Sun, 4 Aug 2024 05:41:42 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- readme.md | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/readme.md b/readme.md index 9abb2be..db9920b 100644 --- a/readme.md +++ b/readme.md @@ -127,11 +127,6 @@ npm install @agentic/stdlib @agentic/core zod This package is [ESM only](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c) and requires `Node.js >= 18` or an equivalent environment (bun, deno, CF workers, etc). -> [!NOTE] -> All heavy third-party imports are isolated as _optional peer dependencies_ to keep the main `@agentic/stdlib` package as lightweight as possible. - -Depending on the AI SDK and tool you want to use, you'll also need to install the required peer dependencies. - ### AI SDKs Each AI SDK adapter is available from it's own package and needs to be installed in addition to the packages above. @@ -142,7 +137,7 @@ Each AI SDK adapter is available from it's own package and needs to be installed ```sh -npm install @agentic/ai-sdk +npm install @agentic/ai-sdk ai ``` ```ts @@ -157,7 +152,7 @@ import { createAISDKTools } from '@agentic/ai-sdk' ```sh -npm install @agentic/langchain +npm install @agentic/langchain @langchain/core langchain ``` ```ts @@ -172,7 +167,7 @@ import { createLangChainTools } from '@agentic/langchain' ```sh -npm install @agentic/llamaindex +npm install @agentic/llamaindex llamaindex ``` ```ts @@ -187,7 +182,7 @@ import { createLlamaIndexTools } from '@agentic/llamaindex' ```sh -npm install @agentic/genkit +npm install @agentic/genkit @genkit-ai/ai @genkit-ai/core ``` ```ts @@ -202,7 +197,7 @@ import { createGenkitTools } from '@agentic/genkit' ```sh -npm install @agentic/dexter +npm install @agentic/dexter @dexaai/dexter ``` ```ts @@ -279,7 +274,7 @@ const messages: OpenAI.ChatCompletionMessageParam[] = [ -See the [examples](./examples) directory for examples of how to use each of these adapters. +See the [examples](./examples) directory for working examples of how to use each of these adapters. ### Optimized Imports @@ -306,7 +301,7 @@ import { e2b } from '@agentic/e2b' ``` > [!NOTE] -> There is no functional difference between using `@agentic/stdlib` versus using the individual packages directly. The only difference is if you want to optimize your install size (when running on serverless functions, for instance), in which case installing and using the individual packages directly will be more optimal. The default examples use `@agentic/stdlib` because it provides a simpler DX. +> There is no functional difference between using `@agentic/stdlib` versus using the individual packages directly. The only difference is if you want to optimize your install size (when running on serverless functions, for instance), in which case installing and using the individual packages directly will be more efficient. The default examples use `@agentic/stdlib` because it provides a simpler DX. ## Services