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
intThe prompt Id
Returns
GetPromptById(int)
Get prompt by Id.
public Prompt? GetPromptById(int id)
Parameters
id
intThe prompt Id
Returns
GetPrompts()
Get all prompts.
public IEnumerable<Prompt> GetPrompts()
Returns
Save(Prompt)
Add new or save to existing prompt.
public bool Save(Prompt prompt)
Parameters
prompt
PromptThe prompt