MCPcopy Create free account
hub / github.com/altic-dev/FluidVoice / buildSystemPrompt

Method buildSystemPrompt

Sources/Fluid/ContentView.swift:3641–3649  ·  view source on GitHub ↗
(appInfo: (name: String, bundleId: String, windowTitle: String), dictationSlot: SettingsStore.DictationShortcutSlot?)

Source from the content-addressed store, hash-verified

3639
3640extension ContentView {
3641 private func buildSystemPrompt(
3642 appInfo: (name: String, bundleId: String, windowTitle: String),
3643 dictationSlot: SettingsStore.DictationShortcutSlot? = nil
3644 ) -> String {
3645 if let slot = dictationSlot ?? self.currentDictationShortcutSlot(for: self.activeRecordingMode) {
3646 return SettingsStore.shared.effectiveDictationSystemPrompt(for: slot, appBundleID: appInfo.bundleId)
3647 }
3648 return SettingsStore.shared.effectiveSystemPrompt(for: .dictate, appBundleID: appInfo.bundleId)
3649 }
3650
3651 private var shouldTracePromptProcessing: Bool {
3652 self.forcePromptTraceToConsole ||

Callers 1

processTextWithAIMethod · 0.95

Tested by

no test coverage detected