Table of Contents

Class PromptContext

Namespace
Dynamicweb.AI
Assembly
Dynamicweb.Core.dll

The context which is sent to AI together with the prompt.

public sealed class PromptContext
Inheritance
PromptContext
Inherited Members

Constructors

PromptContext(IEnumerable<KeyValuePair<string, string>>)

Construtor for the prompt context setting the values property, used for generation of new text.

public PromptContext(IEnumerable<KeyValuePair<string, string>> values)

Parameters

values IEnumerable<KeyValuePair<string, string>>

PromptContext(string)

Constructor for the prompt context setting only the text property. Used for modification of a piece of text instead of generation of new text.

public PromptContext(string text)

Parameters

text string

Text to be modified by the prompt

Properties

Text

public string? Text { get; }

Property Value

string

Values

public ICollection<KeyValuePair<string, string>> Values { get; }

Property Value

ICollection<KeyValuePair<string, string>>
To top