Part.text constructor
Part.text(
- String text
Creates a text part.
Note: This factory does not include thought or thoughtSignature.
When echoing model responses back, use the already-parsed TextPart
objects rather than reconstructing via this factory.
Example:
final part = Part.text('Hello, world!');
Implementation
factory Part.text(String text) = TextPart;