UNPKG

@digitalsingularity/agent-ui-chat-components

Version:
119 lines (118 loc) 4.5 kB
import React from 'react'; export interface AiAgent { id: string; name: string; description?: string | null; systemInstruction: string; temperature?: number; model: string; personalityTags?: string[]; avatarUrl?: string; avatarType?: string; avatarPrompt?: string; isPublic?: boolean; isOwner?: boolean; userId: string; createdAt: string; updatedAt: string; } export interface AiAgentDocument { id: number; fileName: string; fileSize?: number; } export interface AgentsPageProps { useLocation: () => [string, (path: string) => void]; useMutation: any; useQueryClient: any; useQuery: any; useAiAgents: () => any; useAiAgent: any; createAiAgent: (agent: any) => Promise<AiAgent>; updateAiAgent: (id: string, agentData: any) => Promise<AiAgent>; deleteAiAgent: (id: string) => Promise<void>; uploadAiAgentDocument: (agentId: string, file: File) => Promise<any>; deleteAiAgentDocument: (agentId: string, documentId: number) => Promise<void>; useAiAgentDocuments: (agentId: string) => any; aiAgentKeys: any; uploadAiAgentAvatar: (agentId: string, file: File) => Promise<any>; generateAiAgentAvatar: (agentId: string, prompt: string) => Promise<any>; shareAiAgent: (id: string, isPublic: boolean) => Promise<AiAgent>; Card: React.ComponentType<any>; CardHeader: React.ComponentType<any>; CardTitle: React.ComponentType<any>; CardDescription: React.ComponentType<any>; CardContent: React.ComponentType<any>; Table: React.ComponentType<any>; TableHeader: React.ComponentType<any>; TableRow: React.ComponentType<any>; TableHead: React.ComponentType<any>; TableBody: React.ComponentType<any>; TableCell: React.ComponentType<any>; Dialog: React.ComponentType<any>; DialogContent: React.ComponentType<any>; DialogHeader: React.ComponentType<any>; DialogTitle: React.ComponentType<any>; DialogDescription: React.ComponentType<any>; DialogFooter: React.ComponentType<any>; DialogTrigger: React.ComponentType<any>; DialogClose: React.ComponentType<any>; Button: React.ComponentType<any>; AlertDialog: React.ComponentType<any>; AlertDialogAction: React.ComponentType<any>; AlertDialogCancel: React.ComponentType<any>; AlertDialogContent: React.ComponentType<any>; AlertDialogDescription: React.ComponentType<any>; AlertDialogFooter: React.ComponentType<any>; AlertDialogHeader: React.ComponentType<any>; AlertDialogTitle: React.ComponentType<any>; Select: React.ComponentType<any>; SelectContent: React.ComponentType<any>; SelectItem: React.ComponentType<any>; SelectTrigger: React.ComponentType<any>; SelectValue: React.ComponentType<any>; Input: React.ComponentType<any>; Label: React.ComponentType<any>; Textarea: React.ComponentType<any>; Checkbox: React.ComponentType<any>; Badge: React.ComponentType<any>; Tabs: React.ComponentType<any>; TabsContent: React.ComponentType<any>; TabsList: React.ComponentType<any>; TabsTrigger: React.ComponentType<any>; Tooltip: React.ComponentType<any>; TooltipContent: React.ComponentType<any>; TooltipProvider: React.ComponentType<any>; TooltipTrigger: React.ComponentType<any>; Slider: React.ComponentType<any>; Alert: React.ComponentType<any>; AlertDescription: React.ComponentType<any>; AlertTitle: React.ComponentType<any>; Avatar: React.ComponentType<any>; AvatarImage: React.ComponentType<any>; AvatarFallback: React.ComponentType<any>; Loader2: React.ComponentType<any>; Trash2: React.ComponentType<any>; Edit: React.ComponentType<any>; Plus: React.ComponentType<any>; Upload: React.ComponentType<any>; File: React.ComponentType<any>; X: React.ComponentType<any>; Bot: React.ComponentType<any>; Thermometer: React.ComponentType<any>; Tag: React.ComponentType<any>; FileText: React.ComponentType<any>; PlusCircle: React.ComponentType<any>; MessageSquare: React.ComponentType<any>; AlertCircle: React.ComponentType<any>; Globe: React.ComponentType<any>; Share2: React.ComponentType<any>; useToast: () => any; AgentChatModal: React.ComponentType<any>; ProfileMenu: React.ComponentType<any>; agentService: any; toastService: any; uiComponents: any; } declare const AgentsPage: React.FC<AgentsPageProps>; export default AgentsPage;