Skip to main content

Interface: GroupPolicy

Defined in: packages/agentos/src/io/channels/types.ts:255

Group-chat safety policy. Evaluated by evaluateGroupPolicy() (./group-policy.ts) before inbound group messages reach the agent — enforced in ChannelRouter and reusable by host security gates.

Properties​

activation​

activation: GroupActivation

Defined in: packages/agentos/src/io/channels/types.ts:257

When the agent engages in group conversations. Recommended default for new bindings: 'mention'.


allowFrom?​

optional allowFrom: string[]

Defined in: packages/agentos/src/io/channels/types.ts:261

Only these sender IDs may activate the agent (empty/undefined = everyone).


botLoopProtection?​

optional botLoopProtection: boolean

Defined in: packages/agentos/src/io/channels/types.ts:267

Drop messages from bot senders (loop protection). Default true.


denyFrom?​

optional denyFrom: string[]

Defined in: packages/agentos/src/io/channels/types.ts:263

These sender IDs are always dropped (wins over allowFrom).


ownerIds?​

optional ownerIds: string[]

Defined in: packages/agentos/src/io/channels/types.ts:259

Extra owner user IDs honored by 'owner-only' (the binding's ownerUserId always counts).


toolRestrictions?​

optional toolRestrictions: string[]

Defined in: packages/agentos/src/io/channels/types.ts:265

Tool names blocked for turns originating from this group (host-enforced).