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.

491 B
Raw Blame
import type { CommandHandler } from './types';

/**
 * /newTopic — Force the message to be sent in a brand-new topic,
 * regardless of the current topic context.
 */
export const newTopicHandler: CommandHandler = () => {
  return { forceNewTopic: true };
};

/**
 * /compact — Compress the current conversation context.
 * Triggers a history summarization instead of normal AI response.
 */
export const compactHandler: CommandHandler = () => {
  return { triggerCompression: true };
};