Namespace JD.AI.Gateway.Services
Classes
- AgentPoolService
Manages a pool of live agent instances. Each agent has its own Microsoft.SemanticKernel.Kernel, Microsoft.SemanticKernel.ChatCompletion.ChatHistory, and lifecycle.
- AgentRouter
Routes inbound channel messages to agents in the agent pool. Supports routing strategies: round-robin, dedicated (1:1 channel:agent), or tag-based.
- ChannelFactory
Creates IChannel instances from ChannelConfig definitions. Supports all built-in channel types: discord, signal, slack, telegram, web, openclaw.
- EventHubBroadcastService
Bridges gateway event-bus messages onto the SignalR callbacks consumed by clients.
- GatewayHealthCheck
Health check that verifies the gateway is operational.
- GatewayOrchestrator
Hosted service that orchestrates gateway startup: registers channels from config, auto-connects channels, auto-spawns agents, wires message routing, and registers JD.AI agents with OpenClaw.
- SessionCleanupService
Background service that periodically scans for stale sessions and closes them. A session is considered stale when it has been inactive (no UpdatedAt change) for longer than the configured MaxInactiveAge.