genUiSystemPrompt method

void genUiSystemPrompt(
  1. GenUiChatTarget chat, {
  2. required String prompt,
})

Overrides the widget-declared system prompt for a GenUI chat.

App-level overrides win over the prompt supplied directly on GenUiChat(...).

Implementation

void genUiSystemPrompt(GenUiChatTarget chat, {required String prompt}) {
  final config = _ensureGenUiChatConfiguration(chat.chatName);
  _genUiChatConfigs[chat.chatName] = config.copyWith(systemPrompt: prompt);
}