Skip to main content

Class: ChatTaskResponder

Defined in: .source/wunderland/src/channels/chat/ChatTaskResponder.ts:37

Bridges incoming channel messages to the full AgentOS tool execution pipeline. Handles security, conversation state, and response delivery.

Constructors​

Constructor​

new ChatTaskResponder(config): ChatTaskResponder

Defined in: .source/wunderland/src/channels/chat/ChatTaskResponder.ts:45

Parameters​

config​

ChatTaskResponderConfig

Returns​

ChatTaskResponder

Methods​

close()​

close(): void

Defined in: .source/wunderland/src/channels/chat/ChatTaskResponder.ts:159

Close database connections.

Returns​

void


getSecurityTier()​

getSecurityTier(): SecurityTier

Defined in: .source/wunderland/src/channels/chat/ChatTaskResponder.ts:154

Get the security tier.

Returns​

SecurityTier


getToolAllowlist()​

getToolAllowlist(): string[] | null

Defined in: .source/wunderland/src/channels/chat/ChatTaskResponder.ts:149

Get the tool allowlist for this responder's security tier.

Returns​

string[] | null


handle()​

handle(messageText, ctx): Promise<string>

Defined in: .source/wunderland/src/channels/chat/ChatTaskResponder.ts:95

Handle an incoming message from a chat channel.

Parameters​

messageText​

string

The user's message text.

ctx​

ChannelContext

Channel context with platform info and reply/send functions.

Returns​

Promise<string>

The assistant's text response (files are sent directly via ctx.sendFileFn).


shouldEngage()​

shouldEngage(ctx): Promise<{ allowed: boolean; reason?: string; silent?: boolean; }>

Defined in: .source/wunderland/src/channels/chat/ChatTaskResponder.ts:63

Combined group-policy + security gate.

Group-policy drops are SILENT (no reply) so the deny surface cannot be probed; the legacy security gate keeps its user-visible reason.

Parameters​

ctx​

object & GroupMessageContext

Returns​

Promise<{ allowed: boolean; reason?: string; silent?: boolean; }>