- Updated CLI to load configuration from user-specific and project-specific YAML files, prioritizing user settings. - Introduced a new command `/platforms` to display the status of connected messaging platforms (Telegram, Discord, WhatsApp). - Implemented a gateway system for handling messaging interactions, including session management and delivery routing for cron job outputs. - Added support for environment variable configuration and a dedicated gateway configuration file for advanced settings. - Enhanced documentation in README.md and added a new messaging.md file to guide users on platform integrations and setup. - Updated toolsets to include platform-specific capabilities for Telegram, Discord, and WhatsApp, ensuring secure and tailored interactions.
36 lines
1020 B
Python
36 lines
1020 B
Python
"""
|
|
Hermes Gateway - Multi-platform messaging integration.
|
|
|
|
This module provides a unified gateway for connecting the Hermes agent
|
|
to various messaging platforms (Telegram, Discord, WhatsApp) with:
|
|
- Session management (persistent conversations with reset policies)
|
|
- Dynamic context injection (agent knows where messages come from)
|
|
- Delivery routing (cron job outputs to appropriate channels)
|
|
- Platform-specific toolsets (different capabilities per platform)
|
|
"""
|
|
|
|
from .config import GatewayConfig, PlatformConfig, HomeChannel, load_gateway_config
|
|
from .session import (
|
|
SessionContext,
|
|
SessionStore,
|
|
SessionResetPolicy,
|
|
build_session_context_prompt,
|
|
)
|
|
from .delivery import DeliveryRouter, DeliveryTarget
|
|
|
|
__all__ = [
|
|
# Config
|
|
"GatewayConfig",
|
|
"PlatformConfig",
|
|
"HomeChannel",
|
|
"load_gateway_config",
|
|
# Session
|
|
"SessionContext",
|
|
"SessionStore",
|
|
"SessionResetPolicy",
|
|
"build_session_context_prompt",
|
|
# Delivery
|
|
"DeliveryRouter",
|
|
"DeliveryTarget",
|
|
]
|