Currently, the CLI script can read and parse in streaming mode, but prints the result only after the whole input has been consumed.
Change it so that recognized messages get printed immediately.
On the API level, give users a choice:
- Pass only the input, get the whole output back in the end. (current behaviour)
- Pass input and a block, call the block for each finished message.
Currently, the CLI script can read and parse in streaming mode, but prints the result only after the whole input has been consumed.
Change it so that recognized messages get printed immediately.
On the API level, give users a choice: