struct

Engram::MemoryHit

Inherits Struct < Value < Object

One ranked or recent memory, as returned across the search/recent seam.

search.cr is built in a parallel stage; rather than depend on its concrete type, McpServer is constructed with plain Procs (see McpServer::SearchProc / McpServer::RecentProc) that must return Array(MemoryHit). This struct IS the seam contract.

Constructors

new(id : Int64, title : String, topics : Array(String), snippet : String, score : Float64 | Nil = nil)
Source

Instance methods

clone
Source
copy_with(id _id = @id, title _title = @title, topics _topics = @topics, snippet _snippet = @snippet, score _score = @score)
Source
id
score
snippet
title
topics