Skip to content

aisbreaker-api-js - v0.1.15 / api/models/OutputText / OutputText

Interface: OutputText

api/models/OutputText.OutputText

A text message response from the AI service.

Table of contents

Properties

Properties

content

content: string

The actual text message.

Defined in

aisbreaker-js/packages/aisbreaker-api-js/src/api/models/OutputText.ts:20


index

index: number

Index of the message in the request - relevant to distinguest multiple alternatives if request_ops.sample|number_of_alternative_responses>1.

Defined in

aisbreaker-js/packages/aisbreaker-api-js/src/api/models/OutputText.ts:10


isDelta

Optional isDelta: boolean

If set to true, the message is a delta (and to append) to the previous message, usually used while streaming the reponse. If false, it's a full message.

Defined in

aisbreaker-js/packages/aisbreaker-api-js/src/api/models/OutputText.ts:25


isProcessing

Optional isProcessing: boolean

If set to true, the message is still work in progress. If false, the message is the final response.

Defined in

aisbreaker-js/packages/aisbreaker-api-js/src/api/models/OutputText.ts:30


role

role: "assistant"

Role of the (input) message creator.

Defined in

aisbreaker-js/packages/aisbreaker-api-js/src/api/models/OutputText.ts:15

Released under the MIT License.