diff --git a/examples/basic.ts b/examples/basic.ts index 6873bab..399ee42 100644 --- a/examples/basic.ts +++ b/examples/basic.ts @@ -2,7 +2,7 @@ import 'dotenv/config' import { OpenAIClient } from 'openai-fetch' import { z } from 'zod' -import { Agentic } from '../src' +import { Agentic } from '@/agentic' async function main() { const openai = new OpenAIClient({ apiKey: process.env.OPENAI_API_KEY! }) diff --git a/examples/facts.ts b/examples/facts.ts index 54c33e5..7cf8977 100644 --- a/examples/facts.ts +++ b/examples/facts.ts @@ -2,7 +2,7 @@ import 'dotenv/config' import { OpenAIClient } from 'openai-fetch' import { z } from 'zod' -import { Agentic } from '../src' +import { Agentic } from '@/agentic' async function main() { const openai = new OpenAIClient({ apiKey: process.env.OPENAI_API_KEY! }) diff --git a/examples/llm-with-search.ts b/examples/llm-with-search.ts index d430248..fba339b 100644 --- a/examples/llm-with-search.ts +++ b/examples/llm-with-search.ts @@ -2,7 +2,7 @@ import 'dotenv/config' import { OpenAIClient } from 'openai-fetch' import { z } from 'zod' -import { Agentic, MetaphorSearchTool } from '../src' +import { Agentic, MetaphorSearchTool } from '@/index' async function main() { const openai = new OpenAIClient({ apiKey: process.env.OPENAI_API_KEY! }) diff --git a/examples/sentiment.ts b/examples/sentiment.ts index b36e3cd..de49ddb 100644 --- a/examples/sentiment.ts +++ b/examples/sentiment.ts @@ -2,7 +2,7 @@ import 'dotenv/config' import { OpenAIClient } from 'openai-fetch' import { z } from 'zod' -import { Agentic } from '../src' +import { Agentic } from '@/agentic' export async function main() { const openai = new OpenAIClient({ apiKey: process.env.OPENAI_API_KEY! }) diff --git a/scratch/examples/calc-eval.ts b/scratch/examples/calc-eval.ts index cab812e..5a73012 100644 --- a/scratch/examples/calc-eval.ts +++ b/scratch/examples/calc-eval.ts @@ -2,7 +2,8 @@ import 'dotenv/config' import { OpenAIClient } from 'openai-fetch' import { z } from 'zod' -import { Agentic } from '../src' +import { Agentic } from '@/agentic' + import { getProblems } from './fixtures/calc' export async function calcEval() { diff --git a/scratch/examples/equation-producer.ts b/scratch/examples/equation-producer.ts index 2f3362a..4995a11 100644 --- a/scratch/examples/equation-producer.ts +++ b/scratch/examples/equation-producer.ts @@ -2,7 +2,7 @@ import 'dotenv/config' import { OpenAIClient } from 'openai-fetch' import { z } from 'zod' -import { Agentic } from '../src' +import { Agentic } from '@/agentic' export async function equationProducer() { const openai = new OpenAIClient({ apiKey: process.env.OPENAI_API_KEY! }) diff --git a/scratch/examples/food-expert.ts b/scratch/examples/food-expert.ts index 360b909..cc53b5a 100644 --- a/scratch/examples/food-expert.ts +++ b/scratch/examples/food-expert.ts @@ -2,7 +2,7 @@ import 'dotenv/config' import { OpenAIClient } from 'openai-fetch' import { z } from 'zod' -import { Agentic } from '../src' +import { Agentic } from '@/agentic' // import { summaryAgent } from './summary' diff --git a/scratch/examples/human-feedback-select.ts b/scratch/examples/human-feedback-select.ts index 60c4677..37e11a2 100644 --- a/scratch/examples/human-feedback-select.ts +++ b/scratch/examples/human-feedback-select.ts @@ -2,7 +2,7 @@ import 'dotenv/config' import { OpenAIClient } from 'openai-fetch' import { z } from 'zod' -import { Agentic, HumanFeedbackSelect } from '../src' +import { Agentic, HumanFeedbackSelect } from '@/index' async function main() { const openai = new OpenAIClient({ apiKey: process.env.OPENAI_API_KEY! }) diff --git a/scratch/examples/human-feedback.ts b/scratch/examples/human-feedback.ts index d964630..5285769 100644 --- a/scratch/examples/human-feedback.ts +++ b/scratch/examples/human-feedback.ts @@ -2,7 +2,7 @@ import 'dotenv/config' import { OpenAIClient } from 'openai-fetch' import { z } from 'zod' -import { Agentic, HumanFeedbackSingle } from '../src' +import { Agentic, HumanFeedbackSingle } from '@/index' async function main() { const openai = new OpenAIClient({ apiKey: process.env.OPENAI_API_KEY! }) diff --git a/scratch/examples/json-summary.ts b/scratch/examples/json-summary.ts index cc95c0b..de68bdc 100644 --- a/scratch/examples/json-summary.ts +++ b/scratch/examples/json-summary.ts @@ -2,7 +2,7 @@ import 'dotenv/config' import { OpenAIClient } from 'openai-fetch' import { z } from 'zod' -import { Agentic } from '../src' +import { Agentic } from '@/agentic' export async function main() { const openai = new OpenAIClient({ apiKey: process.env.OPENAI_API_KEY! }) diff --git a/scratch/examples/misc.ts b/scratch/examples/misc.ts index 37afdf3..e227b06 100644 --- a/scratch/examples/misc.ts +++ b/scratch/examples/misc.ts @@ -2,7 +2,7 @@ import 'dotenv/config' import { OpenAIClient } from 'openai-fetch' import { z } from 'zod' -import { Agentic } from '../src' +import { Agentic } from '@/agentic' async function main() { const openai = new OpenAIClient({ apiKey: process.env.OPENAI_API_KEY! }) diff --git a/scratch/examples/tools.ts b/scratch/examples/tools.ts index 5072f4f..e64716b 100644 --- a/scratch/examples/tools.ts +++ b/scratch/examples/tools.ts @@ -2,13 +2,13 @@ import 'dotenv/config' import { OpenAIClient } from 'openai-fetch' import { z } from 'zod' -import { Agentic, MetaphorSearchTool } from '../src' +import { Agentic, MetaphorSearchTool } from '@/index' async function main() { const openai = new OpenAIClient({ apiKey: process.env.OPENAI_API_KEY! }) const $ = new Agentic({ openai }) - const metaphorSearch = new MetaphorSearchTool() + const metaphorSearch = new MetaphorSearchTool({ agentic: $ }) const results = await metaphorSearch.call({ query: 'probability of AI doom:', numResults: 5 diff --git a/scratch/feedback.ts b/scratch/feedback.ts index 93cefc0..51b0e16 100644 --- a/scratch/feedback.ts +++ b/scratch/feedback.ts @@ -3,8 +3,8 @@ import editor from '@inquirer/editor' import select from '@inquirer/select' import { ZodTypeAny, z } from 'zod' -import * as types from '../types' -import { BaseTask } from '../task' +import * as types from '@/types' +import { BaseTask } from '@/task' /** * Actions the user can take in the feedback selection prompt.