getPromptForAction method

String getPromptForAction(
  1. ThinkbackMenuAction action
)

Get the prompt for a generative action (edit, fix, regenerate).

Implementation

String getPromptForAction(ThinkbackMenuAction action) {
  switch (action) {
    case ThinkbackMenuAction.edit:
      return _editPrompt;
    case ThinkbackMenuAction.fix:
      return _fixPrompt;
    case ThinkbackMenuAction.regenerate:
      return _regeneratePrompt;
    case ThinkbackMenuAction.play:
      return ''; // Play is not a generative action.
  }
}