agora.matrix.room_manager

Room lifecycle: identity rooms and project coordination rooms.

Classes

RoomManager

Creates and hydrates identity + project rooms.

class agora.matrix.room_manager.RoomManager[source]

Bases: object

Creates and hydrates identity + project rooms.

__init__(client, homeserver_name='agora.local')[source]
async create_identity_room(config)[source]

Create an identity room with m.agora.agent_config as initial state.

async create_project_room(project_name, agent_ids)[source]
async hydrate_identity(room_id)[source]

Read room state + timeline to rebuild an AgentIdentity.

async upload_knowledge(room_id, file_path, description='')[source]

Upload a file and record its MXC URI as a m.agora.knowledge_ref state event.