🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
refactor(agent): Move in-app agent feature to EE (#14127)
Ben Bachem31344c2ece68
diff --git a/web/src/__tests__/server/in-app-agent-persistence.servertest.ts b/web/src/__tests__/server/in-app-agent-persistence.servertest.tsindex d961c76521..76e0b08add 100644--- a/web/src/__tests__/server/in-app-agent-persistence.servertest.ts+++ b/web/src/__tests__/server/in-app-agent-persistence.servertest.ts@@ -2,15 +2,16 @@ import type { Session } from "next-auth";import { EventType } from "@ag-ui/core";import { randomUUID } from "crypto";+import type { Plan } from "@langfuse/shared";import { prisma } from "@langfuse/shared/src/db";import { createOrgProjectAndApiKey } from "@langfuse/shared/src/server";import { env } from "@/src/env.mjs";import {createInAppAgentConversationId,createInAppAgentRunId,-} from "@/src/features/in-app-agent/ids";-import type { AgUiEvent } from "@/src/features/in-app-agent/schema";-import { inAppAgentRouter } from "@/src/features/in-app-agent/server/router";+} from "@/src/ee/features/in-app-agent/ids";+import type { AgUiEvent } from "@/src/ee/features/in-app-agent/schema";+import { inAppAgentRouter } from "@/src/ee/features/in-app-agent/server/router";import {createRun,ensureOwnedConversation,@@ -19,7 +20,7 @@ import {replaceRunEvents,shouldFlushPersistedEvent,toPersistableAgentEvent,-} from "@/src/features/in-app-agent/server/persistence";+} from "@/src/ee/features/in-app-agent/server/persistence";import { createInnerTRPCContext } from "@/src/server/api/trpc";describe("in-app agent persistence", () => {@@ -33,7 +34,10 @@ describe("in-app agent persistence", () => {(env as any).NEXT_PUBLIC_LANGFUSE_CLOUD_REGION = originalCloudRegion;});- const createCaller = async (userId = `user-${randomUUID()}`) => {+ const createCaller = async (+ userId = `user-${randomUUID()}`,+ plan: Plan = "cloud:hobby",+ ) => {const setup = await createOrgProjectAndApiKey();await prisma.organization.update({@@ -58,7 +62,7 @@ describe("in-app agent persistence", () => {{id: setup.orgId,role: "OWNER",- plan: "cloud:hobby",+ plan,cloudConfig: undefined,name: "Test Organization",metadata: {},@@ -122,6 +126,20 @@ describe("in-app agent persistence", () => {mcpApiKeyId: "api-key-id-1",});+ it("rejects users without the in-app agent entitlement", async () => {+ const { caller, projectId } = await createCaller(+ `user-${randomUUID()}`,+ "oss",+ );++ await expect(caller.listConversations({ projectId })).rejects.toMatchObject(+ {+ code: "FORBIDDEN",+ message: expect.stringContaining("in-app-agent"),+ },+ );+ });+const startCompactRun = async (params: {projectId: string;conversationId: string;diff --git a/web/src/__tests__/server/in-app-agent-stream.servertest.ts b/web/src/__tests__/server/in-app-agent-stream.servertest.tsindex 8f6a3ab884..d11d54eeb8 100644--- a/web/src/__tests__/server/in-app-agent-stream.servertest.ts+++ b/web/src/__tests__/server/in-app-agent-stream.servertest.ts@@ -3,7 +3,7 @@ import { HttpAgent } from "@ag-ui/client";import { Agent } from "@mastra/core/agent";import { describe, expect, it, vi } from "vitest";-import type { AgUiEvent } from "@/src/features/in-app-agent/schema";+import type { AgUiEvent } from "@/src/ee/features/in-app-agent/schema";const adapterEvents = vi.hoisted(() => ({items: [] as AgUiEvent[],@@ -78,7 +78,7 @@ vi.mock("@mastra/mcp", () => ({}),}));-vi.mock("@/src/features/in-app-agent/server/instrumentation", () => ({+vi.mock("@/src/ee/features/in-app-agent/server/instrumentation", () => ({createInAppAgentInstrumentation:instrumentationMocks.createInAppAgentInstrumentation,}));@@ -90,7 +90,7 @@ describe("createAgUiStream", () => {it("serializes valid events including adapter message snapshots", async () => {const { createAgUiStream } =- await import("@/src/features/in-app-agent/server/agent");+ await import("@/src/ee/features/in-app-agent/server/agent");const input = {threadId: "conversation-1",runId: "run-1",@@ -242,7 +242,7 @@ describe("createAgUiStream", () => {it("lets HttpAgent subscribers observe streamed run errors", async () => {const { createAgUiStream } =- await import("@/src/features/in-app-agent/server/agent");+ await import("@/src/ee/features/in-app-agent/server/agent");const input = {threadId: "conversation-1",runId: "run-1",diff --git a/web/src/__tests__/server/unit/in-app-agent-instrumentation.servertest.ts b/web/src/__tests__/server/unit/in-app-agent-instrumentation.servertest.tsindex 724c259e02..3e53c395b9 100644--- a/web/src/__tests__/server/unit/in-app-agent-instrumentation.servertest.ts+++ b/web/src/__tests__/server/unit/in-app-agent-instrumentation.servertest.ts@@ -1,7 +1,7 @@import { EventType } from "@ag-ui/core";-import type { AgUiRunAgentInput } from "@/src/features/in-app-agent/schema";-import { InAppAgentInstrumentation } from "@/src/features/in-app-agent/server/instrumentation";+import type { AgUiRunAgentInput } from "@/src/ee/features/in-app-agent/schema";+import { InAppAgentInstrumentation } from "@/src/ee/features/in-app-agent/server/instrumentation";const traceId = "0123456789abcdef0123456789abcdef";diff --git a/web/src/app/api/in-app-agent/route.ts b/web/src/app/api/in-app-agent/route.tsindex d69336f4d4..52566020e6 100644--- a/web/src/app/api/in-app-agent/route.ts+++ b/web/src/app/api/in-app-agent/route.ts@@ -1,4 +1,4 @@-import inAppAgentHandler from "@/src/features/in-app-agent/server/handler";+import inAppAgentHandler from "@/src/ee/features/in-app-agent/server/handler";export const dynamic = "force-dynamic";export const runtime = "nodejs";diff --git a/web/src/components/nav/in-app-ai-agent-button.tsx b/web/src/components/nav/in-app-ai-agent-button.tsxindex fbed2e93f8..60d3a94965 100644--- a/web/src/components/nav/in-app-ai-agent-button.tsx+++ b/web/src/components/nav/in-app-ai-agent-button.tsx@@ -18,8 +18,9 @@ import {DialogTitle,} from "@/src/components/ui/dialog";import { SidebarMenuButton } from "@/src/components/ui/sidebar";-import { ControlledInAppAgentWindow } from "@/src/features/in-app-agent/components";-import { useInAppAiAgent } from "@/src/features/in-app-agent/components/InAppAiAgentProvider";+import { ControlledInAppAgentWindow } from "@/src/ee/features/in-app-agent/components";+import { useInAppAiAgent } from "@/src/ee/features/in-app-agent/components/InAppAiAgentProvider";+import { useHasEntitlement } from "@/src/features/entitlements/hooks";import { AIFeaturesDisabledNotice } from "@/src/features/organizations/components/AIFeaturesDisabledNotice";import { useQueryProjectOrOrganization } from "@/src/features/projects/hooks";import { useSupportDrawer } from "@/src/features/support-chat/SupportDrawerProvider";@@ -29,6 +30,7 @@ export const InAppAiAgentButton = () => {const { organization } = useQueryProjectOrOrganization();const { isAvailable, open, setOpen, isExpanded, setIsExpanded } =useInAppAiAgent();+ const hasInAppAgentEntitlement = useHasEntitlement("in-app-agent");const { setOpen: setSupportDrawerOpen } = useSupportDrawer();const buttonRef = useRef<HTMLButtonElement>(null);const panelRef = useRef<HTMLDivElement>(null);@@ -99,7 +101,7 @@ export const InAppAiAgentButton = () => {};}, [isExpanded, open]);- if (!isAvailable) {+ if (!isAvailable || !hasInAppAgentEntitlement) {return null;}diff --git a/web/src/components/nav/support-button.tsx b/web/src/components/nav/support-button.tsxindex 44552460f1..9b92d8349a 100644--- a/web/src/components/nav/support-button.tsx+++ b/web/src/components/nav/support-button.tsx@@ -1,7 +1,7 @@import { LifeBuoy } from "lucide-react";import { SidebarMenuButton, useSidebar } from "@/src/components/ui/sidebar";import { useSupportDrawer } from "@/src/features/support-chat/SupportDrawerProvider";-import { useInAppAiAgent } from "@/src/features/in-app-agent/components/InAppAiAgentProvider";+import { useInAppAiAgent } from "@/src/ee/features/in-app-agent/components/InAppAiAgentProvider";export const SupportButton = () => {const { setOpen: setSupportDrawerOpen } = useSupportDrawer();diff --git a/web/src/features/in-app-agent/AGENTS.md b/web/src/ee/features/in-app-agent/AGENTS.mdsimilarity index 100%rename from web/src/features/in-app-agent/AGENTS.mdrename to web/src/ee/features/in-app-agent/AGENTS.mddiff --git a/web/src/features/in-app-agent/components/ControlledInAppAgentWindow.tsx b/web/src/ee/features/in-app-agent/components/ControlledInAppAgentWindow.tsxsimilarity index 99%rename from web/src/features/in-app-agent/components/ControlledInAppAgentWindow.tsxrename to web/src/ee/features/in-app-agent/components/ControlledInAppAgentWindow.tsxindex fdcb326149..899e4e4ca7 100644--- a/web/src/features/in-app-agent/components/ControlledInAppAgentWindow.tsx+++ b/web/src/ee/features/in-app-agent/components/ControlledInAppAgentWindow.tsx@@ -11,7 +11,7 @@ import { useInAppAiAgent } from "./InAppAiAgentProvider";import {AgUiMessageSchema,type AgUiMessage,-} from "@/src/features/in-app-agent/schema";+} from "@/src/ee/features/in-app-agent/schema";type ControlledInAppAgentWindowProps =| {diff --git a/web/src/features/in-app-agent/components/InAppAgentMessage.stories.tsx b/web/src/ee/features/in-app-agent/components/InAppAgentMessage.stories.tsxsimilarity index 98%rename from web/src/features/in-app-agent/components/InAppAgentMessage.stories.tsxrename to web/src/ee/features/in-app-agent/components/InAppAgentMessage.stories.tsxindex 723bfcabef..f13b2cd57b 100644--- a/web/src/features/in-app-agent/components/InAppAgentMessage.stories.tsx+++ b/web/src/ee/features/in-app-agent/components/InAppAgentMessage.stories.tsx@@ -1,4 +1,4 @@-import preview from "../../../../.storybook/preview";+import preview from "../../../../../.storybook/preview";import { InAppAgentMessage } from "./InAppAgentMessage";const meta = preview.meta({diff --git a/web/src/features/in-app-agent/components/InAppAgentMessage.tsx b/web/src/ee/features/in-app-agent/components/InAppAgentMessage.tsxsimilarity index 100%rename from web/src/features/in-app-agent/components/InAppAgentMessage.tsxrename to web/src/ee/features/in-app-agent/components/InAppAgentMessage.tsxdiff --git a/web/src/features/in-app-agent/components/InAppAgentWindow.stories.tsx b/web/src/ee/features/in-app-agent/components/InAppAgentWindow.stories.tsxsimilarity index 99%rename from web/src/features/in-app-agent/components/InAppAgentWindow.stories.tsxrename to web/src/ee/features/in-app-agent/components/InAppAgentWindow.stories.tsxindex 7376167ca5..cc973e5bf5 100644--- a/web/src/features/in-app-agent/components/InAppAgentWindow.stories.tsx+++ b/web/src/ee/features/in-app-agent/components/InAppAgentWindow.stories.tsx@@ -1,4 +1,4 @@-import preview from "../../../../.storybook/preview";+import preview from "../../../../../.storybook/preview";import { useArgs } from "storybook/preview-api";import { fn } from "storybook/test";import {diff --git a/web/src/features/in-app-agent/components/InAppAgentWindow.tsx b/web/src/ee/features/in-app-agent/components/InAppAgentWindow.tsxsimilarity index 100%rename from web/src/features/in-app-agent/components/InAppAgentWindow.tsxrename to web/src/ee/features/in-app-agent/components/InAppAgentWindow.tsxdiff --git a/web/src/features/in-app-agent/components/InAppAiAgentProvider.tsx b/web/src/ee/features/in-app-agent/components/InAppAiAgentProvider.tsxsimilarity index 98%rename from web/src/features/in-app-agent/components/InAppAiAgentProvider.tsxrename to web/src/ee/features/in-app-agent/components/InAppAiAgentProvider.tsxindex e485f15dea..b4f39477d7 100644--- a/web/src/features/in-app-agent/components/InAppAiAgentProvider.tsx+++ b/web/src/ee/features/in-app-agent/components/InAppAiAgentProvider.tsx@@ -18,12 +18,13 @@ import { env } from "@/src/env.mjs";import {createInAppAgentConversationId,createInAppAgentMessageId,-} from "@/src/features/in-app-agent/ids";+} from "@/src/ee/features/in-app-agent/ids";import {AgUiMessageSchema,type AgUiMessage,type InAppAgentRuntimeState,-} from "@/src/features/in-app-agent/schema";+} from "@/src/ee/features/in-app-agent/schema";+import { useHasEntitlement } from "@/src/features/entitlements/hooks";import { showErrorToast } from "@/src/features/notifications/showErrorToast";import { api } from "@/src/utils/api";@@ -102,8 +103,9 @@ export function InAppAiAgentProvider({const routerProjectId = router.query.projectId;const projectId =typeof routerProjectId === "string" ? routerProjectId : undefined;+ const hasInAppAgentEntitlement = useHasEntitlement("in-app-agent");- if (!projectId) {+ if (!projectId || !hasInAppAgentEntitlement) {return <>{children}</>;}diff --git a/web/src/features/in-app-agent/components/index.ts b/web/src/ee/features/in-app-agent/components/index.tssimilarity index 100%rename from web/src/features/in-app-agent/components/index.tsrename to web/src/ee/features/in-app-agent/components/index.tsdiff --git a/web/src/features/in-app-agent/ids.ts b/web/src/ee/features/in-app-agent/ids.tssimilarity index 100%rename from web/src/features/in-app-agent/ids.tsrename to web/src/ee/features/in-app-agent/ids.tsdiff --git a/web/src/features/in-app-agent/schema.ts b/web/src/ee/features/in-app-agent/schema.tssimilarity index 100%rename from web/src/features/in-app-agent/schema.tsrename to web/src/ee/features/in-app-agent/schema.tsdiff --git a/web/src/features/in-app-agent/server/agent.ts b/web/src/ee/features/in-app-agent/server/agent.tssimilarity index 98%rename from web/src/features/in-app-agent/server/agent.tsrename to web/src/ee/features/in-app-agent/server/agent.tsindex d08931b143..55af77870b 100644--- a/web/src/features/in-app-agent/server/agent.ts+++ b/web/src/ee/features/in-app-agent/server/agent.ts@@ -8,9 +8,9 @@ import { MCPClient } from "@mastra/mcp";import type {AgUiEvent,AgUiRunAgentInput,-} from "@/src/features/in-app-agent/schema";-import type { InAppAgentTracingConfig } from "@/src/features/in-app-agent/server/instrumentation";-import { createInAppAgentInstrumentation } from "@/src/features/in-app-agent/server/instrumentation";+} from "@/src/ee/features/in-app-agent/schema";+import type { InAppAgentTracingConfig } from "@/src/ee/features/in-app-agent/server/instrumentation";+import { createInAppAgentInstrumentation } from "@/src/ee/features/in-app-agent/server/instrumentation";import { logger } from "@langfuse/shared/src/server";const ASSISTANT_TITLE = "Langfuse Assistant";diff --git a/web/src/features/in-app-agent/server/eventCompaction.ts b/web/src/ee/features/in-app-agent/server/eventCompaction.tssimilarity index 95%rename from web/src/features/in-app-agent/server/eventCompaction.tsrename to web/src/ee/features/in-app-agent/server/eventCompaction.tsindex 7bb07ce54c..46278b7036 100644--- a/web/src/features/in-app-agent/server/eventCompaction.ts+++ b/web/src/ee/features/in-app-agent/server/eventCompaction.ts@@ -1,6 +1,6 @@import { EventType } from "@ag-ui/core";-import type { AgUiEvent } from "@/src/features/in-app-agent/schema";+import type { AgUiEvent } from "@/src/ee/features/in-app-agent/schema";export function compactTextMessageChunks(events: readonly AgUiEvent[],diff --git a/web/src/features/in-app-agent/server/handler.ts b/web/src/ee/features/in-app-agent/server/handler.tssimilarity index 96%rename from web/src/features/in-app-agent/server/handler.tsrename to web/src/ee/features/in-app-agent/server/handler.tsindex a4b9e869ac..ce5c6e49b0 100644--- a/web/src/features/in-app-agent/server/handler.ts+++ b/web/src/ee/features/in-app-agent/server/handler.ts@@ -5,15 +5,15 @@ import { env } from "@/src/env.mjs";import {createInAppAgentMessageId,createInAppAgentRunId,-} from "@/src/features/in-app-agent/ids";+} from "@/src/ee/features/in-app-agent/ids";import {AgUiRunAgentInputSchema,type AgUiRunAgentInput,type AgUiEvent,InAppAgentRuntimeStateSchema,type AgUiMessage,-} from "@/src/features/in-app-agent/schema";-import { createAgUiStream } from "@/src/features/in-app-agent/server/agent";+} from "@/src/ee/features/in-app-agent/schema";+import { createAgUiStream } from "@/src/ee/features/in-app-agent/server/agent";import {createRun,ensureOwnedConversation,@@ -22,8 +22,9 @@ import {replaceRunEvents,shouldFlushPersistedEvent,toPersistableAgentEvent,-} from "@/src/features/in-app-agent/server/persistence";+} from "@/src/ee/features/in-app-agent/server/persistence";import { getAuthOptions } from "@/src/server/auth";+import { hasEntitlement } from "@/src/features/entitlements/server/hasEntitlement";import { isProjectMemberOrAdmin } from "@/src/server/utils/checkProjectMembershipOrAdmin";import { assertUnreachable } from "@/src/utils/types";import {@@ -131,6 +132,16 @@ export default async function handler(request: Request) {throw new ForbiddenError("Assistant is not enabled for this user");}+ if (+ !hasEntitlement({+ entitlement: "in-app-agent",+ sessionUser: auth.user,+ projectId,+ })+ ) {+ throw new ForbiddenError("Assistant is not enabled for this plan");+ }+const project = await prisma.project.findUnique({where: { id: projectId },select: {diff --git a/web/src/features/in-app-agent/server/instrumentation.ts b/web/src/ee/features/in-app-agent/server/instrumentation.tssimilarity index 98%rename from web/src/features/in-app-agent/server/instrumentation.tsrename to web/src/ee/features/in-app-agent/server/instrumentation.tsindex 54bcc28d09..5a9acd6486 100644--- a/web/src/features/in-app-agent/server/instrumentation.ts+++ b/web/src/ee/features/in-app-agent/server/instrumentation.ts@@ -4,8 +4,8 @@ import { getInternalTracingHandler, logger } from "@langfuse/shared/src/server";import type {AgUiEvent,AgUiRunAgentInput,-} from "@/src/features/in-app-agent/schema";-import { compactTextMessageChunks } from "@/src/features/in-app-agent/server/eventCompaction";+} from "@/src/ee/features/in-app-agent/schema";+import { compactTextMessageChunks } from "@/src/ee/features/in-app-agent/server/eventCompaction";export type InAppAgentTracingConfig = {environment: string;diff --git a/web/src/features/in-app-agent/server/persistence.ts b/web/src/ee/features/in-app-agent/server/persistence.tssimilarity index 99%rename from web/src/features/in-app-agent/server/persistence.tsrename to web/src/ee/features/in-app-agent/server/persistence.tsindex 5dc220dcda..86bec9888d 100644--- a/web/src/features/in-app-agent/server/persistence.ts+++ b/web/src/ee/features/in-app-agent/server/persistence.ts@@ -13,8 +13,8 @@ import {AgUiMessageSchema,type AgUiEvent,type AgUiMessage,-} from "@/src/features/in-app-agent/schema";-import { compactTextMessageChunks } from "@/src/features/in-app-agent/server/eventCompaction";+} from "@/src/ee/features/in-app-agent/schema";+import { compactTextMessageChunks } from "@/src/ee/features/in-app-agent/server/eventCompaction";// Keep this close to the route maxDuration (120s) so a killed foreground stream// does not block the conversation long after the route can no longer respond.diff --git a/web/src/features/in-app-agent/server/router.ts b/web/src/ee/features/in-app-agent/server/router.tssimilarity index 92%rename from web/src/features/in-app-agent/server/router.tsrename to web/src/ee/features/in-app-agent/server/router.tsindex dc37daf422..7e8631558b 100644--- a/web/src/features/in-app-agent/server/router.ts+++ b/web/src/ee/features/in-app-agent/server/router.ts@@ -1,8 +1,10 @@import { z } from "zod";+import type { Session } from "next-auth";import { BaseError, ForbiddenError } from "@langfuse/shared";import type { PrismaClient } from "@langfuse/shared/src/db";import { env } from "@/src/env.mjs";+import { throwIfNoEntitlement } from "@/src/features/entitlements/server/hasEntitlement";import {createTRPCRouter,protectedProjectProcedure,@@ -12,7 +14,7 @@ import {getConversationMessages,getOwnedConversationOrThrow,serializeConversation,-} from "@/src/features/in-app-agent/server/persistence";+} from "@/src/ee/features/in-app-agent/server/persistence";const CONVERSATION_LIST_LIMIT = 50;@@ -110,10 +112,7 @@ async function assertInAppAgentAvailable({}: {ctx: {session: {- user: {- admin?: boolean;- featureFlags: { inAppAgent?: boolean };- };+ user: NonNullable<Session["user"]>;environment: { enableExperimentalFeatures?: boolean };};prisma: PrismaClient;@@ -138,6 +137,12 @@ async function assertInAppAgentAvailable({throw new ForbiddenError("Assistant is not enabled for this user");}+ throwIfNoEntitlement({+ entitlement: "in-app-agent",+ sessionUser: ctx.session.user,+ projectId,+ });+const project = await ctx.prisma.project.findUnique({where: { id: projectId },select: {diff --git a/web/src/features/entitlements/constants/entitlements.ts b/web/src/features/entitlements/constants/entitlements.tsindex e322feb28f..dd70b8ca7a 100644--- a/web/src/features/entitlements/constants/entitlements.ts+++ b/web/src/features/entitlements/constants/entitlements.ts@@ -17,12 +17,14 @@ export const entitlements = ["scheduled-blob-exports","prompt-protected-labels","admin-api",+ "in-app-agent",] as const;export type Entitlement = (typeof entitlements)[number];const cloudAllPlansEntitlements: Entitlement[] = ["cloud-billing","trace-deletion",+ "in-app-agent",];const selfHostedAllPlansEntitlements: Entitlement[] = [diff --git a/web/src/pages/_app.tsx b/web/src/pages/_app.tsxindex 042c54bbd4..e0d054d587 100644--- a/web/src/pages/_app.tsx+++ b/web/src/pages/_app.tsx@@ -75,7 +75,7 @@ import { env } from "@/src/env.mjs";import { ThemeProvider } from "@/src/features/theming/ThemeProvider";import { MarkdownContextProvider } from "@/src/features/theming/useMarkdownContext";import { SupportDrawerProvider } from "@/src/features/support-chat/SupportDrawerProvider";-import { InAppAiAgentProvider } from "@/src/features/in-app-agent/components/InAppAiAgentProvider";+import { InAppAiAgentProvider } from "@/src/ee/features/in-app-agent/components/InAppAiAgentProvider";import { useLangfuseCloudRegion } from "@/src/features/organizations/hooks";import { ScoreCacheProvider } from "@/src/features/scores/contexts/ScoreCacheContext";import { CorrectionCacheProvider } from "@/src/features/corrections/contexts/CorrectionCacheContext";diff --git a/web/src/server/api/root.ts b/web/src/server/api/root.tsindex eb26671e2f..362c4be049 100644--- a/web/src/server/api/root.ts+++ b/web/src/server/api/root.ts@@ -56,7 +56,7 @@ import { queueAssignmentRouter } from "@/src/features/annotation-queues/server/aimport { surveysRouter } from "@/src/server/api/routers/surveys";import { naturalLanguageFilterRouter } from "@/src/features/natural-language-filters/server/router";import { notificationPreferencesRouter } from "@/src/server/api/routers/notificationPreferences";-import { inAppAgentRouter } from "@/src/features/in-app-agent/server/router";+import { inAppAgentRouter } from "@/src/ee/features/in-app-agent/server/router";/*** This is the primary router for your server.