Skip to content

Graphorin API reference v0.4.0


Graphorin API reference / @graphorin/memory / / annotate

Function: annotate()

ts
function annotate(origin, inboundTrust): ContentAnnotation;

Defined in: packages/memory/src/context-engine/annotations.ts:125

Build an annotation, enforcing the rule that non-tool-result origins always carry inboundTrust: 'n/a'. A caller that requests a non-'n/a' value for a non-inbound origin is silently corrected (defense-in-depth: the rule is enforced here so callers cannot accidentally violate it).

Parameters

ParameterType
originContentOrigin
inboundTrustInboundTrust

Returns

ContentAnnotation

Stable