Graphorin API reference v0.4.0
Graphorin API reference / @graphorin/memory / / shouldFireInboundPreamble
Function: shouldFireInboundPreamble()
ts
function shouldFireInboundPreamble(annotations): boolean;Defined in: packages/memory/src/context-engine/annotations.ts:155
Decide whether the per-step inbound-sanitization preamble (D4) should fire for an assembled message list. The preamble fires iff at least one part carries an inbound-trust value other than 'trusted' and 'n/a'. Trusted-only steps skip the preamble for cache-friendliness; preamble is emitted exactly once per step regardless of how many untrusted parts the step carries.
Parameters
| Parameter | Type |
|---|---|
annotations | readonly ContentAnnotation[] |
Returns
boolean