Skip to content

StandardizePromptInput

Namespace: Vercel.AI.Prompt

public sealed class StandardizePromptInput

Input for StandardizePrompt(StandardizePromptInput).

Inheritance: object

View source

public bool AllowSystemInMessages { get; set; }

When true, system messages may appear in Prompt or Messages.

Value: bool

View source

public Instructions? Instructions { get; set; }

Instructions. They win over System.

Value: Instructions

View source

public IReadOnlyList<ModelMessage>? Messages { get; set; }

Message list. Cannot be combined with Prompt.

Value: IReadOnlyList<ModelMessage>

View source

public PromptInput? Prompt { get; set; }

A user string or a message list. Cannot be combined with Messages.

Value: PromptInput

View source

public string? System { get; set; }

Legacy system string. Used when Instructions is null.

Value: string

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product