Skip to main content

ChannelRouteConfig

Defined in the config module.
AI Agent Configuration for routing channel messages to agents. Attributes: channel_type: Platform name (telegram, discord, slack, etc.) token_env: Environment variable name for the channel token app_token_env: Optional env var for app token (Slack Socket Mode) routes: Mapping of context → agent_id Keys: “dm”, “group”, “channel”, “default” Values: agent ID strings enabled: Whether this channel is enabled metadata: Additional channel-specific configuration

Properties

str
No description available.
str
No description available.
Optional[str]
No description available.
Dict[str, str]
No description available.
bool
No description available.
Dict[str, Any]
No description available.

Methods

get_agent_id()

Resolve agent ID for a given message context.
  • from_dict: Create from dictionary.
  • to_dict: Convert to dictionary.

Source

View on GitHub

praisonaiagents/gateway/config.py at line 929

Configuration Overview

Agent Config