MemoryScopeShow reports the effective selector and precedence chain.
(c *gin.Context)
| 127 | |
| 128 | // MemoryScopeShow reports the effective selector and precedence chain. |
| 129 | func (h *BaseHandlers) MemoryScopeShow(c *gin.Context) { |
| 130 | selector, err := h.resolveMemorySelector(c.Request.Context(), memorySelectorFromQuery(c), false) |
| 131 | if err != nil { |
| 132 | h.respondMemoryError(c, StatusForMemoryError(err), err, nil) |
| 133 | return |
| 134 | } |
| 135 | c.JSON(http.StatusOK, contract.MemoryScopeShowResponse{ |
| 136 | Selector: memorySelectorPayload(selector), |
| 137 | Precedence: memoryPrecedencePayloads(selector), |
| 138 | Roots: h.memorySelectorRoots(selector), |
| 139 | }) |
| 140 | } |
| 141 | |
| 142 | // SearchMemory returns ranked durable memory matches. |
| 143 | func (h *BaseHandlers) SearchMemory(c *gin.Context) { |
nothing calls this directly
no test coverage detected