events
autogen.events.wrap_event
wrap_event
Wrap a event class with a type field to be used in a union type
This is needed for proper serialization and deserialization of events in a union type.
Name | Description |
---|---|
event_cls | Event class to wrap Type: type[BaseEvent] |