'use client'; import React from 'react'; import { DotbaseNodesEnum, DOTBASE_NODES } from '@/components/dashboard/nodes/types/nodeTypes'; import { v4 as uuidv4 } from 'uuid'; import '@/styles/styles.css'; const Workspace = () => { const onDragStart = (event: React.DragEvent, nodeType: DotbaseNodesEnum) => { const newNode = { ...DOTBASE_NODES[nodeType], id: `${nodeType}__${uuidv4()}` }; event.dataTransfer.setData('application/reactflow', JSON.stringify(newNode)); event.dataTransfer.effectAllowed = 'move'; }; const agents = [ { name: "HUB", description: "Enables agent collaboration", nodeType: DotbaseNodesEnum.HUB }, { name: "BRIDGE", description: "Mediates between agents and users", nodeType: DotbaseNodesEnum.BRIDGE }, { name: "NEXUS", description: "System message-configured agent", nodeType: DotbaseNodesEnum.NEXUS }, { name: "LUMINA", description: "OpenAI Assistant API integration", nodeType: DotbaseNodesEnum.LUMINA } ]; const tools = [ { name: "SPARK", description: "Custom function support for agents", nodeType: DotbaseNodesEnum.SPARK } ]; return (
{agent.description}
{tool.description}