StandardizedPrompt
Namespace: Vercel.AI.Prompt
public sealed class StandardizedPromptA standardized prompt. Maps to the result of standardizePrompt.
Inheritance: object
Constructors
Section titled “Constructors”StandardizedPrompt(Instructions?, IReadOnlyList<ModelMessage>)
Section titled “StandardizedPrompt(Instructions?, IReadOnlyList<ModelMessage>)”public StandardizedPrompt(Instructions? instructions, IReadOnlyList<ModelMessage> messages)Creates a standardized prompt.
Parameters
| Name | Type | Description |
|---|---|---|
instructions |
Instructions | |
messages |
IReadOnlyList<ModelMessage> |
Properties
Section titled “Properties”Instructions
Section titled “Instructions”public Instructions? Instructions { get; }Instructions, or null when there are none.
Value: Instructions
Messages
Section titled “Messages”public IReadOnlyList<ModelMessage> Messages { get; }User and assistant messages, plus system messages when they are allowed.
Value: IReadOnlyList<ModelMessage>
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product