Skip to content

system

function system(input, options?): object

Creates a system message entry

Parameter Type Description

input

string

The system prompt

options?

Record<string, any>

Any additional options that will be directly passed to the model

object

a message entry

content: string;
optional id: string;
optional providerData: Record<string, any>;
role: "system";
optional type: "message";