AsposeLLMApi.SendMessageToSessionAsync

AsposeLLMApi.SendMessageToSessionAsync method

Sends a message to a specific chat session and gets a response

public Task<string> SendMessageToSessionAsync(string sessionId, string message, 
    IEnumerable<byte[]>? media = null, CancellationToken cancellationToken = default)
ParameterTypeDescription
sessionIdStringSession identifier
messageStringMessage to send
mediaIEnumerable`1Media to send
cancellationTokenCancellationTokenCancellation token

Return Value

Response from the chat session

See Also