mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-03 05:29:12 +00:00
Consolidate the AgentData Type into the agentCard
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user