AsposeLLMApi.SendMessageAsync

AsposeLLMApi.SendMessageAsync method

Sends a message using parameters from the provided preset, creating a session if necessary.

public Task<string> SendMessageAsync(string message, IEnumerable<byte[]>? media = null, 
    PresetCoreBase? preset = null, CancellationToken cancellationToken = default)
ParameterTypeDescription
messageStringThe message text to send to the chat session.
mediaIEnumerable`1Optional media payload as raw byte arrays.
presetPresetCoreBasePreset that supplies chat, context, and sampler parameters.
cancellationTokenCancellationTokenCancellation token

Return Value

Response text returned by the chat session.

See Also