From 00370c70ede8ae2531894a4f9e06648c4e37d25d Mon Sep 17 00:00:00 2001 From: sabaimran Date: Sun, 19 Jan 2025 12:06:54 -0800 Subject: [PATCH] Consolidate the AgentData Type into the agentCard --- src/interface/web/app/agents/page.tsx | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/src/interface/web/app/agents/page.tsx b/src/interface/web/app/agents/page.tsx index b03d248c..0d8e4b72 100644 --- a/src/interface/web/app/agents/page.tsx +++ b/src/interface/web/app/agents/page.tsx @@ -25,6 +25,7 @@ import { AgentCard, EditAgentSchema, AgentModificationForm, + AgentData, } from "@/app/components/agentCard/agentCard"; import { useForm } from "react-hook-form"; @@ -35,21 +36,6 @@ import { Separator } from "@/components/ui/separator"; import { KhojLogoType } from "../components/logo/khojLogo"; import { DialogTitle } from "@radix-ui/react-dialog"; -export interface AgentData { - slug: string; - name: string; - persona: string; - color: string; - icon: string; - privacy_level: string; - files?: string[]; - creator?: string; - managed_by_admin: boolean; - chat_model: string; - input_tools: string[]; - output_modes: string[]; -} - const agentsFetcher = () => window .fetch("/api/agents") @@ -321,6 +307,7 @@ export default function Agents() { chat_model: "", input_tools: [], output_modes: [], + is_hidden: false, }} userProfile={ authenticationLoading