Content.text constructor

Content.text(
  1. String text
)

Creates user content from a simple text string.

This is the most common pattern for simple text prompts.

Example:

final content = Content.text('Explain quantum computing');

Implementation

factory Content.text(String text) => Content.user([TextPart(text)]);