MemoryHit

One recalled memory, as a provider returns it from recall.

The framework parses it, keeps it only if its binding belongs to the calling scope, and shows it to the model as untrusted reference.

Fields

idstringrequired

The record's id, the same one remember returned. The model can pass it to forget_memory.

versionstringrequired

The record's version, the same one remember returned.

textstringrequired

The stored fact.

scorenumberrequired

How well the record matches the query; higher is better. The scale is the provider's own (local_memory uses the negated FTS5 bm25 rank).

origin"user" | "tool_output" | "model" | "host"required

The origin the record was saved with (user, tool_output, model or host), returned unchanged.

bindingBindingrequired

Issued by the host; the provider stores it opaquely.

Edit on GitHub

On this page