Skip to main content

Interface: ImageUnderReview

Defined in: packages/agentos/src/safety/guardrails/builtin/ImageGuardrail.ts:26

One image as every check sees it: the bytes the guard captured once, never a URL. Each check gets its own copy.

Properties​

bytes​

bytes: Uint8Array

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


deadlineSignal?​

optional deadlineSignal: AbortSignal

Defined in: packages/agentos/src/safety/guardrails/builtin/ImageGuardrail.ts:37

Aborted once the guard's deadline has passed (its own timeoutMs, or the dispatcher's when that comes first) or the guard has answered: nobody waits for the check's answer. A check sends nothing once it is aborted, and hands it to a request in flight so the request stops. The guard sets it on every call; it is optional so that an ImageUnderReview a host or a test builds itself needs none.


index​

index: number

Defined in: packages/agentos/src/safety/guardrails/builtin/ImageGuardrail.ts:28

The image's place in the input's visionInputs, from 0.


mimeType​

mimeType: string

Defined in: packages/agentos/src/safety/guardrails/builtin/ImageGuardrail.ts:30