Class AsposeLLMApi
AsposeLLMApi class
Provides a convenient API for working with LLM functionality
public class AsposeLLMApi : IDisposable
Constructors
| Name | Description |
|---|
| AsposeLLMApi(PresetCoreBase, ILogger?) | Initializes a new instance of the AsposeLLMApi class using the supplied preset. |
Properties
| Name | Description |
|---|
| DefaultPreset { get; } | Gets the preset that provides default parameters for this API instance. |
Methods
| Name | Description |
|---|
| static Create(PresetCoreBase, ILogger?) | Creates a new AsposeLLMApi instance using the provided preset. |
| Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
| ForceCacheCleanup(CacheCleanupStrategy) | Forces cleanup of the current chat session cache using the specified strategy. |
| GetDefaultParametersAsync() | Gets the default parameter sets returned by the engine. |
| GetDefaultPreset() | Creates a preset populated with engine default parameters. |
| LoadChatSession(string) | Loads a chat session from a file |
| SaveChatSession(string, string?) | Saves a chat session to a file |
| SendMessageAsync(string, IEnumerable<byte[]>?, PresetCoreBase?, CancellationToken) | Sends a message using parameters from the provided preset, creating a session if necessary. |
| SendMessageToSessionAsync(string, string, IEnumerable<byte[]>?, CancellationToken) | Sends a message to a specific chat session and gets a response |
| StartNewChatAsync(PresetCoreBase, string) | Starts a new chat session using the supplied preset. |
See Also