From ee1bf47e6250768748a99792b5c15b5282332bcc Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Sun, 4 Aug 2024 01:32:30 -0500 Subject: [PATCH] feat: WIP closer to completing monorepo transition --- examples/ai-sdk/package.json | 13 +- examples/dexter/{ => bin}/analyze.ts | 7 +- examples/dexter/{ => bin}/code-interpreter.ts | 4 +- .../dexter/{ => bin}/election-news-chain.ts | 9 +- examples/dexter/{ => bin}/election-news.ts | 5 +- examples/dexter/{ => bin}/extract-user.ts | 2 +- examples/dexter/{ => bin}/weather.ts | 4 +- examples/dexter/package.json | 26 + examples/dexter/tsconfig.json | 5 + examples/genkit/{ => bin}/weather.ts | 4 +- examples/genkit/package.json | 23 + examples/genkit/tsconfig.json | 5 + examples/langchain/{ => bin}/weather.ts | 4 +- examples/langchain/package.json | 22 + examples/langchain/tsconfig.json | 5 + examples/llamaindex/{ => bin}/weather.ts | 6 +- examples/llamaindex/package.json | 20 + examples/llamaindex/tsconfig.json | 5 + examples/openai/{ => bin}/weather.ts | 5 +- examples/openai/package.json | 19 + examples/openai/tsconfig.json | 5 + package.json | 1 + packages/search-and-crawl/package.json | 49 ++ packages/search-and-crawl/src/index.ts | 1 + .../search-and-crawl/src/search-and-crawl.ts | 15 +- packages/search-and-crawl/tsconfig.json | 5 + packages/search-and-crawl/tsup.config.ts | 1 + pnpm-lock.yaml | 596 +++++++++++++++++- pnpm-workspace.yaml | 3 +- 29 files changed, 810 insertions(+), 59 deletions(-) rename examples/dexter/{ => bin}/analyze.ts (78%) rename examples/dexter/{ => bin}/code-interpreter.ts (82%) rename examples/dexter/{ => bin}/election-news-chain.ts (84%) rename examples/dexter/{ => bin}/election-news.ts (82%) rename examples/dexter/{ => bin}/extract-user.ts (93%) rename examples/dexter/{ => bin}/weather.ts (83%) create mode 100644 examples/dexter/package.json create mode 100644 examples/dexter/tsconfig.json rename examples/genkit/{ => bin}/weather.ts (86%) create mode 100644 examples/genkit/package.json create mode 100644 examples/genkit/tsconfig.json rename examples/langchain/{ => bin}/weather.ts (89%) create mode 100644 examples/langchain/package.json create mode 100644 examples/langchain/tsconfig.json rename examples/llamaindex/{ => bin}/weather.ts (75%) create mode 100644 examples/llamaindex/package.json create mode 100644 examples/llamaindex/tsconfig.json rename examples/openai/{ => bin}/weather.ts (91%) create mode 100644 examples/openai/package.json create mode 100644 examples/openai/tsconfig.json create mode 100644 packages/search-and-crawl/package.json create mode 100644 packages/search-and-crawl/src/index.ts create mode 100644 packages/search-and-crawl/tsconfig.json create mode 100644 packages/search-and-crawl/tsup.config.ts diff --git a/examples/ai-sdk/package.json b/examples/ai-sdk/package.json index f75f40121..2ed451e29 100644 --- a/examples/ai-sdk/package.json +++ b/examples/ai-sdk/package.json @@ -1,18 +1,8 @@ { "name": "agentic-examples-ai-sdk", - "private": true, - "description": "Examples of how to use the Agentic AI SDK.", - "author": "Travis Fischer ", - "license": "MIT", - "repository": { - "type": "git", - "url": "git+https://github.com/transitive-bullshit/agentic.git" - }, "type": "module", + "private": true, "scripts": { - "preinstall": "npx only-allow pnpm", - "build": "tsc", - "clean": "del dist", "test": "run-s test:*", "test:lint": "eslint .", "test:typecheck": "tsc --noEmit" @@ -24,7 +14,6 @@ "@ai-sdk/openai": "^0.0.24", "@browserbasehq/sdk": "^1.4.2", "ai": "^3.1.30", - "dotenv": "^16.4.5", "openai": "^4.49.0", "zod": "^3.23.8" }, diff --git a/examples/dexter/analyze.ts b/examples/dexter/bin/analyze.ts similarity index 78% rename from examples/dexter/analyze.ts rename to examples/dexter/bin/analyze.ts index ec03b3bff..9e18ec96d 100644 --- a/examples/dexter/analyze.ts +++ b/examples/dexter/bin/analyze.ts @@ -1,13 +1,16 @@ #!/usr/bin/env node import 'dotenv/config' -import { DiffbotClient, SearchAndCrawl, SerpAPIClient } from '@agentic/stdlib' -import { createDexterFunctions } from '@agentic/stdlib/dexter' +import { createDexterFunctions } from '@agentic/dexter' +import { DiffbotClient } from '@agentic/diffbot' +import { SearchAndCrawl } from '@agentic/search-and-crawl' +import { SerpAPIClient } from '@agentic/serpapi' import { ChatModel, createAIRunner } from '@dexaai/dexter' async function main() { const serpapi = new SerpAPIClient() const diffbot = new DiffbotClient() + const searchAndCrawl = new SearchAndCrawl({ serpapi, diffbot }) const runner = createAIRunner({ diff --git a/examples/dexter/code-interpreter.ts b/examples/dexter/bin/code-interpreter.ts similarity index 82% rename from examples/dexter/code-interpreter.ts rename to examples/dexter/bin/code-interpreter.ts index ffd1e2545..79c0e182d 100644 --- a/examples/dexter/code-interpreter.ts +++ b/examples/dexter/bin/code-interpreter.ts @@ -1,8 +1,8 @@ #!/usr/bin/env node import 'dotenv/config' -import { createDexterFunctions } from '@agentic/stdlib/dexter' -import { e2b } from '@agentic/stdlib/e2b' +import { createDexterFunctions } from '@agentic/dexter' +import { e2b } from '@agentic/e2b' import { ChatModel, createAIRunner } from '@dexaai/dexter' async function main() { diff --git a/examples/dexter/election-news-chain.ts b/examples/dexter/bin/election-news-chain.ts similarity index 84% rename from examples/dexter/election-news-chain.ts rename to examples/dexter/bin/election-news-chain.ts index 96e0b5438..bcd467f36 100644 --- a/examples/dexter/election-news-chain.ts +++ b/examples/dexter/bin/election-news-chain.ts @@ -1,12 +1,9 @@ #!/usr/bin/env node import 'dotenv/config' -import { - createAIChain, - Msg, - PerigonClient, - SerperClient -} from '@agentic/stdlib' +import { createAIChain, Msg } from '@agentic/core' +import { PerigonClient } from '@agentic/perigon' +import { SerperClient } from '@agentic/serper' import { ChatModel } from '@dexaai/dexter' async function main() { diff --git a/examples/dexter/election-news.ts b/examples/dexter/bin/election-news.ts similarity index 82% rename from examples/dexter/election-news.ts rename to examples/dexter/bin/election-news.ts index 64ea15225..d37121efe 100644 --- a/examples/dexter/election-news.ts +++ b/examples/dexter/bin/election-news.ts @@ -1,8 +1,9 @@ #!/usr/bin/env node import 'dotenv/config' -import { PerigonClient, SerperClient } from '@agentic/stdlib' -import { createDexterFunctions } from '@agentic/stdlib/dexter' +import { createDexterFunctions } from '@agentic/dexter' +import { PerigonClient } from '@agentic/perigon' +import { SerperClient } from '@agentic/serper' import { ChatModel, createAIRunner } from '@dexaai/dexter' async function main() { diff --git a/examples/dexter/extract-user.ts b/examples/dexter/bin/extract-user.ts similarity index 93% rename from examples/dexter/extract-user.ts rename to examples/dexter/bin/extract-user.ts index 8729f046b..3f4beaee9 100644 --- a/examples/dexter/extract-user.ts +++ b/examples/dexter/bin/extract-user.ts @@ -1,7 +1,7 @@ #!/usr/bin/env node import 'dotenv/config' -import { extractObject, Msg } from '@agentic/stdlib' +import { extractObject, Msg } from '@agentic/core' import { ChatModel } from '@dexaai/dexter' import { z } from 'zod' diff --git a/examples/dexter/weather.ts b/examples/dexter/bin/weather.ts similarity index 83% rename from examples/dexter/weather.ts rename to examples/dexter/bin/weather.ts index 1b995af58..05309c95b 100644 --- a/examples/dexter/weather.ts +++ b/examples/dexter/bin/weather.ts @@ -1,8 +1,8 @@ #!/usr/bin/env node import 'dotenv/config' -import { WeatherClient } from '@agentic/stdlib' -import { createDexterFunctions } from '@agentic/stdlib/dexter' +import { createDexterFunctions } from '@agentic/dexter' +import { WeatherClient } from '@agentic/weather' import { ChatModel, createAIRunner } from '@dexaai/dexter' async function main() { diff --git a/examples/dexter/package.json b/examples/dexter/package.json new file mode 100644 index 000000000..1a31d5c9d --- /dev/null +++ b/examples/dexter/package.json @@ -0,0 +1,26 @@ +{ + "name": "agentic-examples-dexter", + "type": "module", + "private": true, + "scripts": { + "test": "run-s test:*", + "test:lint": "eslint .", + "test:typecheck": "tsc --noEmit" + }, + "dependencies": { + "@agentic/core": "workspace:*", + "@agentic/dexter": "workspace:*", + "@agentic/diffbot": "workspace:*", + "@agentic/e2b": "workspace:*", + "@agentic/perigon": "workspace:*", + "@agentic/search-and-crawl": "workspace:*", + "@agentic/serpapi": "workspace:*", + "@agentic/serper": "workspace:*", + "@agentic/weather": "workspace:*", + "@dexaai/dexter": "^2.1.0", + "zod": "^3.23.8" + }, + "devDependencies": { + "@agentic/tsconfig": "workspace:*" + } +} diff --git a/examples/dexter/tsconfig.json b/examples/dexter/tsconfig.json new file mode 100644 index 000000000..b99a3fc10 --- /dev/null +++ b/examples/dexter/tsconfig.json @@ -0,0 +1,5 @@ +{ + "extends": "@agentic/tsconfig/base.json", + "include": ["bin"], + "exclude": ["node_modules", "dist"] +} diff --git a/examples/genkit/weather.ts b/examples/genkit/bin/weather.ts similarity index 86% rename from examples/genkit/weather.ts rename to examples/genkit/bin/weather.ts index 859f55cb9..15d0d1b5a 100644 --- a/examples/genkit/weather.ts +++ b/examples/genkit/bin/weather.ts @@ -1,8 +1,8 @@ #!/usr/bin/env node import 'dotenv/config' -import { WeatherClient } from '@agentic/stdlib' -import { createGenkitTools } from '@agentic/stdlib/genkit' +import { createGenkitTools } from '@agentic/genkit' +import { WeatherClient } from '@agentic/weather' import { generate } from '@genkit-ai/ai' import { configureGenkit } from '@genkit-ai/core' import { gpt4o, openAI } from 'genkitx-openai' diff --git a/examples/genkit/package.json b/examples/genkit/package.json new file mode 100644 index 000000000..64848784f --- /dev/null +++ b/examples/genkit/package.json @@ -0,0 +1,23 @@ +{ + "name": "agentic-examples-genkit", + "type": "module", + "private": true, + "scripts": { + "test": "run-s test:*", + "test:lint": "eslint .", + "test:typecheck": "tsc --noEmit" + }, + "dependencies": { + "@agentic/ai-sdk": "workspace:*", + "@agentic/core": "workspace:*", + "@agentic/genkit": "workspace:*", + "@agentic/weather": "workspace:*", + "@genkit-ai/ai": "^0.5.9", + "@genkit-ai/core": "^0.5.9", + "genkitx-openai": "^0.10.0", + "zod": "^3.23.8" + }, + "devDependencies": { + "@agentic/tsconfig": "workspace:*" + } +} diff --git a/examples/genkit/tsconfig.json b/examples/genkit/tsconfig.json new file mode 100644 index 000000000..b99a3fc10 --- /dev/null +++ b/examples/genkit/tsconfig.json @@ -0,0 +1,5 @@ +{ + "extends": "@agentic/tsconfig/base.json", + "include": ["bin"], + "exclude": ["node_modules", "dist"] +} diff --git a/examples/langchain/weather.ts b/examples/langchain/bin/weather.ts similarity index 89% rename from examples/langchain/weather.ts rename to examples/langchain/bin/weather.ts index 61205bbd0..ca779056d 100644 --- a/examples/langchain/weather.ts +++ b/examples/langchain/bin/weather.ts @@ -1,8 +1,8 @@ #!/usr/bin/env node import 'dotenv/config' -import { WeatherClient } from '@agentic/stdlib' -import { createLangChainTools } from '@agentic/stdlib/langchain' +import { createLangChainTools } from '@agentic/langchain' +import { WeatherClient } from '@agentic/weather' import { ChatPromptTemplate } from '@langchain/core/prompts' import { ChatOpenAI } from '@langchain/openai' import { AgentExecutor, createToolCallingAgent } from 'langchain/agents' diff --git a/examples/langchain/package.json b/examples/langchain/package.json new file mode 100644 index 000000000..ddbb94bc5 --- /dev/null +++ b/examples/langchain/package.json @@ -0,0 +1,22 @@ +{ + "name": "agentic-examples-langchain", + "type": "module", + "private": true, + "scripts": { + "test": "run-s test:*", + "test:lint": "eslint .", + "test:typecheck": "tsc --noEmit" + }, + "dependencies": { + "@agentic/core": "workspace:*", + "@agentic/langchain": "workspace:*", + "@agentic/weather": "workspace:*", + "@langchain/core": "^0.2.20", + "@langchain/openai": "^0.2.5", + "langchain": "^0.2.12", + "zod": "^3.23.8" + }, + "devDependencies": { + "@agentic/tsconfig": "workspace:*" + } +} diff --git a/examples/langchain/tsconfig.json b/examples/langchain/tsconfig.json new file mode 100644 index 000000000..b99a3fc10 --- /dev/null +++ b/examples/langchain/tsconfig.json @@ -0,0 +1,5 @@ +{ + "extends": "@agentic/tsconfig/base.json", + "include": ["bin"], + "exclude": ["node_modules", "dist"] +} diff --git a/examples/llamaindex/weather.ts b/examples/llamaindex/bin/weather.ts similarity index 75% rename from examples/llamaindex/weather.ts rename to examples/llamaindex/bin/weather.ts index 970cc8052..78943833e 100644 --- a/examples/llamaindex/weather.ts +++ b/examples/llamaindex/bin/weather.ts @@ -1,8 +1,8 @@ #!/usr/bin/env node import 'dotenv/config' -import { WeatherClient } from '@agentic/stdlib' -import { createLlamaIndexTools } from '@agentic/stdlib/llamaindex' +import { createLlamaIndexTools } from '@agentic/llamaindex' +import { WeatherClient } from '@agentic/weather' import { OpenAI, OpenAIAgent } from 'llamaindex' async function main() { @@ -19,7 +19,7 @@ async function main() { message: 'What is the weather in San Francisco?' }) - console.log(response.response.message.content) + console.log(response.message.content) } await main() diff --git a/examples/llamaindex/package.json b/examples/llamaindex/package.json new file mode 100644 index 000000000..54416435f --- /dev/null +++ b/examples/llamaindex/package.json @@ -0,0 +1,20 @@ +{ + "name": "agentic-examples-llamaindex", + "type": "module", + "private": true, + "scripts": { + "test": "run-s test:*", + "test:lint": "eslint .", + "test:typecheck": "tsc --noEmit" + }, + "dependencies": { + "@agentic/core": "workspace:*", + "@agentic/llamaindex": "workspace:*", + "@agentic/weather": "workspace:*", + "llamaindex": "^0.5.13", + "zod": "^3.23.8" + }, + "devDependencies": { + "@agentic/tsconfig": "workspace:*" + } +} diff --git a/examples/llamaindex/tsconfig.json b/examples/llamaindex/tsconfig.json new file mode 100644 index 000000000..b99a3fc10 --- /dev/null +++ b/examples/llamaindex/tsconfig.json @@ -0,0 +1,5 @@ +{ + "extends": "@agentic/tsconfig/base.json", + "include": ["bin"], + "exclude": ["node_modules", "dist"] +} diff --git a/examples/openai/weather.ts b/examples/openai/bin/weather.ts similarity index 91% rename from examples/openai/weather.ts rename to examples/openai/bin/weather.ts index 66a3ca106..17652a1ad 100644 --- a/examples/openai/weather.ts +++ b/examples/openai/bin/weather.ts @@ -1,7 +1,8 @@ #!/usr/bin/env node import 'dotenv/config' -import { assert, WeatherClient } from '@agentic/stdlib' +import { assert } from '@agentic/core' +import { WeatherClient } from '@agentic/weather' import OpenAI from 'openai' async function main() { @@ -51,7 +52,7 @@ async function main() { temperature: 0, tools: weather.functions.toolSpecs }) - const message = res.choices[0].message + const message = res.choices?.[0]?.message console.log(JSON.stringify(message, null, 2)) } } diff --git a/examples/openai/package.json b/examples/openai/package.json new file mode 100644 index 000000000..2dc5f4d67 --- /dev/null +++ b/examples/openai/package.json @@ -0,0 +1,19 @@ +{ + "name": "agentic-examples-openai", + "type": "module", + "private": true, + "scripts": { + "test": "run-s test:*", + "test:lint": "eslint .", + "test:typecheck": "tsc --noEmit" + }, + "dependencies": { + "@agentic/core": "workspace:*", + "@agentic/weather": "workspace:*", + "openai": "^4.49.0", + "zod": "^3.23.8" + }, + "devDependencies": { + "@agentic/tsconfig": "workspace:*" + } +} diff --git a/examples/openai/tsconfig.json b/examples/openai/tsconfig.json new file mode 100644 index 000000000..b99a3fc10 --- /dev/null +++ b/examples/openai/tsconfig.json @@ -0,0 +1,5 @@ +{ + "extends": "@agentic/tsconfig/base.json", + "include": ["bin"], + "exclude": ["node_modules", "dist"] +} diff --git a/package.json b/package.json index daca99a7b..52e5cb9d8 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "@total-typescript/ts-reset": "^0.5.1", "@types/node": "^22.0.0", "del-cli": "^5.1.0", + "dotenv": "^16.4.5", "eslint": "^8.57.0", "husky": "^9.1.4", "lint-staged": "^15.2.7", diff --git a/packages/search-and-crawl/package.json b/packages/search-and-crawl/package.json new file mode 100644 index 000000000..aa0e00c23 --- /dev/null +++ b/packages/search-and-crawl/package.json @@ -0,0 +1,49 @@ +{ + "name": "@agentic/search-and-crawl", + "version": "6.6.1", + "description": "Agentic SDK for Google search and crawling the top results.", + "author": "Travis Fischer ", + "license": "MIT", + "repository": { + "type": "git", + "url": "git+https://github.com/transitive-bullshit/agentic.git" + }, + "type": "module", + "source": "./src/index.ts", + "types": "./dist/index.d.ts", + "sideEffects": false, + "exports": { + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.js", + "default": "./dist/index.js" + } + }, + "files": [ + "dist" + ], + "scripts": { + "build": "tsup", + "dev": "tsup --watch", + "clean": "del dist", + "test": "run-s test:*", + "test:lint": "eslint .", + "test:typecheck": "tsc --noEmit" + }, + "dependencies": { + "@agentic/diffbot": "workspace:*", + "@agentic/serpapi": "workspace:*", + "p-map": "^7.0.2" + }, + "peerDependencies": { + "@agentic/core": "workspace:*", + "zod": "^3.23.3" + }, + "devDependencies": { + "@agentic/core": "workspace:*", + "@agentic/tsconfig": "workspace:*" + }, + "publishConfig": { + "access": "public" + } +} diff --git a/packages/search-and-crawl/src/index.ts b/packages/search-and-crawl/src/index.ts new file mode 100644 index 000000000..c750caf48 --- /dev/null +++ b/packages/search-and-crawl/src/index.ts @@ -0,0 +1 @@ +export * from './search-and-crawl' diff --git a/packages/search-and-crawl/src/search-and-crawl.ts b/packages/search-and-crawl/src/search-and-crawl.ts index 6436dad82..843040f57 100644 --- a/packages/search-and-crawl/src/search-and-crawl.ts +++ b/packages/search-and-crawl/src/search-and-crawl.ts @@ -1,11 +1,16 @@ -import { aiFunction, AIFunctionsProvider , omit, pick } from '@agentic/core' +import { + aiFunction, + AIFunctionsProvider, + isValidCrawlableUrl, + normalizeUrl, + omit, + pick +} from '@agentic/core' +import { type diffbot, DiffbotClient } from '@agentic/diffbot' +import { SerpAPIClient } from '@agentic/serpapi' import pMap from 'p-map' import { z } from 'zod' -import { type diffbot, DiffbotClient } from '../services/diffbot-client' -import { SerpAPIClient } from '../services/serpapi-client' -import { isValidCrawlableUrl, normalizeUrl } from '../url-utils' - // TODO: allow `search` tool to support other search clients // (e.g. Bing, Exa, Searxng, Serper, Tavily) diff --git a/packages/search-and-crawl/tsconfig.json b/packages/search-and-crawl/tsconfig.json new file mode 100644 index 000000000..6c8d720c7 --- /dev/null +++ b/packages/search-and-crawl/tsconfig.json @@ -0,0 +1,5 @@ +{ + "extends": "@agentic/tsconfig/base.json", + "include": ["src"], + "exclude": ["node_modules", "dist"] +} diff --git a/packages/search-and-crawl/tsup.config.ts b/packages/search-and-crawl/tsup.config.ts new file mode 100644 index 000000000..010d3727b --- /dev/null +++ b/packages/search-and-crawl/tsup.config.ts @@ -0,0 +1 @@ +export { default } from '../../tsup.config' diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 67a9bb521..9ca8b27b6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -20,6 +20,9 @@ importers: del-cli: specifier: ^5.1.0 version: 5.1.0 + dotenv: + specifier: ^16.4.5 + version: 16.4.5 eslint: specifier: ^8.57.0 version: 8.57.0 @@ -80,9 +83,146 @@ importers: ai: specifier: ^3.1.30 version: 3.3.0(openai@4.54.0)(react@18.3.1)(sswr@2.1.0(svelte@4.2.18))(svelte@4.2.18)(vue@3.4.35(typescript@5.5.4))(zod@3.23.8) - dotenv: - specifier: ^16.4.5 - version: 16.4.5 + openai: + specifier: ^4.49.0 + version: 4.54.0(encoding@0.1.13) + zod: + specifier: ^3.23.8 + version: 3.23.8 + devDependencies: + '@agentic/tsconfig': + specifier: workspace:* + version: link:../../packages/tsconfig + + examples/dexter: + dependencies: + '@agentic/core': + specifier: workspace:* + version: link:../../packages/core + '@agentic/dexter': + specifier: workspace:* + version: link:../../packages/dexter + '@agentic/diffbot': + specifier: workspace:* + version: link:../../packages/diffbot + '@agentic/e2b': + specifier: workspace:* + version: link:../../packages/e2b + '@agentic/perigon': + specifier: workspace:* + version: link:../../packages/perigon + '@agentic/search-and-crawl': + specifier: workspace:* + version: link:../../packages/search-and-crawl + '@agentic/serpapi': + specifier: workspace:* + version: link:../../packages/serpapi + '@agentic/serper': + specifier: workspace:* + version: link:../../packages/serper + '@agentic/weather': + specifier: workspace:* + version: link:../../packages/weather + '@dexaai/dexter': + specifier: ^2.1.0 + version: 2.1.0 + zod: + specifier: ^3.23.8 + version: 3.23.8 + devDependencies: + '@agentic/tsconfig': + specifier: workspace:* + version: link:../../packages/tsconfig + + examples/genkit: + dependencies: + '@agentic/ai-sdk': + specifier: workspace:* + version: link:../../packages/ai-sdk + '@agentic/core': + specifier: workspace:* + version: link:../../packages/core + '@agentic/genkit': + specifier: workspace:* + version: link:../../packages/genkit + '@agentic/weather': + specifier: workspace:* + version: link:../../packages/weather + '@genkit-ai/ai': + specifier: ^0.5.9 + version: 0.5.9 + '@genkit-ai/core': + specifier: ^0.5.9 + version: 0.5.9 + genkitx-openai: + specifier: ^0.10.0 + version: 0.10.0(@genkit-ai/ai@0.5.9)(@genkit-ai/core@0.5.9) + zod: + specifier: ^3.23.8 + version: 3.23.8 + devDependencies: + '@agentic/tsconfig': + specifier: workspace:* + version: link:../../packages/tsconfig + + examples/langchain: + dependencies: + '@agentic/core': + specifier: workspace:* + version: link:../../packages/core + '@agentic/langchain': + specifier: workspace:* + version: link:../../packages/langchain + '@agentic/weather': + specifier: workspace:* + version: link:../../packages/weather + '@langchain/core': + specifier: ^0.2.20 + version: 0.2.20(langchain@0.2.12(@aws-sdk/credential-provider-node@3.623.0)(@browserbasehq/sdk@1.4.2)(@notionhq/client@2.2.15)(@pinecone-database/pinecone@2.2.2)(assemblyai@4.6.1)(axios@1.7.3)(chromadb@1.8.1(openai@4.54.0))(fast-xml-parser@4.4.1)(ignore@5.3.1)(mammoth@1.8.0)(mongodb@6.8.0)(openai@4.54.0)(ws@8.18.0))(openai@4.54.0) + '@langchain/openai': + specifier: ^0.2.5 + version: 0.2.5(langchain@0.2.12(@aws-sdk/credential-provider-node@3.623.0)(@browserbasehq/sdk@1.4.2)(@notionhq/client@2.2.15)(@pinecone-database/pinecone@2.2.2)(assemblyai@4.6.1)(axios@1.7.3)(chromadb@1.8.1(openai@4.54.0))(fast-xml-parser@4.4.1)(ignore@5.3.1)(mammoth@1.8.0)(mongodb@6.8.0)(openai@4.54.0)(ws@8.18.0)) + langchain: + specifier: ^0.2.12 + version: 0.2.12(@aws-sdk/credential-provider-node@3.623.0)(@browserbasehq/sdk@1.4.2)(@notionhq/client@2.2.15)(@pinecone-database/pinecone@2.2.2)(assemblyai@4.6.1)(axios@1.7.3)(chromadb@1.8.1(openai@4.54.0))(fast-xml-parser@4.4.1)(ignore@5.3.1)(mammoth@1.8.0)(mongodb@6.8.0)(openai@4.54.0)(ws@8.18.0) + zod: + specifier: ^3.23.8 + version: 3.23.8 + devDependencies: + '@agentic/tsconfig': + specifier: workspace:* + version: link:../../packages/tsconfig + + examples/llamaindex: + dependencies: + '@agentic/core': + specifier: workspace:* + version: link:../../packages/core + '@agentic/llamaindex': + specifier: workspace:* + version: link:../../packages/llamaindex + '@agentic/weather': + specifier: workspace:* + version: link:../../packages/weather + llamaindex: + specifier: ^0.5.13 + version: 0.5.13(@aws-sdk/client-sso-oidc@3.623.0(@aws-sdk/client-sts@3.623.0))(@aws-sdk/credential-providers@3.623.0(@aws-sdk/client-sso-oidc@3.623.0(@aws-sdk/client-sts@3.623.0)))(@notionhq/client@2.2.15(encoding@0.1.13))(bufferutil@4.0.8)(encoding@0.1.13)(socks@2.8.3)(typescript@5.5.4)(utf-8-validate@6.0.4) + zod: + specifier: ^3.23.8 + version: 3.23.8 + devDependencies: + '@agentic/tsconfig': + specifier: workspace:* + version: link:../../packages/tsconfig + + examples/openai: + dependencies: + '@agentic/core': + specifier: workspace:* + version: link:../../packages/core + '@agentic/weather': + specifier: workspace:* + version: link:../../packages/weather openai: specifier: ^4.49.0 version: 4.54.0(encoding@0.1.13) @@ -411,7 +551,7 @@ importers: version: link:../tsconfig '@langchain/core': specifier: ^0.2.20 - version: 0.2.20(openai@4.54.0) + version: 0.2.20(langchain@0.2.12(openai@4.54.0))(openai@4.54.0) packages/llamaindex: devDependencies: @@ -549,6 +689,28 @@ importers: specifier: workspace:* version: link:../tsconfig + packages/search-and-crawl: + dependencies: + '@agentic/diffbot': + specifier: workspace:* + version: link:../diffbot + '@agentic/serpapi': + specifier: workspace:* + version: link:../serpapi + p-map: + specifier: ^7.0.2 + version: 7.0.2 + zod: + specifier: ^3.23.3 + version: 3.23.8 + devDependencies: + '@agentic/core': + specifier: workspace:* + version: link:../core + '@agentic/tsconfig': + specifier: workspace:* + version: link:../tsconfig + packages/searxng: dependencies: ky: @@ -1515,6 +1677,14 @@ packages: resolution: {integrity: sha512-WPBjrzOj79/yqjloDUIw1GDhuRQfHis07TyyDj+qS81nHh0svSasetKcqAZ3L5JoPcBmEL7rRBtM+OcyC3mLVg==} engines: {node: '>=18'} + '@langchain/openai@0.2.5': + resolution: {integrity: sha512-gQXS5VBFyAco0jgSnUVan6fYVSIxlffmDaeDGpXrAmz2nQPgiN/h24KYOt2NOZ1zRheRzRuO/CfRagMhyVUaFA==} + engines: {node: '>=18'} + + '@langchain/textsplitters@0.0.3': + resolution: {integrity: sha512-cXWgKE3sdWLSqAa8ykbCcUsUF1Kyr5J3HOWYGuobhPEycXW4WI++d5DhzdpL238mzoEXTi90VqfSCra37l5YqA==} + engines: {node: '>=18'} + '@llamaindex/cloud@0.2.1': resolution: {integrity: sha512-w6ajrpq4gV8AKtkMAbyBnXeByrz3nbPbBMXDECfWsozL/Lhe9lVz4onZCMikSpU5KRuMmaxdZ6wkeRLS8ySGIQ==} @@ -2724,6 +2894,9 @@ packages: resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} engines: {node: '>=8'} + binary-search@1.3.6: + resolution: {integrity: sha512-nbE1WxOTTrUWIfsfZ4aHGYu5DOuNkbxGokjV6Z2kxfJK3uaAb8zNK1muzOeipoLHZjInT4Br88BHpzevc681xA==} + bl@4.1.0: resolution: {integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==} @@ -3831,6 +4004,12 @@ packages: resolution: {integrity: sha512-hymDOu5B53XvN4QT9dBmZxPX4CWhBPPLguTZ9MMFeFa/Kg0xWVfylOVNlJji/E7yTZWFd/q9GO5TxDLq156D7g==} engines: {node: '>= 4'} + genkitx-openai@0.10.0: + resolution: {integrity: sha512-99GFTd9DMZua59L6v7LipM0HPPaFaaelGKPsscHOoi7L3V1oc7BBPdvr5XO6Vceasb2Hda13OLeCdu5VIP0Jgg==} + peerDependencies: + '@genkit-ai/ai': ^0.5.0 + '@genkit-ai/core': ^0.5.0 + get-caller-file@2.0.5: resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} engines: {node: 6.* || 8.* || >= 10.*} @@ -4138,6 +4317,9 @@ packages: resolution: {integrity: sha512-/51/TKE88Lmm7Gc4/8btclNXWS+g50wXhYJq8HWIBAGUBnoAdRu1aXeh364t/O7wXDAcTJDP8PNuNKWUDWie+A==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + is-any-array@2.0.1: + resolution: {integrity: sha512-UtilS7hLRu++wb/WBAw9bNuP1Eg04Ivn1vERJck8zJthEvXCBEBpGR/33u/xLKWEQf95803oalHrVDptcAvFdQ==} + is-arguments@1.1.1: resolution: {integrity: sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==} engines: {node: '>= 0.4'} @@ -4487,6 +4669,10 @@ packages: jsonfile@6.1.0: resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==} + jsonpointer@5.0.1: + resolution: {integrity: sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ==} + engines: {node: '>=0.10.0'} + jsonrepair@3.8.0: resolution: {integrity: sha512-89lrxpwp+IEcJ6kwglF0HH3Tl17J08JEpYfXnvvjdp4zV4rjSoGu2NdQHxBs7yTOk3ETjTn9du48pBy8iBqj1w==} hasBin: true @@ -4528,6 +4714,192 @@ packages: resolution: {integrity: sha512-bkQo+UqryW6Zmo/DsixYZE4Z9t2mzvNMhceyIhuMuInb3knm5Q+GNGMKveydJAj+Z6piN1SwI6eR/V0G+Z0BtA==} engines: {node: '>=18'} + langchain@0.2.12: + resolution: {integrity: sha512-ZHtJrHUpridZ7IQu7N/wAQ6iMAAO7VLzkupHqKP79S6p+alrPbn1BjRnh+PeGm92YiY5DafTCuvchmujxx7bCQ==} + engines: {node: '>=18'} + peerDependencies: + '@aws-sdk/client-s3': '*' + '@aws-sdk/client-sagemaker-runtime': '*' + '@aws-sdk/client-sfn': '*' + '@aws-sdk/credential-provider-node': '*' + '@azure/storage-blob': '*' + '@browserbasehq/sdk': '*' + '@gomomento/sdk': '*' + '@gomomento/sdk-core': '*' + '@gomomento/sdk-web': ^1.51.1 + '@langchain/anthropic': '*' + '@langchain/aws': '*' + '@langchain/cohere': '*' + '@langchain/community': '*' + '@langchain/google-genai': '*' + '@langchain/google-vertexai': '*' + '@langchain/groq': '*' + '@langchain/mistralai': '*' + '@langchain/ollama': '*' + '@mendable/firecrawl-js': '*' + '@notionhq/client': '*' + '@pinecone-database/pinecone': '*' + '@supabase/supabase-js': '*' + '@vercel/kv': '*' + '@xata.io/client': '*' + apify-client: '*' + assemblyai: '*' + axios: '*' + cheerio: '*' + chromadb: '*' + convex: '*' + couchbase: '*' + d3-dsv: '*' + epub2: '*' + faiss-node: '*' + fast-xml-parser: '*' + handlebars: ^4.7.8 + html-to-text: '*' + ignore: '*' + ioredis: '*' + jsdom: '*' + mammoth: '*' + mongodb: '*' + node-llama-cpp: '*' + notion-to-md: '*' + officeparser: '*' + pdf-parse: '*' + peggy: ^3.0.2 + playwright: '*' + puppeteer: '*' + pyodide: ^0.24.1 + redis: '*' + sonix-speech-recognition: '*' + srt-parser-2: '*' + typeorm: '*' + weaviate-ts-client: '*' + web-auth-library: '*' + ws: '*' + youtube-transcript: '*' + youtubei.js: '*' + peerDependenciesMeta: + '@aws-sdk/client-s3': + optional: true + '@aws-sdk/client-sagemaker-runtime': + optional: true + '@aws-sdk/client-sfn': + optional: true + '@aws-sdk/credential-provider-node': + optional: true + '@azure/storage-blob': + optional: true + '@browserbasehq/sdk': + optional: true + '@gomomento/sdk': + optional: true + '@gomomento/sdk-core': + optional: true + '@gomomento/sdk-web': + optional: true + '@langchain/anthropic': + optional: true + '@langchain/aws': + optional: true + '@langchain/cohere': + optional: true + '@langchain/community': + optional: true + '@langchain/google-genai': + optional: true + '@langchain/google-vertexai': + optional: true + '@langchain/groq': + optional: true + '@langchain/mistralai': + optional: true + '@langchain/ollama': + optional: true + '@mendable/firecrawl-js': + optional: true + '@notionhq/client': + optional: true + '@pinecone-database/pinecone': + optional: true + '@supabase/supabase-js': + optional: true + '@vercel/kv': + optional: true + '@xata.io/client': + optional: true + apify-client: + optional: true + assemblyai: + optional: true + axios: + optional: true + cheerio: + optional: true + chromadb: + optional: true + convex: + optional: true + couchbase: + optional: true + d3-dsv: + optional: true + epub2: + optional: true + faiss-node: + optional: true + fast-xml-parser: + optional: true + handlebars: + optional: true + html-to-text: + optional: true + ignore: + optional: true + ioredis: + optional: true + jsdom: + optional: true + mammoth: + optional: true + mongodb: + optional: true + node-llama-cpp: + optional: true + notion-to-md: + optional: true + officeparser: + optional: true + pdf-parse: + optional: true + peggy: + optional: true + playwright: + optional: true + puppeteer: + optional: true + pyodide: + optional: true + redis: + optional: true + sonix-speech-recognition: + optional: true + srt-parser-2: + optional: true + typeorm: + optional: true + weaviate-ts-client: + optional: true + web-auth-library: + optional: true + ws: + optional: true + youtube-transcript: + optional: true + youtubei.js: + optional: true + + langchainhub@0.0.11: + resolution: {integrity: sha512-WnKI4g9kU2bHQP136orXr2bcRdgz9iiTBpTN0jWt9IlScUKnJBoD0aa2HOzHURQKeQDnt2JwqVmQ6Depf5uDLQ==} + langsmith@0.1.40: resolution: {integrity: sha512-11E2WLbh/+41+Qc0w8fJJTC/iz91BA+zXRMX/Wz0KSstnfzIPBoiWa++Kp2X8yCIDNywWWLJhy/B8gYzm7VKig==} peerDependencies: @@ -4869,6 +5241,21 @@ packages: engines: {node: '>=10'} hasBin: true + ml-array-mean@1.1.6: + resolution: {integrity: sha512-MIdf7Zc8HznwIisyiJGRH9tRigg3Yf4FldW8DxKxpCCv/g5CafTw0RRu51nojVEOXuCQC7DRVVu5c7XXO/5joQ==} + + ml-array-sum@1.1.6: + resolution: {integrity: sha512-29mAh2GwH7ZmiRnup4UyibQZB9+ZLyMShvt4cH4eTK+cL2oEMIZFnSyB3SS8MlsTh6q/w/yh48KmqLxmovN4Dw==} + + ml-distance-euclidean@2.0.0: + resolution: {integrity: sha512-yC9/2o8QF0A3m/0IXqCTXCzz2pNEzvmcE/9HFKOZGnTjatvBbsn4lWYJkxENkA4Ug2fnYl7PXQxnPi21sgMy/Q==} + + ml-distance@4.0.1: + resolution: {integrity: sha512-feZ5ziXs01zhyFUUUeZV5hwc0f5JW0Sh0ckU1koZe/wdVkJdGxcP06KNQuF0WBTj8FttQUzcvQcpcrOp/XrlEw==} + + ml-tree-similarity@1.0.0: + resolution: {integrity: sha512-XJUyYqjSuUQkNQHMscr6tcjldsOoAekxADTplt40QKfwW6nd++1wHWV9AArl0Zvw/TIHgNaZZNvr8QGvE8wLRg==} + module-details-from-path@1.0.3: resolution: {integrity: sha512-ySViT69/76t8VhE1xXHK6Ch4NcDd26gx0MzKXLO+F7NOtnqH68d9zF94nT8ZWSxXh8ELOERsnJO/sWt1xZYw5A==} @@ -5047,6 +5434,10 @@ packages: resolution: {integrity: sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==} deprecated: This package is no longer supported. + num-sort@2.1.0: + resolution: {integrity: sha512-1MQz1Ed8z2yckoBeSfkQHHO9K1yDRxxtotKSJ9yvcTUUxSvfvzEq5GwBrjjHEpMlq/k5gvXdmJ1SbYxWtpNoVg==} + engines: {node: '>=8'} + number-is-nan@1.0.1: resolution: {integrity: sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==} engines: {node: '>=0.10.0'} @@ -5157,6 +5548,9 @@ packages: resolution: {integrity: sha512-e/12BdtTtj+tXs7iHm+Dm7H7WjEWnw7O52B2wSfCQ6lD5F6cvjzo7cANXy5TJ1Q3/qc8YRPT5wBTTFtP5sBp1g==} hasBin: true + openapi-types@12.1.3: + resolution: {integrity: sha512-N4YtSYJqghVu4iek2ZUvcN/0aqH1kRDuNqzcycDxhOUpg7GdvLa2F3DgS6yBNhInhv2r/6I0Flkn7CqL8+nIcw==} + openapi-typescript-fetch@1.1.3: resolution: {integrity: sha512-smLZPck4OkKMNExcw8jMgrMOGgVGx2N/s6DbKL2ftNl77g5HfoGpZGFy79RBzU/EkaO0OZpwBnslfdBfh7ZcWg==} engines: {node: '>= 12.0.0', npm: '>= 7.0.0'} @@ -7768,7 +8162,7 @@ snapshots: '@typescript-eslint/parser': 7.17.0(eslint@8.57.0)(typescript@5.5.4) '@typescript-eslint/utils': 7.17.0(eslint@8.57.0)(typescript@5.5.4) eslint-config-prettier: 9.1.0(eslint@8.57.0) - eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.4))(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0))(eslint@8.57.0) + eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.4))(eslint-plugin-import@2.29.1)(eslint@8.57.0) eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.4))(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0) eslint-plugin-jest: 28.6.0(@typescript-eslint/eslint-plugin@7.17.0(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0)(typescript@5.5.4) eslint-plugin-jest-dom: 5.4.0(eslint@8.57.0) @@ -7888,13 +8282,13 @@ snapshots: '@js-sdsl/ordered-map@4.4.2': {} - '@langchain/core@0.2.20(openai@4.54.0)': + '@langchain/core@0.2.20(langchain@0.2.12(@aws-sdk/credential-provider-node@3.623.0)(@browserbasehq/sdk@1.4.2)(@notionhq/client@2.2.15)(@pinecone-database/pinecone@2.2.2)(assemblyai@4.6.1)(axios@1.7.3)(chromadb@1.8.1(openai@4.54.0))(fast-xml-parser@4.4.1)(ignore@5.3.1)(mammoth@1.8.0)(mongodb@6.8.0)(openai@4.54.0)(ws@8.18.0))(openai@4.54.0)': dependencies: ansi-styles: 5.2.0 camelcase: 6.3.0 decamelize: 1.2.0 js-tiktoken: 1.0.12 - langsmith: 0.1.40(@langchain/core@0.2.20(openai@4.54.0))(openai@4.54.0) + langsmith: 0.1.40(@langchain/core@0.2.20(langchain@0.2.12(@aws-sdk/credential-provider-node@3.623.0)(@browserbasehq/sdk@1.4.2)(@notionhq/client@2.2.15)(@pinecone-database/pinecone@2.2.2)(assemblyai@4.6.1)(axios@1.7.3)(chromadb@1.8.1(openai@4.54.0))(fast-xml-parser@4.4.1)(ignore@5.3.1)(mammoth@1.8.0)(mongodb@6.8.0)(openai@4.54.0)(ws@8.18.0))(openai@4.54.0))(langchain@0.2.12(@aws-sdk/credential-provider-node@3.623.0)(@browserbasehq/sdk@1.4.2)(@notionhq/client@2.2.15)(@pinecone-database/pinecone@2.2.2)(assemblyai@4.6.1)(axios@1.7.3)(chromadb@1.8.1(openai@4.54.0))(fast-xml-parser@4.4.1)(ignore@5.3.1)(mammoth@1.8.0)(mongodb@6.8.0)(openai@4.54.0)(ws@8.18.0))(openai@4.54.0) mustache: 4.2.0 p-queue: 6.6.2 p-retry: 4.6.2 @@ -7905,6 +8299,63 @@ snapshots: - langchain - openai + '@langchain/core@0.2.20(langchain@0.2.12(openai@4.54.0))(openai@4.54.0)': + dependencies: + ansi-styles: 5.2.0 + camelcase: 6.3.0 + decamelize: 1.2.0 + js-tiktoken: 1.0.12 + langsmith: 0.1.40(@langchain/core@0.2.20(langchain@0.2.12(openai@4.54.0))(openai@4.54.0))(langchain@0.2.12(openai@4.54.0))(openai@4.54.0) + mustache: 4.2.0 + p-queue: 6.6.2 + p-retry: 4.6.2 + uuid: 10.0.0 + zod: 3.23.8 + zod-to-json-schema: 3.23.2(zod@3.23.8) + transitivePeerDependencies: + - langchain + - openai + + '@langchain/openai@0.2.5(langchain@0.2.12(@aws-sdk/credential-provider-node@3.623.0)(@browserbasehq/sdk@1.4.2)(@notionhq/client@2.2.15)(@pinecone-database/pinecone@2.2.2)(assemblyai@4.6.1)(axios@1.7.3)(chromadb@1.8.1(openai@4.54.0))(fast-xml-parser@4.4.1)(ignore@5.3.1)(mammoth@1.8.0)(mongodb@6.8.0)(openai@4.54.0)(ws@8.18.0))': + dependencies: + '@langchain/core': 0.2.20(langchain@0.2.12(@aws-sdk/credential-provider-node@3.623.0)(@browserbasehq/sdk@1.4.2)(@notionhq/client@2.2.15)(@pinecone-database/pinecone@2.2.2)(assemblyai@4.6.1)(axios@1.7.3)(chromadb@1.8.1(openai@4.54.0))(fast-xml-parser@4.4.1)(ignore@5.3.1)(mammoth@1.8.0)(mongodb@6.8.0)(openai@4.54.0)(ws@8.18.0))(openai@4.54.0) + js-tiktoken: 1.0.12 + openai: 4.54.0(encoding@0.1.13) + zod: 3.23.8 + zod-to-json-schema: 3.23.2(zod@3.23.8) + transitivePeerDependencies: + - encoding + - langchain + + '@langchain/openai@0.2.5(langchain@0.2.12(openai@4.54.0))': + dependencies: + '@langchain/core': 0.2.20(langchain@0.2.12(openai@4.54.0))(openai@4.54.0) + js-tiktoken: 1.0.12 + openai: 4.54.0(encoding@0.1.13) + zod: 3.23.8 + zod-to-json-schema: 3.23.2(zod@3.23.8) + transitivePeerDependencies: + - encoding + - langchain + optional: true + + '@langchain/textsplitters@0.0.3(langchain@0.2.12(@aws-sdk/credential-provider-node@3.623.0)(@browserbasehq/sdk@1.4.2)(@notionhq/client@2.2.15)(@pinecone-database/pinecone@2.2.2)(assemblyai@4.6.1)(axios@1.7.3)(chromadb@1.8.1(openai@4.54.0))(fast-xml-parser@4.4.1)(ignore@5.3.1)(mammoth@1.8.0)(mongodb@6.8.0)(openai@4.54.0)(ws@8.18.0))(openai@4.54.0)': + dependencies: + '@langchain/core': 0.2.20(langchain@0.2.12(@aws-sdk/credential-provider-node@3.623.0)(@browserbasehq/sdk@1.4.2)(@notionhq/client@2.2.15)(@pinecone-database/pinecone@2.2.2)(assemblyai@4.6.1)(axios@1.7.3)(chromadb@1.8.1(openai@4.54.0))(fast-xml-parser@4.4.1)(ignore@5.3.1)(mammoth@1.8.0)(mongodb@6.8.0)(openai@4.54.0)(ws@8.18.0))(openai@4.54.0) + js-tiktoken: 1.0.12 + transitivePeerDependencies: + - langchain + - openai + + '@langchain/textsplitters@0.0.3(langchain@0.2.12(openai@4.54.0))(openai@4.54.0)': + dependencies: + '@langchain/core': 0.2.20(langchain@0.2.12(openai@4.54.0))(openai@4.54.0) + js-tiktoken: 1.0.12 + transitivePeerDependencies: + - langchain + - openai + optional: true + '@llamaindex/cloud@0.2.1': {} '@llamaindex/core@0.1.7(@aws-crypto/sha256-js@5.2.0)(js-tiktoken@1.0.12)(pathe@1.1.2)(tiktoken@1.0.15)': @@ -9377,6 +9828,8 @@ snapshots: binary-extensions@2.3.0: {} + binary-search@1.3.6: {} + bl@4.1.0: dependencies: buffer: 5.7.1 @@ -10214,12 +10667,12 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.4))(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0))(eslint@8.57.0): + eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.4))(eslint-plugin-import@2.29.1)(eslint@8.57.0): dependencies: debug: 4.3.6 enhanced-resolve: 5.17.1 eslint: 8.57.0 - eslint-module-utils: 2.8.1(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.4))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.4))(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0) + eslint-module-utils: 2.8.1(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.4))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.4))(eslint-plugin-import@2.29.1)(eslint@8.57.0))(eslint@8.57.0) eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.4))(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0) fast-glob: 3.3.2 get-tsconfig: 4.7.6 @@ -10231,14 +10684,14 @@ snapshots: - eslint-import-resolver-webpack - supports-color - eslint-module-utils@2.8.1(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.4))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.4))(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0): + eslint-module-utils@2.8.1(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.4))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.4))(eslint-plugin-import@2.29.1)(eslint@8.57.0))(eslint@8.57.0): dependencies: debug: 3.2.7 optionalDependencies: '@typescript-eslint/parser': 7.17.0(eslint@8.57.0)(typescript@5.5.4) eslint: 8.57.0 eslint-import-resolver-node: 0.3.9 - eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.4))(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0))(eslint@8.57.0) + eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.4))(eslint-plugin-import@2.29.1)(eslint@8.57.0) transitivePeerDependencies: - supports-color @@ -10252,7 +10705,7 @@ snapshots: doctrine: 2.1.0 eslint: 8.57.0 eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.8.1(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.4))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.4))(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0) + eslint-module-utils: 2.8.1(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.4))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.4))(eslint-plugin-import@2.29.1)(eslint@8.57.0))(eslint@8.57.0) hasown: 2.0.2 is-core-module: 2.15.0 is-glob: 4.0.3 @@ -10756,6 +11209,15 @@ snapshots: generic-pool@3.9.0: {} + genkitx-openai@0.10.0(@genkit-ai/ai@0.5.9)(@genkit-ai/core@0.5.9): + dependencies: + '@genkit-ai/ai': 0.5.9 + '@genkit-ai/core': 0.5.9 + openai: 4.54.0(encoding@0.1.13) + zod: 3.23.8 + transitivePeerDependencies: + - encoding + get-caller-file@2.0.5: {} get-east-asian-width@1.2.0: {} @@ -11124,6 +11586,8 @@ snapshots: is-absolute-url@4.0.1: {} + is-any-array@2.0.1: {} + is-arguments@1.1.1: dependencies: call-bind: 1.0.7 @@ -11411,6 +11875,8 @@ snapshots: optionalDependencies: graceful-fs: 4.2.11 + jsonpointer@5.0.1: {} + jsonrepair@3.8.0: {} jsonwebtoken@9.0.2: @@ -11472,7 +11938,67 @@ snapshots: ky@1.5.0: {} - langsmith@0.1.40(@langchain/core@0.2.20(openai@4.54.0))(openai@4.54.0): + langchain@0.2.12(@aws-sdk/credential-provider-node@3.623.0)(@browserbasehq/sdk@1.4.2)(@notionhq/client@2.2.15)(@pinecone-database/pinecone@2.2.2)(assemblyai@4.6.1)(axios@1.7.3)(chromadb@1.8.1(openai@4.54.0))(fast-xml-parser@4.4.1)(ignore@5.3.1)(mammoth@1.8.0)(mongodb@6.8.0)(openai@4.54.0)(ws@8.18.0): + dependencies: + '@langchain/core': 0.2.20(langchain@0.2.12(@aws-sdk/credential-provider-node@3.623.0)(@browserbasehq/sdk@1.4.2)(@notionhq/client@2.2.15)(@pinecone-database/pinecone@2.2.2)(assemblyai@4.6.1)(axios@1.7.3)(chromadb@1.8.1(openai@4.54.0))(fast-xml-parser@4.4.1)(ignore@5.3.1)(mammoth@1.8.0)(mongodb@6.8.0)(openai@4.54.0)(ws@8.18.0))(openai@4.54.0) + '@langchain/openai': 0.2.5(langchain@0.2.12(@aws-sdk/credential-provider-node@3.623.0)(@browserbasehq/sdk@1.4.2)(@notionhq/client@2.2.15)(@pinecone-database/pinecone@2.2.2)(assemblyai@4.6.1)(axios@1.7.3)(chromadb@1.8.1(openai@4.54.0))(fast-xml-parser@4.4.1)(ignore@5.3.1)(mammoth@1.8.0)(mongodb@6.8.0)(openai@4.54.0)(ws@8.18.0)) + '@langchain/textsplitters': 0.0.3(langchain@0.2.12(@aws-sdk/credential-provider-node@3.623.0)(@browserbasehq/sdk@1.4.2)(@notionhq/client@2.2.15)(@pinecone-database/pinecone@2.2.2)(assemblyai@4.6.1)(axios@1.7.3)(chromadb@1.8.1(openai@4.54.0))(fast-xml-parser@4.4.1)(ignore@5.3.1)(mammoth@1.8.0)(mongodb@6.8.0)(openai@4.54.0)(ws@8.18.0))(openai@4.54.0) + binary-extensions: 2.3.0 + js-tiktoken: 1.0.12 + js-yaml: 4.1.0 + jsonpointer: 5.0.1 + langchainhub: 0.0.11 + langsmith: 0.1.40(@langchain/core@0.2.20(langchain@0.2.12(@aws-sdk/credential-provider-node@3.623.0)(@browserbasehq/sdk@1.4.2)(@notionhq/client@2.2.15)(@pinecone-database/pinecone@2.2.2)(assemblyai@4.6.1)(axios@1.7.3)(chromadb@1.8.1(openai@4.54.0))(fast-xml-parser@4.4.1)(ignore@5.3.1)(mammoth@1.8.0)(mongodb@6.8.0)(openai@4.54.0)(ws@8.18.0))(openai@4.54.0))(langchain@0.2.12(@aws-sdk/credential-provider-node@3.623.0)(@browserbasehq/sdk@1.4.2)(@notionhq/client@2.2.15)(@pinecone-database/pinecone@2.2.2)(assemblyai@4.6.1)(axios@1.7.3)(chromadb@1.8.1(openai@4.54.0))(fast-xml-parser@4.4.1)(ignore@5.3.1)(mammoth@1.8.0)(mongodb@6.8.0)(openai@4.54.0)(ws@8.18.0))(openai@4.54.0) + ml-distance: 4.0.1 + openapi-types: 12.1.3 + p-retry: 4.6.2 + uuid: 10.0.0 + yaml: 2.5.0 + zod: 3.23.8 + zod-to-json-schema: 3.23.2(zod@3.23.8) + optionalDependencies: + '@aws-sdk/credential-provider-node': 3.623.0(@aws-sdk/client-sso-oidc@3.623.0(@aws-sdk/client-sts@3.623.0))(@aws-sdk/client-sts@3.623.0) + '@browserbasehq/sdk': 1.4.2(bufferutil@4.0.8)(utf-8-validate@6.0.4) + '@notionhq/client': 2.2.15(encoding@0.1.13) + '@pinecone-database/pinecone': 2.2.2 + assemblyai: 4.6.1(bufferutil@4.0.8)(utf-8-validate@6.0.4) + axios: 1.7.3 + chromadb: 1.8.1(@google/generative-ai@0.12.0)(cohere-ai@7.10.6(@aws-sdk/client-sso-oidc@3.623.0(@aws-sdk/client-sts@3.623.0))(encoding@0.1.13))(encoding@0.1.13)(openai@4.54.0(encoding@0.1.13)) + fast-xml-parser: 4.4.1 + ignore: 5.3.1 + mammoth: 1.8.0 + mongodb: 6.8.0(@aws-sdk/credential-providers@3.623.0(@aws-sdk/client-sso-oidc@3.623.0(@aws-sdk/client-sts@3.623.0)))(socks@2.8.3) + ws: 8.18.0(bufferutil@4.0.8)(utf-8-validate@6.0.4) + transitivePeerDependencies: + - encoding + - openai + + langchain@0.2.12(openai@4.54.0): + dependencies: + '@langchain/core': 0.2.20(langchain@0.2.12(openai@4.54.0))(openai@4.54.0) + '@langchain/openai': 0.2.5(langchain@0.2.12(openai@4.54.0)) + '@langchain/textsplitters': 0.0.3(langchain@0.2.12(openai@4.54.0))(openai@4.54.0) + binary-extensions: 2.3.0 + js-tiktoken: 1.0.12 + js-yaml: 4.1.0 + jsonpointer: 5.0.1 + langchainhub: 0.0.11 + langsmith: 0.1.40(@langchain/core@0.2.20(langchain@0.2.12(openai@4.54.0))(openai@4.54.0))(langchain@0.2.12(openai@4.54.0))(openai@4.54.0) + ml-distance: 4.0.1 + openapi-types: 12.1.3 + p-retry: 4.6.2 + uuid: 10.0.0 + yaml: 2.5.0 + zod: 3.23.8 + zod-to-json-schema: 3.23.2(zod@3.23.8) + transitivePeerDependencies: + - encoding + - openai + optional: true + + langchainhub@0.0.11: {} + + langsmith@0.1.40(@langchain/core@0.2.20(langchain@0.2.12(@aws-sdk/credential-provider-node@3.623.0)(@browserbasehq/sdk@1.4.2)(@notionhq/client@2.2.15)(@pinecone-database/pinecone@2.2.2)(assemblyai@4.6.1)(axios@1.7.3)(chromadb@1.8.1(openai@4.54.0))(fast-xml-parser@4.4.1)(ignore@5.3.1)(mammoth@1.8.0)(mongodb@6.8.0)(openai@4.54.0)(ws@8.18.0))(openai@4.54.0))(langchain@0.2.12(@aws-sdk/credential-provider-node@3.623.0)(@browserbasehq/sdk@1.4.2)(@notionhq/client@2.2.15)(@pinecone-database/pinecone@2.2.2)(assemblyai@4.6.1)(axios@1.7.3)(chromadb@1.8.1(openai@4.54.0))(fast-xml-parser@4.4.1)(ignore@5.3.1)(mammoth@1.8.0)(mongodb@6.8.0)(openai@4.54.0)(ws@8.18.0))(openai@4.54.0): dependencies: '@types/uuid': 9.0.8 commander: 10.0.1 @@ -11481,7 +12007,21 @@ snapshots: semver: 7.6.3 uuid: 9.0.1 optionalDependencies: - '@langchain/core': 0.2.20(openai@4.54.0) + '@langchain/core': 0.2.20(langchain@0.2.12(@aws-sdk/credential-provider-node@3.623.0)(@browserbasehq/sdk@1.4.2)(@notionhq/client@2.2.15)(@pinecone-database/pinecone@2.2.2)(assemblyai@4.6.1)(axios@1.7.3)(chromadb@1.8.1(openai@4.54.0))(fast-xml-parser@4.4.1)(ignore@5.3.1)(mammoth@1.8.0)(mongodb@6.8.0)(openai@4.54.0)(ws@8.18.0))(openai@4.54.0) + langchain: 0.2.12(@aws-sdk/credential-provider-node@3.623.0)(@browserbasehq/sdk@1.4.2)(@notionhq/client@2.2.15)(@pinecone-database/pinecone@2.2.2)(assemblyai@4.6.1)(axios@1.7.3)(chromadb@1.8.1(openai@4.54.0))(fast-xml-parser@4.4.1)(ignore@5.3.1)(mammoth@1.8.0)(mongodb@6.8.0)(openai@4.54.0)(ws@8.18.0) + openai: 4.54.0(encoding@0.1.13) + + langsmith@0.1.40(@langchain/core@0.2.20(langchain@0.2.12(openai@4.54.0))(openai@4.54.0))(langchain@0.2.12(openai@4.54.0))(openai@4.54.0): + dependencies: + '@types/uuid': 9.0.8 + commander: 10.0.1 + p-queue: 6.6.2 + p-retry: 4.6.2 + semver: 7.6.3 + uuid: 9.0.1 + optionalDependencies: + '@langchain/core': 0.2.20(langchain@0.2.12(openai@4.54.0))(openai@4.54.0) + langchain: 0.2.12(openai@4.54.0) openai: 4.54.0(encoding@0.1.13) language-subtag-registry@0.3.23: {} @@ -11889,6 +12429,27 @@ snapshots: mkdirp@1.0.4: optional: true + ml-array-mean@1.1.6: + dependencies: + ml-array-sum: 1.1.6 + + ml-array-sum@1.1.6: + dependencies: + is-any-array: 2.0.1 + + ml-distance-euclidean@2.0.0: {} + + ml-distance@4.0.1: + dependencies: + ml-array-mean: 1.1.6 + ml-distance-euclidean: 2.0.0 + ml-tree-similarity: 1.0.0 + + ml-tree-similarity@1.0.0: + dependencies: + binary-search: 1.3.6 + num-sort: 2.1.0 + module-details-from-path@1.0.3: {} mongodb-connection-string-url@3.0.1: @@ -12088,6 +12649,8 @@ snapshots: set-blocking: 2.0.0 optional: true + num-sort@2.1.0: {} + number-is-nan@1.0.1: {} object-assign@4.1.1: {} @@ -12233,6 +12796,8 @@ snapshots: transitivePeerDependencies: - encoding + openapi-types@12.1.3: {} + openapi-typescript-fetch@1.1.3: {} option@0.2.4: {} @@ -13966,8 +14531,7 @@ snapshots: yaml@2.4.5: {} - yaml@2.5.0: - optional: true + yaml@2.5.0: {} yargs-parser@20.2.9: {} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 58ed21e2a..15989339b 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,4 +1,3 @@ packages: - 'packages/*' - - 'examples/ai-sdk' -# - 'examples/*' + - 'examples/*'