PowercontextBuiltinArtifactsmemorymodels

MemorySearchResult

Search hits together with the mode actually executed.

The last four fields are in-process only: they exist so the Runtime's recall gate can account for what one search cost and admitted. They are exclude=True as defence-in-depth so a future model_dump cannot leak a gate artefact into a response; the HTTP projection is independently safe because search_response enumerates MemorySearchPage's fields explicitly.

Attributes

attributemodeMemoryUsedSearchMode
attributehitstuple[MemoryHit, ...]
= ()
attributererankMemoryRerankTrace | None
= None
attributeadmissionAdmissionCounts | None
= Field(default=None, exclude=True)
attributeembedding_callsint
= Field(default=0, exclude=True)
attributegeneration_callsint
= Field(default=0, exclude=True)
attributequery_embeddingMemoryQueryEmbedding | None
= Field(default=None, exclude=True)

On this page