send_async


Description:

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

Sends a Message object asynchronously with streaming support.

For CodeAssistant, this regenerates the system prompt on each call to include current context. Overrides base implementation to build complex system prompt with current context.o

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