genai:ChatCompletePayload
A payload for chat completion with explicit message list.
Extends: genai:CompletePayload
Used for multi-turn conversations with explicit message history. The genai:messages property contains an RDF list of ChatMessage entities.
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:messages (required, max 1)
The list of chat messages for multi-turn conversation.
Chat completion payload must have a messages list.
An RDF list of ChatMessage entities representing the conversation history.
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: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.
Chat completion payload may have a system prompt (string).
Defines the assistant's role, personality, and operational guidelines.
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.