Table of Contents

Constructor Prompt

Namespace
LMKit.TextGeneration.Chat
Assembly
LM-Kit.NET.dll

Prompt(Message)

Initializes a new instance of the Prompt class using a message from the chat history.

public Prompt(ChatHistory.Message message)

Parameters

message ChatHistory.Message

The chat history message containing the prompt text.

Exceptions

ArgumentNullException

Thrown when message or message.Content.Content is null.

Prompt(string)

Initializes a new instance of the Prompt class with the specified text and no attachments.

public Prompt(string text)

Parameters

text string

The textual content of the prompt.

Exceptions

ArgumentNullException

Thrown when text is null.

Prompt(string, Attachment)

Initializes a new instance of the Prompt class with the specified text and a single attachment.

public Prompt(string text, Attachment attachment)

Parameters

text string

The textual content of the prompt.

attachment Attachment

A single file attachment to include with the prompt.

Exceptions

ArgumentNullException

Thrown when text is null.

Prompt(string, IEnumerable<Attachment>)

Initializes a new instance of the Prompt class with the specified text and multiple attachments.

public Prompt(string text, IEnumerable<Attachment> attachments)

Parameters

text string

The textual content of the prompt.

attachments IEnumerable<Attachment>

A collection of file attachments to include with the prompt.

Exceptions

ArgumentNullException

Thrown when text is null.