on_stream_chunk


Description:

public virtual void on_stream_chunk (string new_text, bool is_thinking, Chat response)

Virtual callback method called when a streaming chunk is received.

Tools that need to process streaming content can override this method. Default implementation does nothing.

Parameters:

new_text

The new text chunk

is_thinking

Whether this is a thinking chunk

response

The response object