Skip to main content

Interface: ImageGenerationBrainPrompt

Represents an image generation prompt sent to the brain

Hierarchy

Table of contents

Properties

Properties

attachments

Optional attachments: FileAttachment[]

A list of file attachments

Inherited from

TextBrainPrompt.attachments

Defined in

models/brainService.ts:141


expectedResponseType

expectedResponseType: "base64" | "url" | "binary"

How we want the brain to return the image base64: The brain will return the image as a base64 encoded string url: The brain will return the image url binary: The brain will return the image as a binary buffer

Defined in

models/brainService.ts:171


message

message: string

The text prompt

Inherited from

TextBrainPrompt.message

Defined in

models/brainService.ts:136


role

role: UserRole

The role of the sender (user, brain or system)

Inherited from

TextBrainPrompt.role

Defined in

models/brainService.ts:126


sentAt

sentAt: Date

The utc date that the prompt has been sent

Inherited from

TextBrainPrompt.sentAt

Defined in

models/brainService.ts:131