Skip to main content

Interface: ModerationContext

Defined in: packages/agentos/src/safety/guardrails/ModerationContext.ts:14

Properties​

messageId?​

optional messageId: string

Defined in: packages/agentos/src/safety/guardrails/ModerationContext.ts:21

The content's own id in the host's store.


rating?​

optional rating: string

Defined in: packages/agentos/src/safety/guardrails/ModerationContext.ts:19

The place's content rating, in the host's own words (safe, standard, ...). A word.


roomId?​

optional roomId: string

Defined in: packages/agentos/src/safety/guardrails/ModerationContext.ts:17

The place the content appears in: a room, a thread, a page.


sender?​

optional sender: object

Defined in: packages/agentos/src/safety/guardrails/ModerationContext.ts:23

Who wrote the content, when that is not the userId the call runs for.

id​

id: string

kind?​

optional kind: "agent" | "account" | "guest"


surface​

surface: string & object | ModerationSurface

Defined in: packages/agentos/src/safety/guardrails/ModerationContext.ts:15