xr_ai_web_events#
Live, participant-aware browser views over typed agent events.
Attributes#
Shared runtime topic consumed by |
Classes#
Serve selected runtime events in a bounded participant-aware web view. |
|
One application event selected for the live browser view. |
Package Contents#
- class xr_ai_web_events.WebEventsAgent(
- *,
- host: str = '127.0.0.1',
- port: int = 8092,
- max_events: int = 5000,
- title: str = 'XR AI Agent Events',
Serve selected runtime events in a bounded participant-aware web view.
- property running: bool#
Whether the HTTP server is currently running.
- property url: str#
Return the configured or currently bound HTTP URL.
- async start() None#
Bind the HTTP listener and start serving the viewer.
- async stop() None#
Stop the HTTP listener without discarding retained events.
- xr_ai_web_events.WEB_EVENT_TOPIC#
Shared runtime topic consumed by
WebEventsAgent.
- class xr_ai_web_events.WebEvent#
One application event selected for the live browser view.
- topic: str#
Stable presentation topic used to group the event in the browser.
- payload: dict[str, pydantic.JsonValue]#
JSON-compatible application payload, limited to 16 KiB when serialized.
- title: str | None#
Optional human-readable title for the presentation topic.