Skip to content

SystemModelMessage

Namespace: Vercel.AI.Provider

public sealed class SystemModelMessage : ModelMessage

System instructions.

Inheritance: object → ModelMessage

View source

public SystemModelMessage(string content)

Creates a system message.

Parameters

Name Type Description
content string

View source

SystemModelMessage(string, IReadOnlyDictionary<string, JsonElement>?)

Section titled “SystemModelMessage(string, IReadOnlyDictionary<string, JsonElement>?)”
public SystemModelMessage(string content, IReadOnlyDictionary<string, JsonElement>? providerOptions)

Creates a system message with provider options, such as an OpenAI reasoningEffortUpdate.

Parameters

Name Type Description
content string
providerOptions IReadOnlyDictionary<string, JsonElement>

View source

public string Content { get; }

Instruction text.

Value: string

View source

public IReadOnlyDictionary<string, JsonElement>? ProviderOptions { get; }

Provider-specific options for this message.

Value: IReadOnlyDictionary<string, JsonElement>

View source

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