Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

AMEM.SUMMARY.SET

Last updated
AMEM.SUMMARY.SET agent_id summary
Group
Agent memory
Complexity
O(1)
Arity
-3 (at least 3 words, counting the command name)
Flags
write, fast
Keys
first 1, last 1, step 1
HotKV Cloud
Performance and Scale
On-Premise
requires the amem-summary license feature

Agent summaries keep one rolling, versioned text summary per agent, so a long-running agent can carry a compact summary in its prompt instead of its whole history. AMEM.SUMMARY.SET replaces the agent’s summary with summary, creating the entry if needed. Each change increments the version, starting at 1.

Case RESP2 RESP3
Summary stored Integer: the new version Same

Errors:

  • ERR wrong number of arguments for 'amem.summary.set' command if the argument count is wrong.
  • NOLICENSE amem-summary requires a HotKV license. Contact sales@hotkv.com if your license does not include the amem-summary feature.
127.0.0.1:6379> AMEM.SUMMARY.SET agent-42 "User is planning a trip to Paris in May."
(integer) 1
127.0.0.1:6379> AMEM.SUMMARY.SET agent-42 "User booked flights to Paris for May 3-10."
(integer) 2

HotKV-only command. Redis and Valkey have no equivalent.

AMEM.SUMMARY.APPEND, AMEM.SUMMARY.GET, AMEM.SUMMARY.DROP, AMEM.SUMMARY.LIST, AI features guide