Table of Contents

Class Prompt

Namespace
Dynamicweb.AI
Assembly
Dynamicweb.Core.dll

Contains information about the prompt.

public sealed class Prompt
Inheritance
Prompt
Inherited Members

Properties

Description

Gets or sets the description of the prompt.

public string? Description { get; set; }

Property Value

string

Id

Gets or sets the prompt Id.

public int Id { get; }

Property Value

int

IsModification

Gets or sets whether the prompt is a modification prompt or not.

public bool IsModification { get; set; }

Property Value

bool

MaxTokens

Gets or sets the max tokens that will be used with the prompt. This decides how long the input and output can be. Approximately 0.75 English word per max token.

public int? MaxTokens { get; set; }

Property Value

int?

Name

Gets or sets the prompt name.

public string? Name { get; set; }

Property Value

string

TaskText

Gets or sets the actual prompt that is sent to AI.

public string? TaskText { get; set; }

Property Value

string

Temperature

Gets or sets the prompt temperature which decides the randomness of the text generation. Value between 0.0 and 2.0.

public double Temperature { get; set; }

Property Value

double

UseContext

Gets or sets whether the prompt should use PromptContext or not.

public bool UseContext { get; set; }

Property Value

bool
To top