Table of Contents

Class PromptService

Namespace
Dynamicweb.AI
Assembly
Dynamicweb.Core.dll

Provides methods for querying prompt information.

public sealed class PromptService
Inheritance
PromptService
Inherited Members

Methods

Delete(int)

Delete prompt by Id.

public bool Delete(int id)

Parameters

id int

The prompt Id

Returns

bool

GetPromptById(int)

Get prompt by Id.

public Prompt? GetPromptById(int id)

Parameters

id int

The prompt Id

Returns

Prompt

GetPrompts()

Get all prompts.

public IEnumerable<Prompt> GetPrompts()

Returns

IEnumerable<Prompt>

Save(Prompt)

Add new or save to existing prompt.

public bool Save(Prompt prompt)

Parameters

prompt Prompt

The prompt

Returns

bool
To top