[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.AI.OpenAIDocumentAssistantBase.TryParseTextTableResponse

TryParseTextTableResponse Method

TryParseTextTableResponse(string)

Tries to parse an OpenAI response that represents a table. Expects the response to use dashes ('-') and pipes ('|') to represent the table grid lines, for example:

| Item | Description | Unit | Quantity |
|-------------|-------------------------|------|----------|
| S-502-2414 | Firewall(101-150 users) | Ea | 1 |
| S-502-2417 | IPS(101-150 users) | Ea | 1 |

Declaration
public static Table TryParseTextTableResponse(string text)
Public Shared Function TryParseTextTableResponse(text As String) As Table
Parameters
Type Name Description
string text

The textual representation of the table to parse.

Returns
Type Description
Table

The Table object or null if parsing failed.