webchat
webchat
¶
WebChatChannel — in-memory message queue for webchat/testing.
Classes¶
WebChatChannel
¶
WebChatChannel(*, bus: Optional[EventBus] = None)
Bases: BaseChannel
In-memory webchat channel for testing and embedded web UIs.
Messages are stored in an internal list and can be retrieved via
:meth:get_messages. No external dependencies are required.
| PARAMETER | DESCRIPTION |
|---|---|
bus
|
Optional event bus for publishing channel events.
TYPE:
|
Source code in src/openjarvis/channels/webchat.py
Functions¶
connect
¶
disconnect
¶
send
¶
send(channel: str, content: str, *, conversation_id: str = '', metadata: Dict[str, Any] | None = None) -> bool
Append a message to the in-memory queue.
Source code in src/openjarvis/channels/webchat.py
status
¶
status() -> ChannelStatus
list_channels
¶
on_message
¶
get_messages
¶
get_messages() -> List[ChannelMessage]