EngineVersion 1genClasses

genai:TextCompletion

A complete text response from a generative AI model.

Extends: genai:Completion

Represents a text completion with full content.

Properties

genai:content (required, max 1)

Text content.

Completion must have exactly one content property (string).

For Completion: the generated text output. For ChatMessage: the message text.

Inherited from parent class.

genai:stopReason (optional, max 1)

The reason why the generation stopped.

Completion may have a stop reason indicating why generation ended.

Indicates whether generation stopped naturally (end_turn) or due to limits (max_tokens, stop_sequence).

Inherited from parent class.

On this page