setMultimodalPrompt method

  1. @Deprecated('Use setPrompt() instead, which automatically detects media_data in messages.')
void setMultimodalPrompt(
  1. List<Map<String, dynamic>> messages
)

Set multimodal prompt for generation with media attachments.

@deprecated Use setPrompt instead. This method is deprecated and will be removed in a future version. The unified setPrompt method automatically detects media_data in messages and routes accordingly.

messages must be a list of maps with the following properties:

  • 'role' (String): The role (e.g., "system", "user", "assistant")
  • 'content' (String): The text content with <media> placeholders
  • 'media_data' (List<Map<String, dynamic>>, optional): Media attachments

Implementation

@Deprecated('Use setPrompt() instead, which automatically detects media_data in messages.')
void setMultimodalPrompt(List<Map<String, dynamic>> messages) {
  // Delegate to the unified setPrompt() method to ensure consistent behavior
  // and projector-loaded checks.
  setPrompt(messages);
}