agent: Add "batch" argument to the 'text-stream' payload

This allows you to specify a size in bytes that we should wait
before we send the data to the front-end.