EngineVersion 1genClasses

genai:TextCompletePayload

A payload for requesting a text completion.

Extends: genai:CompletePayload

Used for text generation with full response.

Properties

genai:maxTokens (optional, max 1)

The maximum number of tokens to generate.

Completion payload may have maxTokens >= 1 (integer).

Limits the length of the generated completion.

Inherited from parent class.

genai:model (optional, max 1)

The model identifier to use for generation.

Completion payload may specify a model instance.

Specifies which AI model variant to use (e.g., claude-3-5-sonnet, gpt-4, gemini-pro).

Inherited from parent class.

genai:prompt (required, max 1)

The natural language prompt/request.

Completion payload must have exactly one prompt (string).

Used as the prompt for completion payloads and as the user prompt for agentic action payloads. Domain includes genai:CompletePayload and genai:AgentPayload.

genai:stopSequences (optional)

Custom sequences that cause generation to stop.

Completion payload may have stop sequences (strings).

When encountered, these strings will halt further generation. Can be repeated for multiple sequences.

Inherited from parent class.

genai:systemPrompt (optional, max 1)

System-level instructions that set context for the AI's behavior.

Completion payload may have a system prompt (string).

Defines the assistant's role, personality, and operational guidelines.

Inherited from parent class.

genai:temperature (optional, max 1)

Controls randomness in generation (typically 0.0-1.0).

Completion payload may have temperature between 0.0 and 1.0 (decimal).

Higher values produce more random outputs, lower values are more focused and deterministic.

Inherited from parent class.

genai:topK (optional, max 1)

Only sample from top K options for each token.

Completion payload may have topK >= 1 (integer).

Limits the model to consider only the top K tokens at each step.

Inherited from parent class.

genai:topP (optional, max 1)

Nucleus sampling parameter (0.0-1.0).

Completion payload may have topP between 0.0 and 1.0 (decimal).

Controls diversity via nucleus sampling. Not recommended for use with temperature.

Inherited from parent class.

On this page