Manages streaming responses from Goose
processThe processx process object
bufferAccumulated response buffer
callbackChunk callback function
error_callbackError callback function
complete_callbackCompletion callback function Initialize stream handler
new()StreamHandler$new(callback, error_callback, complete_callback)callbackFunction to call with chunks
error_callbackFunction for errors
complete_callbackFunction for completion Start streaming process
start()StreamHandler$start(query, session_id = NULL)queryThe query to execute
session_idOptional session ID Monitor streaming process Get accumulated buffer
monitor()StreamHandler$monitor()
get_response()StreamHandler$get_response()Complete response text Stop streaming
stop()StreamHandler$stop()
clone()The objects of this class are cloneable with this method.
StreamHandler$clone(deep = FALSE)deepWhether to make a deep clone.