Skip to content

TextPrompt

Structure Class

TextPrompt dataclass

Bases: _SerdeShape

Contains information about the text prompt to optimize.

Attributes

text instance-attribute
text: str

The text in the text prompt to optimize.