Files
lolympus-agent/src/skills/onboarding/state/onboarding-state.ts
T

53 lines
1.4 KiB
TypeScript

import type { NicknameIssue } from "../types.js";
export type RemainingStep =
| "nickname"
| "photo"
| "identity-room"
| "recruiting-room"
| "discord-profile-nickname"
| "discord-profile-message";
export type OnboardingPhase =
| { kind: "fresh" }
| { kind: "nickname-pending"; current: string }
| { kind: "photo-pending" }
| { kind: "both-pending" }
| { kind: "step1-completed"; remaining: RemainingStep[] }
| { kind: "nickname-rejected"; current: string; issues: NicknameIssue[] }
| { kind: "photo-rejected"; reason?: string | undefined }
| { kind: "deadline-near"; remaining: RemainingStep[] }
| { kind: "completed" }
| { kind: "timed-out" };
export type Intent =
| { kind: "greeting" }
| { kind: "acknowledgement" }
| { kind: "status-question" }
| { kind: "help-how" }
| { kind: "help-where" }
| { kind: "nickname-question" }
| { kind: "photo-question" }
| { kind: "discord-question" }
| { kind: "discord-verify-question" }
| { kind: "age-question" }
| { kind: "chitchat" }
| { kind: "off-topic-to-other" }
| { kind: "unknown" };
export interface DerivedState {
phase: OnboardingPhase;
intent: Intent;
shouldRespond: boolean;
responseMode: "skip" | "template" | "llm" | "llm-with-tools";
suggestedMaxTokens: number;
allowShortResponse: boolean;
tier: 0 | 1 | 2;
}
export interface ClassifiedIntent {
intent: Intent;
confidence: number;
source: "regex" | "llm";
}