Resolve #3489690 "Add an event"
This introduces:
- An unique id for each requests to follow during the event lifetime.
- An event that is triggered when the stream is consumed.
- An integration of this in the AI Logging module, so it actually logs streamed content.
- Added methods to help and trigger this in the StreamedChatMessageIterators.
- Documentation on how to use it.
- Updated tests.
- Corresponding test issue for OpenAI here: ai_provider_openai!4
Edited by Marcus Johansson