| Method |
Description |
| Ask |
Sends a prompt to the current provider and returns a response. |
| Cancel |
Cancels the current request if an operation is in progress. |
| ClearHeaders |
Removes all custom request headers for the current session. |
| ClearHistory |
Removes all messages and responses from the client history. |
| Connect |
Connects to the selected provider using the specified model, credentials and connection options. |
| Disconnect |
Disconnects from the current provider and closes the active session connection. |
| EstimateTokens |
Returns an estimated token count for the specified message text. |
| ExportHistory |
Exports messages from the client history to a file. |
| FindMessage |
Searches the conversation history for a message or response that matches the specified text. |
| GetFirstMessage |
Retrieves the first message and response from the client history. |
| GetFirstModel |
Retrieves the first model available for the current provider. |
| GetHeader |
Returns the value of a HTTP header from the server response. |
| GetMessage |
Retrieves a specific message prompt and response from the client history using a message identifier. |
| GetNextMessage |
Retrieves the next message and response from the client history. |
| GetNextModel |
Retrieves the next model available for the current provider. |
| GetProvider |
Returns information about a provider, including its names, endpoint, default model and flags. |
| ImportHistory |
Imports message history from a file into the current client session. |
| Initialize |
Initializes the control and optionally specifies a runtime license key. |
| NormalizeText |
Normalizes message text by removing extraneous whitespace and applying consistent formatting |
| Reset |
Resets the control to its default state and clears session-specific information. |
| SendMessage |
Sends a prompt to the current model, returning the response and message identifier. |
| SetHeader |
Sets a custom HTTP header value that to be included with new requests |
| TrimHistory |
Removes older messages from the conversation history. |
| Uninitialize |
Uninitializes the control and releases resources allocated by the current session. |
| ValidateModel |
Validates a model name for the current provider. |
| ValidateText |
Checks whether the specified message text is valid for use as a prompt. |