Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

828 B
Raw Blame
import type { TaskStatus } from './task';
import type { ChatTopicMetadata } from './topic';

export interface RecentItem {
  agentId?: string | null;
  description?: string | null;
  icon: string;
  id: string;
  lastAssistantMessage?: string | null;
  metadata?: ChatTopicMetadata;
  routePath: string;
  /**
   * Slug source for a task link — `tasks.name` only. `title` may fall back to
   * the instruction for display; a prompt body must never reach a URL.
   */
  slugTitle?: string | null;
  /** Task lifecycle status when `type === 'task'`; null for topic/document. */
  status: TaskStatus | null;
  taskIdentifier?: string | null;
  title: string;
  type: 'topic' | 'document' | 'task';
  updatedAt: Date;
  /** The member who owns this item — for author attribution in workspace team views. */
  userId?: string;
}