TsgcAIChat › Methods

TsgcAIChat Methods

Public methods grouped by purpose, followed by the full alphabetical list.

Chat

NameDescription
ChatSends a user message and returns the full assistant response.
ChatAsyncSends a user message on a background thread and returns a future that resolves to the assistant response.
ChatJSONSends a user message and returns the answer as a JSON document, retrying once when it does not parse.
ChatStreamSends a user message and receives the response incrementally.
ChatWithSystemOne-shot chat with a custom system prompt that is not persisted.
ClearHistoryRemoves every message stored in the conversation history.

Documents

NameDescription
ChatWithDocumentSends a user message together with a PDF or image file and returns the assistant response.
ChatWithDocumentBase64Sends a user message together with a document encoded as base64.
ChatWithAttachmentsSends a user message together with several documents and returns the assistant response.
ChatJSONWithAttachmentsSends a user message with documents and returns the answer as a JSON document.

All Methods (alphabetical)

NameDescription
ChatSends a user message and returns the full assistant response.
ChatAsyncSends a user message on a background thread and returns a future that resolves to the assistant response.
ChatJSONSends a user message and returns the answer as a JSON document, retrying once when it does not parse.
ChatJSONWithAttachmentsSends a user message with documents and returns the answer as a JSON document.
ChatStreamSends a user message and receives the response incrementally.
ChatWithAttachmentsSends a user message together with several documents and returns the assistant response.
ChatWithDocumentSends a user message together with a PDF or image file and returns the assistant response.
ChatWithDocumentBase64Sends a user message together with a document encoded as base64.
ChatWithSystemOne-shot chat with a custom system prompt that is not persisted.
ClearHistoryRemoves every message stored in the conversation history.