import type { Context } from '@deepseek-ai/cordis'; import type { Companion } from '../../domain.js'; import { type SampleMessage, type LabelSample } from './attention-samples.js'; import type { ManagedAttention } from './managed-attention.js'; interface DefaultTarget { scope: string; companion: Companion; mainSessionId?: string; guard: () => void; } interface Target extends DefaultTarget { defaultScope?: string; sessionId?: string; boundIds: readonly string[]; history: (signal: AbortSignal, from: number) => Promise; } interface Review { id: string; at: number; source: 'history-v2'; rows: LabelSample[]; } type BatchStatus = { phase: 'extracting' | 'profile' | 'history' | 'labeling' | 'training' | 'done' | 'error' | 'cancelled'; groups: number; samples?: number; personaSamples?: number; profile?: { roleAliases: number; roleScenes: number; relationshipAliases: number; relationshipScenes: number; }; sceneCoverage?: { scene: string; training: number; holdout: number; }[]; history?: 'applied' | 'skipped' | 'rejected'; warning?: string; error?: string; }; export declare class GroupAttentionTraining { private readonly ctx; private readonly directory; private readonly attention; private readonly jobs; private readonly failures; private readonly actions; private readonly batches; private batch; private closed; constructor(ctx: Context, directory: string, attention: ManagedAttention); private path; private review; private save; view(scope: string): Promise<{ review: Review | undefined; ready: boolean; busy: boolean; error: string | undefined; model: { active: boolean; saved: boolean; selected: boolean; evaluation: { [x: string]: { total: number; correct: number; baseline: number; training: number; }; } | undefined; attempt: { [x: string]: { total: number; correct: number; baseline: number; training: number; }; } | undefined; versions: { id: string | undefined; createdAt: number | undefined; current: boolean; profile: { roleAliases: number; roleScenes: number; relationshipAliases: number; relationshipScenes: number; } | undefined; sceneCoverage: { scene: "background" | "topic" | "other" | "close" | "address" | "question" | "banter" | "share"; training: number; holdout: number; }[]; persona: { calls: { total: number; correct: number; baseline: number; training: number; }; nonCalls: { total: number; correct: number; baseline: number; training: number; } | undefined; scenes: { total: number; correct: number; baseline: number; training: number; } | undefined; relationshipAliases: number; } | undefined; }[]; }; }>; batchView(channelId: string, targets: Target[], defaultScope?: string): { job: BatchStatus | undefined; busy: boolean; defaultProfile: { roleAliases: number; roleScenes: number; relationshipAliases: number; relationshipScenes: number; } | undefined; defaultEvaluation: { [x: string]: { total: number; correct: number; baseline: number; training: number; }; } | undefined; canReset: boolean; versions: { current: boolean; id: string | undefined; createdAt: number | undefined; profile: { roleAliases: number; roleScenes: number; relationshipAliases: number; relationshipScenes: number; } | undefined; sceneCoverage: { scene: "background" | "topic" | "other" | "close" | "address" | "question" | "banter" | "share"; training: number; holdout: number; }[]; persona: { calls: { total: number; correct: number; baseline: number; training: number; }; nonCalls: { total: number; correct: number; baseline: number; training: number; } | undefined; scenes: { total: number; correct: number; baseline: number; training: number; } | undefined; relationshipAliases: number; } | undefined; }[]; }; batchAction(channelId: string, targets: Target[], body: Record, defaults?: DefaultTarget): Promise; private runBatch; private trainHistory; action(target: Target, body: Record): Promise; private apply; private organize; suspend(): Promise; close(): Promise; } export declare function readQqTrainingHistory(fetchPage: (anchor?: number) => Promise, groupId: string, accountId: string, from: number): Promise; export declare function qqHistorySamples(data: unknown, groupId: string, accountId: string, includePartner?: boolean): SampleMessage[]; export {}; //# sourceMappingURL=attention-group-training.d.ts.map