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.

467 B
Raw Blame
import { botWakeScenarioMeta } from '../meta';
import type { AgentSignalScenario } from '../types';
import { createBotWakePolicy } from './policy';

/**
 * Decides whether a bot should wake for a message. Gated by the bot's own configuration and
 * executed synchronously so the caller can await the verdict.
 */
export const botWakeScenario: AgentSignalScenario = {
  ...botWakeScenarioMeta,
  createPolicies: (options) => [createBotWakePolicy(options.botWake)],
};