blab_chatbot_bot_client.conversation_websocket#

Contains a class that connects with BLAB Controller via WebSocket.

Bots should implement subclasses of WebSocketBotClientConversation.

Module Contents#

Classes#

WebSocketBotClientConversation

Represents a conversation on the client, using WebSocket.

Attributes#

SettingsType#
class WebSocketBotClientConversation(*args, **kwargs)#

Bases: blab_chatbot_bot_client.conversation.BotClientConversation[SettingsType], Generic[SettingsType]

Represents a conversation on the client, using WebSocket.

Create an instance. Arguments are forwarded to the parent class.

Parameters:
  • args (Any) –

  • kwargs (Any) –

_instances: dict[str, WebSocketBotClientConversation[SettingsType]]#
classmethod start_http_server(settings)#

Start an HTTP server, called when there is a new conversation.

Parameters:

settings (SettingsType) – the bot settings

Return type:

None