kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
feat: update example imports
rodzic
2ff3065b47
commit
a79b04399c
|
@ -1,12 +1,11 @@
|
|||
#!/usr/bin/env node
|
||||
import 'dotenv/config'
|
||||
|
||||
import { WeatherClient } from '@agentic/stdlib'
|
||||
import { createAISDKTools } from '@agentic/stdlib/ai-sdk'
|
||||
import { openai } from '@ai-sdk/openai'
|
||||
import { generateText } from 'ai'
|
||||
|
||||
import { WeatherClient } from '../../src/index.js'
|
||||
import { createAISDKTools } from '../../src/sdks/ai-sdk.js'
|
||||
|
||||
async function main() {
|
||||
const weather = new WeatherClient()
|
||||
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
#!/usr/bin/env node
|
||||
import 'dotenv/config'
|
||||
|
||||
import { DiffbotClient, SearchAndCrawl, SerpAPIClient } from '@agentic/stdlib'
|
||||
import { createDexterFunctions } from '@agentic/stdlib/dexter'
|
||||
import { ChatModel, createAIRunner } from '@dexaai/dexter'
|
||||
|
||||
import { DiffbotClient, SerpAPIClient } from '../../src/index.js'
|
||||
import { createDexterFunctions } from '../../src/sdks/dexter.js'
|
||||
import { SearchAndCrawl } from '../../src/tools/search-and-crawl.js'
|
||||
|
||||
async function main() {
|
||||
const serpapi = new SerpAPIClient()
|
||||
const diffbot = new DiffbotClient()
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
#!/usr/bin/env node
|
||||
import 'dotenv/config'
|
||||
|
||||
import { createDexterFunctions } from '@agentic/stdlib/dexter'
|
||||
import { e2b } from '@agentic/stdlib/e2b'
|
||||
import { ChatModel, createAIRunner } from '@dexaai/dexter'
|
||||
|
||||
import { createDexterFunctions } from '../../src/sdks/dexter.js'
|
||||
import { e2b } from '../../src/tools/e2b.js'
|
||||
|
||||
async function main() {
|
||||
const runner = createAIRunner({
|
||||
chatModel: new ChatModel({
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
#!/usr/bin/env node
|
||||
import 'dotenv/config'
|
||||
|
||||
import { PerigonClient, SerperClient } from '@agentic/stdlib'
|
||||
import { createDexterFunctions } from '@agentic/stdlib/dexter'
|
||||
import { ChatModel, createAIRunner } from '@dexaai/dexter'
|
||||
|
||||
import { PerigonClient, SerperClient } from '../../src/index.js'
|
||||
import { createDexterFunctions } from '../../src/sdks/dexter.js'
|
||||
|
||||
async function main() {
|
||||
const perigon = new PerigonClient()
|
||||
const serper = new SerperClient()
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
#!/usr/bin/env node
|
||||
import 'dotenv/config'
|
||||
|
||||
import { WeatherClient } from '@agentic/stdlib'
|
||||
import { createDexterFunctions } from '@agentic/stdlib/dexter'
|
||||
import { ChatModel, createAIRunner } from '@dexaai/dexter'
|
||||
|
||||
import { WeatherClient } from '../../src/index.js'
|
||||
import { createDexterFunctions } from '../../src/sdks/dexter.js'
|
||||
|
||||
async function main() {
|
||||
const weather = new WeatherClient()
|
||||
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
#!/usr/bin/env node
|
||||
import 'dotenv/config'
|
||||
|
||||
import { WeatherClient } from '@agentic/stdlib'
|
||||
import { createGenkitTools } from '@agentic/stdlib/genkit'
|
||||
import { generate } from '@genkit-ai/ai'
|
||||
import { configureGenkit } from '@genkit-ai/core'
|
||||
import { gpt4o, openAI } from 'genkitx-openai'
|
||||
|
||||
import { WeatherClient } from '../../src/index.js'
|
||||
import { createGenkitTools } from '../../src/sdks/genkit.js'
|
||||
|
||||
async function main() {
|
||||
const weather = new WeatherClient()
|
||||
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
#!/usr/bin/env node
|
||||
import 'dotenv/config'
|
||||
|
||||
import { WeatherClient } from '@agentic/stdlib'
|
||||
import { createLangChainTools } from '@agentic/stdlib/langchain'
|
||||
import { ChatPromptTemplate } from '@langchain/core/prompts'
|
||||
import { ChatOpenAI } from '@langchain/openai'
|
||||
import { AgentExecutor, createToolCallingAgent } from 'langchain/agents'
|
||||
|
||||
import { WeatherClient } from '../../src/index.js'
|
||||
import { createLangChainTools } from '../../src/sdks/langchain.js'
|
||||
|
||||
async function main() {
|
||||
const weather = new WeatherClient()
|
||||
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
#!/usr/bin/env node
|
||||
import 'dotenv/config'
|
||||
|
||||
import { WeatherClient } from '@agentic/stdlib'
|
||||
import { createLlamaIndexTools } from '@agentic/stdlib/llamaindex'
|
||||
import { OpenAI, OpenAIAgent } from 'llamaindex'
|
||||
|
||||
import { WeatherClient } from '../../src/index.js'
|
||||
import { createLlamaIndexTools } from '../../src/sdks/llamaindex.js'
|
||||
|
||||
async function main() {
|
||||
const weather = new WeatherClient()
|
||||
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
#!/usr/bin/env node
|
||||
import 'dotenv/config'
|
||||
|
||||
import { assert, WeatherClient } from '@agentic/stdlib'
|
||||
import OpenAI from 'openai'
|
||||
|
||||
import { assert, WeatherClient } from '../../src/index.js'
|
||||
|
||||
async function main() {
|
||||
const weather = new WeatherClient()
|
||||
const openai = new OpenAI()
|
||||
|
|
|
@ -24,19 +24,20 @@
|
|||
"test:typecheck": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ai-sdk/openai": "^0.0.18",
|
||||
"@dexaai/dexter": "^2.0.3",
|
||||
"@agentic/stdlib": "workspace:*",
|
||||
"@ai-sdk/openai": "^0.0.24",
|
||||
"@dexaai/dexter": "^2.1.0",
|
||||
"@genkit-ai/ai": "^0.5.2",
|
||||
"@genkit-ai/core": "^0.5.2",
|
||||
"@instructor-ai/instructor": "^1.3.0",
|
||||
"@langchain/core": "^0.2.5",
|
||||
"@langchain/openai": "^0.1.1",
|
||||
"ai": "^3.1.22",
|
||||
"@langchain/core": "^0.2.6",
|
||||
"@langchain/openai": "^0.1.2",
|
||||
"ai": "^3.1.30",
|
||||
"dotenv": "^16.4.5",
|
||||
"genkitx-openai": "^0.9.0",
|
||||
"langchain": "^0.2.4",
|
||||
"llamaindex": "^0.3.15",
|
||||
"openai": "^4.47.3",
|
||||
"zod": "^3.23.3"
|
||||
"genkitx-openai": "^0.10.0",
|
||||
"langchain": "^0.2.5",
|
||||
"llamaindex": "^0.3.16",
|
||||
"openai": "^4.49.0",
|
||||
"zod": "^3.23.8"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"extends": "../tsconfig.json",
|
||||
"include": ["ai-sdk", "dexter"]
|
||||
"include": ["ai-sdk", "dexter", "genkit", "langchain", "llamaindex", "openai"]
|
||||
}
|
||||
|
|
|
@ -133,10 +133,10 @@
|
|||
"@dexaai/dexter": "^2.0.3",
|
||||
"@e2b/code-interpreter": "^0.0.7",
|
||||
"@genkit-ai/ai": "^0.5.2",
|
||||
"@langchain/core": "^0.2.5",
|
||||
"ai": "^3.1.22",
|
||||
"@langchain/core": "^0.2.6",
|
||||
"ai": "^3.1.30",
|
||||
"expr-eval": "^2.0.2",
|
||||
"llamaindex": "^0.3.15",
|
||||
"llamaindex": "^0.3.16",
|
||||
"twitter-api-sdk": "^1.2.1"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
|
|
1798
pnpm-lock.yaml
1798
pnpm-lock.yaml
Plik diff jest za duży
Load Diff
|
@ -6,6 +6,7 @@ export * from './message.js'
|
|||
export * from './nango.js'
|
||||
export * from './parse-structured-output.js'
|
||||
export * from './services/index.js'
|
||||
export * from './tools/search-and-crawl.js'
|
||||
export type * from './types.js'
|
||||
export * from './utils.js'
|
||||
export * from './zod-to-json-schema.js'
|
||||
|
|
Ładowanie…
Reference in New Issue