/ gateway / __init__.py
__init__.py
 1  """
 2  Hermes Gateway - Multi-platform messaging integration.
 3  
 4  This module provides a unified gateway for connecting the Hermes agent
 5  to various messaging platforms (Telegram, Discord, WhatsApp) with:
 6  - Session management (persistent conversations with reset policies)
 7  - Dynamic context injection (agent knows where messages come from)
 8  - Delivery routing (cron job outputs to appropriate channels)
 9  - Platform-specific toolsets (different capabilities per platform)
10  """
11  
12  from .config import GatewayConfig, PlatformConfig, HomeChannel, load_gateway_config
13  from .session import (
14      SessionContext,
15      SessionStore,
16      SessionResetPolicy,
17      build_session_context_prompt,
18  )
19  from .delivery import DeliveryRouter, DeliveryTarget
20  
21  __all__ = [
22      # Config
23      "GatewayConfig",
24      "PlatformConfig", 
25      "HomeChannel",
26      "load_gateway_config",
27      # Session
28      "SessionContext",
29      "SessionStore",
30      "SessionResetPolicy",
31      "build_session_context_prompt",
32      # Delivery
33      "DeliveryRouter",
34      "DeliveryTarget",
35  ]