Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available:
6.8.0
metadata
title: FloorManager
emoji: π
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 6.2.0
app_file: test_app.py
pinned: false
license: apache-2.0
short_description: Minimal functional floor manager
OpenFloor Protocol (OFP) Floor Manager
A Python implementation of the OpenFloor Protocol Floor Manager with Gradio UI for managing multi-agent conversations.
Project Status
β Completed
- Project structure created
- Configuration management (
settings.py) - Logging infrastructure
- Helper utilities
- Basic protocol envelope handling
- Requirements file with all dependencies
π§ In Progress
- Protocol events module (has syntax errors that need manual fixing)
- Protocol handler
- Core business logic (FloorManager, FloorSession, Agent, Convener)
π Todo
- FastAPI backend endpoints
- Gradio UI implementation
- Example agents
- Integration testing
- Documentation
Installation
# Create virtual environment
python3 -m venv venv
source venv/bin/activate # On macOS/Linux
# or
venv\Scripts\activate # On Windows
# Install dependencies
pip install -r requirements.txt
# Install OpenFloor SDK from test PyPI
pip install -i https://test.pypi.org/simple/ openfloor
Architecture
The project follows a modular architecture:
ofpFloor/
βββ src/
β βββ utils/ # Configuration, logging, helpers
β βββ protocol/ # OFP protocol implementation
β βββ core/ # Business logic (Floor Manager, Sessions, Agents)
β βββ api/ # FastAPI endpoints
β βββ ui/ # Gradio interface
βββ tests/ # Unit and integration tests
βββ examples/ # Example agents and scenarios
Known Issues
Syntax Errors in src/protocol/events.py
The file has Python syntax errors that need to be manually fixed:
- Line 9:
event_ Dict[str, Any]should beevent_ Dict[str, Any] - Line 10:
meta Optional[Dict[str, Any]]should bemeta Optional[Dict[str, Any]] - Line 30:
if metashould beif meta
These need to be fixed before the project can run.
Next Steps
- Fix syntax errors in
src/protocol/events.py - Complete protocol handler implementation
- Implement core Floor Manager logic
- Create FastAPI endpoints
- Build Gradio UI
- Test with example agents
References
- OpenFloor Protocol Specifications
- OFP Assistant Manifest
- OFP Inter-Agent Message
- OFP Dialog Event Object
- Gradio Documentation
License
MIT License