Simplify AI Event classes by using base classes

Created on 11 August 2025, about 2 months ago

Problem/Motivation

Now we have four event types:
PostGenerateResponseEvent.php
PostStreamingResponseEvent.php
PreGenerateResponseEvent.php
ProviderDisabledEvent.php

And most of them contain the same properties, getters, and setters, which leads to code duplication.

Proposed resolution

Let's introduce base classes, containing the base properties, that are used in the events, instead of having the same code in each event.

Remaining tasks

✨ Feature request
Status

Active

Version

1.2

Component

AI Core module

Created by

πŸ‡¦πŸ‡²Armenia murz Yerevan, Armenia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024