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.MessageThe chat history message containing the prompt text.
Exceptions
- ArgumentNullException
Thrown when
message
ormessage.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
stringThe 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
stringThe textual content of the prompt.
attachment
AttachmentA 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
stringThe 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.