Skip to main content

Interface: ModerateContentOptions

Defined in: packages/agentos/src/safety/guardrails/contentModeration.ts:25

Properties​

context​

context: GuardrailContext

Defined in: packages/agentos/src/safety/guardrails/contentModeration.ts:29

Who sent it and where. context.moderation carries the typed fields: surface, room, rating, message, sender.


guards​

guards: IGuardrailService[]

Defined in: packages/agentos/src/safety/guardrails/contentModeration.ts:27

The guards, in registration order. Screens that must run first set config.sequential.


mode?​

optional mode: "enforce" | "dryRun"

Defined in: packages/agentos/src/safety/guardrails/contentModeration.ts:31

enforce (default) or dryRun: every guard runs the same way; the decision reports what would have happened.


stopVendorsOn?​

optional stopVendorsOn: readonly string[]

Defined in: packages/agentos/src/safety/guardrails/contentModeration.ts:38

Reason codes and review codes that stop every further vendor request for this content once a guard answers one. Default none.


timeoutMs?​

optional timeoutMs: number

Defined in: packages/agentos/src/safety/guardrails/contentModeration.ts:33

The deadline for a guard whose config sets none. Default 8000 ms.