TsgcAIChat › Methods
Public methods grouped by purpose, followed by the full alphabetical list.
| Name | Description |
|---|---|
| Chat | Sends a user message and returns the full assistant response. |
| ChatAsync | Sends a user message on a background thread and returns a future that resolves to the assistant response. |
| ChatJSON | Sends a user message and returns the answer as a JSON document, retrying once when it does not parse. |
| ChatStream | Sends a user message and receives the response incrementally. |
| ChatWithSystem | One-shot chat with a custom system prompt that is not persisted. |
| ClearHistory | Removes every message stored in the conversation history. |
| Name | Description |
|---|---|
| ChatWithDocument | Sends a user message together with a PDF or image file and returns the assistant response. |
| ChatWithDocumentBase64 | Sends a user message together with a document encoded as base64. |
| ChatWithAttachments | Sends a user message together with several documents and returns the assistant response. |
| ChatJSONWithAttachments | Sends a user message with documents and returns the answer as a JSON document. |
| Name | Description |
|---|---|
| Chat | Sends a user message and returns the full assistant response. |
| ChatAsync | Sends a user message on a background thread and returns a future that resolves to the assistant response. |
| ChatJSON | Sends a user message and returns the answer as a JSON document, retrying once when it does not parse. |
| ChatJSONWithAttachments | Sends a user message with documents and returns the answer as a JSON document. |
| ChatStream | Sends a user message and receives the response incrementally. |
| ChatWithAttachments | Sends a user message together with several documents and returns the assistant response. |
| ChatWithDocument | Sends a user message together with a PDF or image file and returns the assistant response. |
| ChatWithDocumentBase64 | Sends a user message together with a document encoded as base64. |
| ChatWithSystem | One-shot chat with a custom system prompt that is not persisted. |
| ClearHistory | Removes every message stored in the conversation history. |