Developer's reference
Contents
[
Hide
]
This reference describes how to work with Aspose.LLM for .NET.
Typical flow:
- Create an API instance — Choose a preset and call
AsposeLLMApi.Create(preset). - Chat sessions — Start a session with
StartNewChatAsync, then send messages withSendMessageAsyncorSendMessageToSessionAsync. - Session persistence — Save and load conversation state with
SaveChatSessionandLoadChatSession. - License — Apply a license before using the API.
Additional capabilities:
- Default parameters —
GetDefaultParametersAsync()andGetDefaultPreset()return engine defaults. - Cache cleanup —
ForceCacheCleanup(strategy)to free context cache (e.g. when switching conversations). - Single instance — Only one
AsposeLLMApiinstance per process.
Sections
- Presets — Preset types and usage.
- Chat sessions — Starting sessions and sending messages.
- Session persistence — Saving and loading chat sessions.
- License — Applying and checking license.
- API reference — Full API documentation (external).