Skip to content

Custom EventProcessor

Alon Gubkin edited this page Mar 1, 2022 · 2 revisions

InferenceDB uses event processors to parse messages from different Model Serving frameworks.

As an example, see KServeEventProcessor.

@event_processor("custom")
class MyEventProcessor(EventProcessor):
    async def process_event(self, event) -> Inference:
        ...