MCPcopy Create free account
hub / github.com/compozy/agh / ReloadMemory

Method ReloadMemory

internal/api/core/memory.go:706–723  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

704}
705
706func (h *BaseHandlers) ReloadMemory(c *gin.Context) {
707 selector, err := h.decodeMemoryReloadSelector(c)
708 if err != nil {
709 h.respondMemoryError(c, StatusForMemoryError(err), err, nil)
710 return
711 }
712 if selector.Scope != "" || selector.WorkspaceID != "" || selector.AgentName != "" || selector.AgentTier != "" {
713 if _, err := h.resolveMemorySelector(c.Request.Context(), selector, false); err != nil {
714 h.respondMemoryError(c, StatusForMemoryError(err), err, nil)
715 return
716 }
717 }
718 reloadedAt := h.nowUTC()
719 c.JSON(http.StatusOK, contract.MemoryReloadResponse{
720 ReloadedAt: reloadedAt,
721 Generation: reloadedAt.UnixNano(),
722 })
723}
724
725func (h *BaseHandlers) ListMemoryDecisions(c *gin.Context) {
726 if h.MemoryStore == nil {

Callers

nothing calls this directly

Calls 5

respondMemoryErrorMethod · 0.95
resolveMemorySelectorMethod · 0.95
nowUTCMethod · 0.95
StatusForMemoryErrorFunction · 0.85

Tested by

no test coverage detected