send_async


Description:

public virtual async void send_async (Message message, Cancellable? cancellable = null) throws Error

Sends a Message object asynchronously with streaming support.

This is the new method for sending messages. Builds full message history from session.messages, filters to get API-compatible messages, and sends to Chat.

Parameters:

message

The message object to send (the user message that was just added to session)

cancellable

Optional cancellable for canceling the request

Exceptions:

Error

if the request fails