diff --git a/legacy/src/agentic.ts b/legacy/src/agentic.ts index 389e265b..cf638054 100644 --- a/legacy/src/agentic.ts +++ b/legacy/src/agentic.ts @@ -1,10 +1,11 @@ -import * as types from './types' -import { defaultOpenAIModel } from './constants' +import * as types from '@/types' +import { defaultOpenAIModel } from '@/constants' +import { OpenAIChatModel } from '@/llms/openai' + import { HumanFeedbackMechanism, HumanFeedbackMechanismCLI } from './human-feedback' -import { OpenAIChatModel } from './llms/openai' export class Agentic { // _taskMap: WeakMap> diff --git a/legacy/src/human-feedback.ts b/legacy/src/human-feedback.ts index 6076d9f0..dd5a838c 100644 --- a/legacy/src/human-feedback.ts +++ b/legacy/src/human-feedback.ts @@ -1,7 +1,7 @@ import { ZodRawShape, ZodTypeAny } from 'zod' -import { Agentic } from './agentic' -import { BaseTask } from './task' +import { Agentic } from '@/agentic' +import { BaseTask } from '@/task' export type HumanFeedbackType = 'confirm' | 'selectOne' | 'selectN' diff --git a/legacy/src/task.ts b/legacy/src/task.ts index cfc28370..38e5d1ad 100644 --- a/legacy/src/task.ts +++ b/legacy/src/task.ts @@ -1,7 +1,7 @@ import { ZodRawShape, ZodTypeAny } from 'zod' -import * as types from './types' -import { Agentic } from './agentic' +import * as types from '@/types' +import { Agentic } from '@/agentic' /** * A `Task` is a typed, async function call that may be non-deterministic. diff --git a/legacy/src/tools/novu.ts b/legacy/src/tools/novu.ts index ff80eb3d..9bf380f9 100644 --- a/legacy/src/tools/novu.ts +++ b/legacy/src/tools/novu.ts @@ -1,9 +1,9 @@ import { z } from 'zod' -import * as types from '../types' -import { Agentic } from '../agentic' -import { NovuClient } from '../services/novu' -import { BaseTask } from '../task' +import * as types from '@/types' +import { Agentic } from '@/agentic' +import { NovuClient } from '@/services/novu' +import { BaseTask } from '@/task' export const NovuNotificationToolInputSchema = z.object({ name: z.string(), diff --git a/legacy/test/novu.test.ts b/legacy/test/novu.test.ts index 5e48496b..125046f0 100644 --- a/legacy/test/novu.test.ts +++ b/legacy/test/novu.test.ts @@ -1,6 +1,7 @@ import test from 'ava' -import { NovuClient } from '../src/services/novu' +import { NovuClient } from '@/services/novu' + import './_utils' test('NovuClient.triggerEvent', async (t) => {