Skip to content

StandardizedPrompt

Namespace: Vercel.AI.Prompt

public sealed class StandardizedPrompt

A standardized prompt. Maps to the result of standardizePrompt.

Inheritance: object

View source

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>

View source

public Instructions? Instructions { get; }

Instructions, or null when there are none.

Value: Instructions

View source

public IReadOnlyList<ModelMessage> Messages { get; }

User and assistant messages, plus system messages when they are allowed.

Value: IReadOnlyList<ModelMessage>

View source

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