Skip to content

Commit 9afc9a9

Browse files
Merge pull request #657 from transitive-bullshit/feature/monorepo
2 parents b7661e3 + 2188fb0 commit 9afc9a9

File tree

272 files changed

+5920
-3702
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

272 files changed

+5920
-3702
lines changed

.changeset/config.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "main",
9+
"privatePackages": false,
10+
"updateInternalDependencies": "patch",
11+
"ignore": []
12+
}

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ node_modules
1010

1111
# next.js
1212
.next/
13-
out/
1413

1514
# production
1615
build/
@@ -29,6 +28,9 @@ yarn-error.log*
2928
# local env files
3029
.env*.local
3130

31+
# turbo
32+
.turbo
33+
3234
# vercel
3335
.vercel
3436

examples/ai-sdk/browserbase.ts examples/ai-sdk/bin/browserbase.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ async function main() {
1212
console.log(browserTool.parameters)
1313

1414
const result = await generateText({
15-
model: openai('gpt-4o'),
15+
model: openai('gpt-4o-mini'),
1616
tools: { browserTool },
1717
toolChoice: 'required',
1818
temperature: 0,

examples/ai-sdk/weather.ts examples/ai-sdk/bin/weather.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
#!/usr/bin/env node
22
import 'dotenv/config'
33

4-
import { WeatherClient } from '@agentic/stdlib'
5-
import { createAISDKTools } from '@agentic/stdlib/ai-sdk'
4+
import { createAISDKTools } from '@agentic/ai-sdk'
5+
import { WeatherClient } from '@agentic/weather'
66
import { openai } from '@ai-sdk/openai'
77
import { generateText } from 'ai'
88

99
async function main() {
1010
const weather = new WeatherClient()
1111

1212
const result = await generateText({
13-
model: openai('gpt-4o'),
13+
model: openai('gpt-4o-mini'),
1414
tools: createAISDKTools(weather),
1515
toolChoice: 'required',
1616
temperature: 0,

examples/ai-sdk/package.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "agentic-examples-ai-sdk",
3+
"type": "module",
4+
"private": true,
5+
"scripts": {
6+
"test": "run-s test:*",
7+
"test:lint": "eslint .",
8+
"test:typecheck": "tsc --noEmit"
9+
},
10+
"dependencies": {
11+
"@agentic/ai-sdk": "workspace:*",
12+
"@agentic/core": "workspace:*",
13+
"@agentic/weather": "workspace:*",
14+
"@ai-sdk/openai": "^0.0.24",
15+
"@browserbasehq/sdk": "^1.4.2",
16+
"ai": "^3.1.30",
17+
"openai": "^4.49.0",
18+
"zod": "^3.23.8"
19+
},
20+
"devDependencies": {
21+
"@agentic/tsconfig": "workspace:*"
22+
}
23+
}

examples/ai-sdk/tsconfig.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": "@agentic/tsconfig/base.json",
3+
"include": ["bin"],
4+
"exclude": ["node_modules", "dist"]
5+
}

examples/dexter/analyze.ts examples/dexter/bin/analyze.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
#!/usr/bin/env node
22
import 'dotenv/config'
33

4+
import { createDexterFunctions } from '@agentic/dexter'
45
import { DiffbotClient, SearchAndCrawl, SerpAPIClient } from '@agentic/stdlib'
5-
import { createDexterFunctions } from '@agentic/stdlib/dexter'
66
import { ChatModel, createAIRunner } from '@dexaai/dexter'
77

88
async function main() {
99
const serpapi = new SerpAPIClient()
1010
const diffbot = new DiffbotClient()
11+
1112
const searchAndCrawl = new SearchAndCrawl({ serpapi, diffbot })
1213

1314
const runner = createAIRunner({
1415
chatModel: new ChatModel({
15-
params: { model: 'gpt-4o', temperature: 0 }
16+
params: { model: 'gpt-4o-mini', temperature: 0 }
1617
// debug: true
1718
}),
1819
functions: createDexterFunctions(searchAndCrawl),

examples/dexter/code-interpreter.ts examples/dexter/bin/code-interpreter.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#!/usr/bin/env node
22
import 'dotenv/config'
33

4-
import { createDexterFunctions } from '@agentic/stdlib/dexter'
5-
import { e2b } from '@agentic/stdlib/e2b'
4+
import { createDexterFunctions } from '@agentic/dexter'
5+
import { e2b } from '@agentic/e2b'
66
import { ChatModel, createAIRunner } from '@dexaai/dexter'
77

88
async function main() {
99
const runner = createAIRunner({
1010
chatModel: new ChatModel({
11-
params: { model: 'gpt-4o', temperature: 0 },
11+
params: { model: 'gpt-4o-mini', temperature: 0 },
1212
debug: true
1313
}),
1414
functions: createDexterFunctions(e2b)

examples/dexter/election-news-chain.ts examples/dexter/bin/election-news-chain.ts

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
#!/usr/bin/env node
22
import 'dotenv/config'
33

4-
import {
5-
createAIChain,
6-
Msg,
7-
PerigonClient,
8-
SerperClient
9-
} from '@agentic/stdlib'
4+
import { createAIChain, Msg } from '@agentic/core'
5+
import { PerigonClient } from '@agentic/perigon'
6+
import { SerperClient } from '@agentic/serper'
107
import { ChatModel } from '@dexaai/dexter'
118

129
async function main() {
1310
const perigon = new PerigonClient()
1411
const serper = new SerperClient()
1512

1613
const chatModel = new ChatModel({
17-
params: { model: 'gpt-4o', temperature: 0 },
14+
params: { model: 'gpt-4o-mini', temperature: 0 },
1815
debug: true
1916
})
2017

examples/dexter/election-news.ts examples/dexter/bin/election-news.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/usr/bin/env node
22
import 'dotenv/config'
33

4-
import { PerigonClient, SerperClient } from '@agentic/stdlib'
5-
import { createDexterFunctions } from '@agentic/stdlib/dexter'
4+
import { createDexterFunctions } from '@agentic/dexter'
5+
import { PerigonClient } from '@agentic/perigon'
6+
import { SerperClient } from '@agentic/serper'
67
import { ChatModel, createAIRunner } from '@dexaai/dexter'
78

89
async function main() {
@@ -11,7 +12,7 @@ async function main() {
1112

1213
const runner = createAIRunner({
1314
chatModel: new ChatModel({
14-
params: { model: 'gpt-4o', temperature: 0 }
15+
params: { model: 'gpt-4o-mini', temperature: 0 }
1516
// debug: true
1617
}),
1718
functions: createDexterFunctions(

examples/dexter/extract-user.ts examples/dexter/bin/extract-user.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env node
22
import 'dotenv/config'
33

4-
import { extractObject, Msg } from '@agentic/stdlib'
4+
import { extractObject, Msg } from '@agentic/core'
55
import { ChatModel } from '@dexaai/dexter'
66
import { z } from 'zod'
77

examples/dexter/weather.ts examples/dexter/bin/weather.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
#!/usr/bin/env node
22
import 'dotenv/config'
33

4-
import { WeatherClient } from '@agentic/stdlib'
5-
import { createDexterFunctions } from '@agentic/stdlib/dexter'
4+
import { createDexterFunctions } from '@agentic/dexter'
5+
import { WeatherClient } from '@agentic/weather'
66
import { ChatModel, createAIRunner } from '@dexaai/dexter'
77

88
async function main() {
99
const weather = new WeatherClient()
1010

1111
const runner = createAIRunner({
1212
chatModel: new ChatModel({
13-
params: { model: 'gpt-4o', temperature: 0 }
13+
params: { model: 'gpt-4o-mini', temperature: 0 }
1414
// debug: true
1515
}),
1616
functions: createDexterFunctions(weather),

examples/dexter/package.json

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "agentic-examples-dexter",
3+
"type": "module",
4+
"private": true,
5+
"scripts": {
6+
"test": "run-s test:*",
7+
"test:lint": "eslint .",
8+
"test:typecheck": "tsc --noEmit"
9+
},
10+
"dependencies": {
11+
"@agentic/core": "workspace:*",
12+
"@agentic/dexter": "workspace:*",
13+
"@agentic/e2b": "workspace:*",
14+
"@agentic/perigon": "workspace:*",
15+
"@agentic/serper": "workspace:*",
16+
"@agentic/stdlib": "workspace:*",
17+
"@agentic/weather": "workspace:*",
18+
"@dexaai/dexter": "^2.1.0",
19+
"zod": "^3.23.8"
20+
},
21+
"devDependencies": {
22+
"@agentic/tsconfig": "workspace:*"
23+
}
24+
}

examples/dexter/tsconfig.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": "@agentic/tsconfig/base.json",
3+
"include": ["bin"],
4+
"exclude": ["node_modules", "dist"]
5+
}

examples/genkit/weather.ts examples/genkit/bin/weather.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env node
22
import 'dotenv/config'
33

4+
import { createGenkitTools } from '@agentic/genkit'
45
import { WeatherClient } from '@agentic/stdlib'
5-
import { createGenkitTools } from '@agentic/stdlib/genkit'
66
import { generate } from '@genkit-ai/ai'
77
import { configureGenkit } from '@genkit-ai/core'
88
import { gpt4o, openAI } from 'genkitx-openai'

examples/genkit/package.json

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "agentic-examples-genkit",
3+
"type": "module",
4+
"private": true,
5+
"scripts": {
6+
"test": "run-s test:*",
7+
"test:lint": "eslint .",
8+
"test:typecheck": "tsc --noEmit"
9+
},
10+
"dependencies": {
11+
"@agentic/core": "workspace:*",
12+
"@agentic/genkit": "workspace:*",
13+
"@agentic/stdlib": "workspace:*",
14+
"@genkit-ai/ai": "^0.5.9",
15+
"@genkit-ai/core": "^0.5.9",
16+
"genkitx-openai": "^0.10.0",
17+
"zod": "^3.23.8"
18+
},
19+
"devDependencies": {
20+
"@agentic/tsconfig": "workspace:*"
21+
}
22+
}

examples/genkit/tsconfig.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": "@agentic/tsconfig/base.json",
3+
"include": ["bin"],
4+
"exclude": ["node_modules", "dist"]
5+
}

examples/langchain/weather.ts examples/langchain/bin/weather.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env node
22
import 'dotenv/config'
33

4+
import { createLangChainTools } from '@agentic/langchain'
45
import { WeatherClient } from '@agentic/stdlib'
5-
import { createLangChainTools } from '@agentic/stdlib/langchain'
66
import { ChatPromptTemplate } from '@langchain/core/prompts'
77
import { ChatOpenAI } from '@langchain/openai'
88
import { AgentExecutor, createToolCallingAgent } from 'langchain/agents'
@@ -12,7 +12,7 @@ async function main() {
1212

1313
const tools = createLangChainTools(weather)
1414
const agent = createToolCallingAgent({
15-
llm: new ChatOpenAI({ model: 'gpt-4o', temperature: 0 }),
15+
llm: new ChatOpenAI({ model: 'gpt-4o-mini', temperature: 0 }),
1616
tools,
1717
prompt: ChatPromptTemplate.fromMessages([
1818
['system', 'You are a helpful assistant. Be as concise as possible.'],

examples/langchain/package.json

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "agentic-examples-langchain",
3+
"type": "module",
4+
"private": true,
5+
"scripts": {
6+
"test": "run-s test:*",
7+
"test:lint": "eslint .",
8+
"test:typecheck": "tsc --noEmit"
9+
},
10+
"dependencies": {
11+
"@agentic/core": "workspace:*",
12+
"@agentic/langchain": "workspace:*",
13+
"@agentic/stdlib": "workspace:*",
14+
"@langchain/core": "^0.2.20",
15+
"@langchain/openai": "^0.2.5",
16+
"langchain": "^0.2.12",
17+
"zod": "^3.23.8"
18+
},
19+
"devDependencies": {
20+
"@agentic/tsconfig": "workspace:*"
21+
}
22+
}

examples/langchain/tsconfig.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": "@agentic/tsconfig/base.json",
3+
"include": ["bin"],
4+
"exclude": ["node_modules", "dist"]
5+
}
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
#!/usr/bin/env node
22
import 'dotenv/config'
33

4+
import { createLlamaIndexTools } from '@agentic/llamaindex'
45
import { WeatherClient } from '@agentic/stdlib'
5-
import { createLlamaIndexTools } from '@agentic/stdlib/llamaindex'
66
import { OpenAI, OpenAIAgent } from 'llamaindex'
77

88
async function main() {
99
const weather = new WeatherClient()
1010

1111
const tools = createLlamaIndexTools(weather)
1212
const agent = new OpenAIAgent({
13-
llm: new OpenAI({ model: 'gpt-4o', temperature: 0 }),
13+
llm: new OpenAI({ model: 'gpt-4o-mini', temperature: 0 }),
1414
systemPrompt: 'You are a helpful assistant. Be as concise as possible.',
1515
tools
1616
})
@@ -19,7 +19,7 @@ async function main() {
1919
message: 'What is the weather in San Francisco?'
2020
})
2121

22-
console.log(response.response.message.content)
22+
console.log(response.message.content)
2323
}
2424

2525
await main()

examples/llamaindex/package.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "agentic-examples-llamaindex",
3+
"type": "module",
4+
"private": true,
5+
"scripts": {
6+
"test": "run-s test:*",
7+
"test:lint": "eslint .",
8+
"test:typecheck": "tsc --noEmit"
9+
},
10+
"dependencies": {
11+
"@agentic/core": "workspace:*",
12+
"@agentic/llamaindex": "workspace:*",
13+
"@agentic/stdlib": "workspace:*",
14+
"llamaindex": "^0.5.13",
15+
"zod": "^3.23.8"
16+
},
17+
"devDependencies": {
18+
"@agentic/tsconfig": "workspace:*"
19+
}
20+
}

examples/llamaindex/tsconfig.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": "@agentic/tsconfig/base.json",
3+
"include": ["bin"],
4+
"exclude": ["node_modules", "dist"]
5+
}

0 commit comments

Comments
 (0)