Channel Route Config • AI Agent SDK

ChannelRouteConfig: Configuration for routing channel messages to agents.

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

ResponseField str

No description available.

ResponseField str

No description available.

ResponseField Optional[str]

No description available.

ResponseField Dict[str, str]

No description available.

ResponseField bool

No description available.

ResponseField Dict[str, Any]

No description available.

Methods

Internal & Generic Methods
  • from_dict: Create from dictionary.
  • to_dict: Convert to dictionary.

Source

View on GitHub

praisonaiagents/gateway/config.py at line 1413


Related Documentation