Class ProxyModeHandler
Proxy mode: JD.AI is the sole agent backend for a dedicated OpenClaw session. OpenClaw acts purely as transport. No need to abort — there's no competing agent.
public sealed class ProxyModeHandler : IOpenClawModeHandler
- Inheritance
-
ProxyModeHandler
- Implements
- Inherited Members
Constructors
ProxyModeHandler(ILogger<ProxyModeHandler>)
Proxy mode: JD.AI is the sole agent backend for a dedicated OpenClaw session. OpenClaw acts purely as transport. No need to abort — there's no competing agent.
public ProxyModeHandler(ILogger<ProxyModeHandler> logger)
Parameters
loggerILogger<ProxyModeHandler>
Properties
Mode
The routing mode this handler supports.
public OpenClawRoutingMode Mode { get; }
Property Value
Methods
HandleAsync(OpenClawEvent, string, OpenClawChannelRouteConfig, OpenClawBridgeChannel, Func<string, string, Task<string?>>, CancellationToken)
Processes an incoming OpenClaw event. Returns true if the message was handled.
public Task<bool> HandleAsync(OpenClawEvent evt, string channelName, OpenClawChannelRouteConfig routeConfig, OpenClawBridgeChannel bridge, Func<string, string, Task<string?>> messageProcessor, CancellationToken ct = default)
Parameters
evtOpenClawEventThe raw OpenClaw event.
channelNamestringThe OpenClaw channel name (e.g., "discord", "signal").
routeConfigOpenClawChannelRouteConfigThe per-channel routing configuration.
bridgeOpenClawBridgeChannelThe OpenClaw bridge for sending responses.
messageProcessorFunc<string, string, Task<string>>Callback that runs user content through the JD.AI agent and returns the response.
ctCancellationTokenCancellation token.