feat: add scoped read-only audio preview and isolated Dify transport
This commit is contained in:
@@ -17,6 +17,7 @@ namespace app\common\service\followupaudio {
|
||||
public static bool $providerMatches = true;
|
||||
public static function enabled(): bool { return self::$enabled; }
|
||||
public static function verified(?string $profile = null): bool { return self::$verified; }
|
||||
public static function ready(?string $profile = null): bool { return self::$verified; }
|
||||
public static function claim(): ?array { self::$events[] = 'claim'; return self::$verified ? ['id' => 1, 'actor_id' => 1, 'diagnosis_id' => 1, 'lease_token' => 'test', 'model_key' => 'qwen'] : null; }
|
||||
public static function assertTaskProvider(array $task): void { if (!self::$providerMatches) { throw new FollowupAudioException('PROVIDER_CONFIGURATION_CHANGED'); } }
|
||||
public static function heartbeat(int $id, string $token): bool { self::$events[] = 'heartbeat'; return self::$lease; }
|
||||
|
||||
Reference in New Issue
Block a user