Developer's reference

Contents
[ ]

This reference describes how to work with Aspose.LLM for .NET.

Typical flow:

  1. Create an API instance — Choose a preset and call AsposeLLMApi.Create(preset).
  2. Chat sessionsStart a session with StartNewChatAsync, then send messages with SendMessageAsync or SendMessageToSessionAsync.
  3. Session persistenceSave and load conversation state with SaveChatSession and LoadChatSession.
  4. License — Apply a license before using the API.

Additional capabilities:

  • Default parametersGetDefaultParametersAsync() and GetDefaultPreset() return engine defaults.
  • Cache cleanupForceCacheCleanup(strategy) to free context cache (e.g. when switching conversations).
  • Single instance — Only one AsposeLLMApi instance per process.

Sections