Skip to content

Text

Text stores reusable prompt fragments that can be pulled into chats with fillings.

chatsnack.Text

Bases: DatafileMixin

Reusable text asset that can be saved and expanded in other prompts.

save(path: str = None)

Persist the current datafile-backed object to disk.

load(path: str = None)

Load the object from disk, optionally from an explicit path.