Skip to content

Realtime chat

[BETA] Defines a base class for realtime chat modules.

Authors

Henry Wicaksono (henry.wicaksono@gdplabs.id)

References

NONE

BaseRealtimeChat()

Bases: ABC

[BETA] A base class for realtime chat modules.

The BaseRealtimeChat class provides a framework for processing real-time conversations.

Initializes a new instance of the BaseRealtimeChat class.

start(input_streamers=None, output_streamers=None) abstractmethod async

Starts the real-time conversation using the provided input and output streamers.

This abstract method must be implemented by subclasses to define the logic for starting the real-time conversation.

Parameters:

Name Type Description Default
input_streamers list[BaseInputStreamer] | None

The input streamers to use. Defaults to None.

None
output_streamers list[BaseOutputStreamer] | None

The output streamers to use. Defaults to None.

None

Raises:

Type Description
NotImplementedError

If the method is not implemented in a subclass.