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.

2.4 KB
Raw Blame
/**
 * Canonical directory of every `llm_generation_tracing` scenario value.
 *
 * Add to this map whenever a new caller pipes through the tracing path so
 * there's one place to scan for all known scenarios. Values are the literal
 * strings persisted on the row's `scenario` column — keep them stable, they
 * are dashboard / partition keys.
 */
export const TRACING_SCENARIOS = {
  AgentSignal: 'agent_signal',
  AgentWelcome: 'agent_welcome',
  BotReplyOpener: 'bot_reply_opener',
  BotRetro: 'bot_retro',
  BotWakeClassifier: 'bot_wake_classifier',
  BuilderSuggestion: 'builder_suggestion',
  ChannelReplyError: 'channel_reply_error',
  ChannelReplyOpener: 'channel_reply_opener',
  ChannelRouting: 'channel_routing',
  DocumentToSkillMeta: 'document_to_skill_meta',
  ExpertiseConsolidation: 'expertise_consolidation',
  ExpertiseDomainDraft: 'expertise_domain_draft',
  ExpertiseRejectionIngestion: 'expertise_rejection_ingestion',
  ExpertiseRuleDirection: 'expertise_rule_direction',
  ExpertiseRuleDistill: 'expertise_rule_distill',
  ExpertiseRuleDraft: 'expertise_rule_draft',
  ExpertiseRuleGroupDraft: 'expertise_rule_group_draft',
  ExpertiseTopicIngestion: 'expertise_topic_ingestion',
  FollowUp: 'follow_up',
  GoalCriteriaGen: 'goal_criteria_gen',
  GoalDecompose: 'goal_decompose',
  GoalExplore: 'goal_explore',
  HomeBrief: 'home_brief',
  InputCompletion: 'input_completion',
  MemoryExtract: 'memory_extract',
  OnboardingTaskRecommendation: 'onboarding_task_recommendation',
  SignalFeedbackDomain: 'signal_feedback_domain',
  SignalFeedbackSatisfaction: 'signal_feedback_satisfaction',
  SignalSkillIntent: 'signal_skill_intent',
  SignalSkillManagement: 'signal_skill_management',
  SignupEmailReview: 'signup_email_review',
  TaskBrief: 'task_brief',
  TaskBriefJudge: 'task_brief_judge',
  TaskHandoff: 'task_handoff',
  TaskInstruction: 'task_instruction',
  TaskIntent: 'task_intent',
  TopicTitle: 'topic_title',
  TopicAnalysis: 'topic_analysis',
  TopicAutoSummary: 'topic_auto_summary',
  UnderstandingAnalysis: 'understanding_analysis',
  UnderstandingDetailedPersona: 'understanding_detailed_persona',
  Unknown: 'unknown',
  ReviewPredict: 'review_predict',
  VerifyDisputeArbitration: 'verify_dispute_arbitration',
  VerifyJudge: 'verify_judge',
  VerifyPlanGen: 'verify_plan_gen',
  VerifyReport: 'verify_report',
} as const;

export type TracingScenario = (typeof TRACING_SCENARIOS)[keyof typeof TRACING_SCENARIOS];