Skip to content

Graphorin API reference v0.4.0


Graphorin API reference / @graphorin/memory / / EntityResolveDecision

Type Alias: EntityResolveDecision

ts
type EntityResolveDecision = 
  | {
  entityId: string;
  kind: "match";
  similarity: number;
  via: "lexical" | "embedding";
}
  | {
  entityId: string;
  kind: "ambiguous";
  similarity: number;
}
  | {
  kind: "new";
};

Defined in: packages/memory/src/graph/entity-resolver.ts:47

Outcome of the pure resolution policy. match reuses an existing entity; ambiguous flags a middle-similarity candidate for the caller to adjudicate (or conservatively reject); new mints a fresh entity.

Stable