Add presence probe configuration to Assistant model and API. Introduce new fields for enabling presence probes, idle and cooldown durations, maximum prompts, context inclusion, and custom questions. Update schemas, routers, and frontend components to support these features, along with corresponding tests to ensure functionality.

This commit is contained in:
Xin Wang
2026-02-28 15:47:53 +08:00
parent 0821d73e7c
commit 8f1317860f
11 changed files with 1006 additions and 3 deletions

View File

@@ -20,6 +20,12 @@ export interface Assistant {
tools?: string[]; // IDs of enabled tools
botCannotBeInterrupted?: boolean;
interruptionSensitivity?: number; // In ms
presenceProbeEnabled?: boolean;
presenceProbeIdleSeconds?: number;
presenceProbeCooldownSeconds?: number;
presenceProbeMaxPrompts?: number;
presenceProbeIncludeContext?: boolean;
presenceProbeQuestion?: string;
configMode?: 'platform' | 'dify' | 'fastgpt' | 'none';
apiUrl?: string;
apiKey?: string;