-
Notifications
You must be signed in to change notification settings - Fork 7
feat: programmatic rooms.Room API for embedding #6
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Problem Statement
Currently, the only way to interact with the Rooms framework is via the interactive cli.py wizard. This makes it impossible for developers to import Rooms as a library into their own Python applications, web backends, or automated pipelines.
Proposed Solution
- Refactor the core logic in session.py to be fully stand-alone and decoupled from the CLI.
- Expose a clean, high-level
Roomclass (or similar) in theroomspackage. - The API should look something like:
from rooms import Room, SessionConfig, AgentConfig config = SessionConfig(topic="...", agents=[...]) room = Room(config) for turn in room.stream(): print(turn.content)
Alternatives Considered
None. A programmatic entry point is essential for the framework's growth and adoption by the developer community.
Priority
Medium 🟡
Additional Context
This will serve as the foundation for the upcoming --config headless execution mode.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request