Class CategoryGuessing
Implementation of AI functions for category guessing
Inherited Members
Namespace: SuperOffice.CRM.AI
Assembly: SoDataBase.BusinessLogic.dll
Syntax
[SoInject("Database")]
public class CategoryGuessing
Constructors
CategoryGuessing()
Implementation of AI functions for category guessing
Declaration
public CategoryGuessing()
Methods
GetCategorizationRequestItemAsync(int, CancellationToken)
Get the data required by the Category Guesser
Declaration
public Task<CategoryGuessing.CategorizationRequestItem> GetCategorizationRequestItemAsync(int ticketId, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | ticketId | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<CategoryGuessing.CategorizationRequestItem> |
GetCategorizationTrainingItemsAsync(int, int, int, CancellationToken)
The category guesser training API will be called with an array of CategorizationTrainingItem during the (background, Batch) execution of this call
Declaration
public IAsyncEnumerable<CategoryGuessing.CategorizationTrainingItem> GetCategorizationTrainingItemsAsync(int selectionId, int maxItems, int maxTextLength, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | selectionId | Id of selection of tickets, to retrieve training data from |
| int | maxItems | Maximum number of tickets to retrieve data from |
| int | maxTextLength | Maximum length of PlainTextBody or any other large text, truncated to nearest word boundary |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| IAsyncEnumerable<CategorizationTrainingItem> | Placeholder for result... should this be a BatchTaskId? maybe not useful? |
Remarks
See class diagram in Modelling\Diagrams\Ticket_Message.cd for the database structure that's referred here