This directory contains 5 different implementations of a smart home orchestrator, each demonstrating a different framework pattern while utilizing the Relay Communicate SDK (agent_relay.communicate.Relay).
- Vanilla (
vanilla/main.py): Direct use of the Relay SDK for DM-based fan-out orchestration. - CrewAI (
crewai/main.py): Mimics the CrewAI framework with Agents and Tasks, using Relay as the communication backend. - OpenAI Agents (
openai_agents/main.py): Mimics the OpenAI Assistants API structure (Assistants, Threads, Runs) powered by Relay. - LangGraph (
langgraph/main.py): Implements a state-machine based orchestration where nodes utilize Relay for device communication. - Google ADK (
google_adk/main.py): Demonstrates the Google ADK conversational hub pattern for coordinating specialized agents.
- Python 3.10+
agent-relay-sdk(installed withcommunicatesupport)
Each implementation is self-contained and mocks the specialized device agents for demonstration purposes.
# Example: Running the Vanilla implementation
python3 vanilla/main.pyAll implementations demo 3 core scenarios:
- Bedtime Routine: Securing the home and preparing for sleep.
- Departure Routine: Transitioning to AWAY mode for energy efficiency and security.
- Morning Routine: Gentle wake-up and house synchronization.