telemem

v1.10.1
io.github.TeleAI-UAGI/telemem Checked 2 hours ago Published 1 month ago

Long-term and multimodal memory for AI agents - character-aware, mem0-compatible, fully-local option

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

add_memory Add memory

Store a fact, preference, or conversation in TeleMem long-term memory. Provide `text` for a single statement or `messages` for conversation turns. Scoped by user_id/agent_id/run_id; defaults to the server's default user.

ParameterTypeDescription
agent_idOptional agent scope.
inferbooleanExtract salient facts with the LLM before storing (TeleMem's default pipeline). Set false to store the raw text as-is.
messagesConversation turns as [{"role": "user"|"assistant", "content": "..."}]. Takes precedence over `text`.
metadataArbitrary metadata to attach to the stored memories.
run_idOptional run/session scope.
textA single statement to remember. Use this or `messages`.
user_idUser the memory belongs to.

search_memories Search memories

Semantic search over TeleMem memories. Returns the matching memories as one consolidated text passage (TeleMem fuses related memories). Shared event memories (pseudo-user "events") are searched automatically.

ParameterTypeDescription
query *stringNatural-language description of what to find.
agent_idOptional agent scope.
limitintegerMaximum memories to consider.
run_idOptional run/session scope.
thresholdMinimum similarity score in [0, 1] for a memory to match.
user_idUser scope; defaults to the server's default user.

get_memories List memories

List stored memories for a user/agent/run with their memory_ids. Use user_id "events" to list shared conversation-event memories.

ParameterTypeDescription
agent_idOptional agent scope.
limitintegerMaximum memories to return.
run_idOptional run/session scope.
user_idUser scope; defaults to the server's default user.

get_memory Get memory

Fetch a single memory by its memory_id.

ParameterTypeDescription
memory_id *stringExact memory_id to fetch.

update_memory Update memory

Overwrite the text of an existing memory by memory_id.

ParameterTypeDescription
memory_id *stringExact memory_id to update.
text *stringReplacement text for the memory.
metadataOptional replacement metadata.

delete_memory Delete memory

Delete a single memory by memory_id.

ParameterTypeDescription
memory_id *stringExact memory_id to delete.

delete_all_memories Delete all memories in scope

Delete every memory in the given scope. Destructive: requires an explicit user_id, agent_id, or run_id — the default user is never assumed.

ParameterTypeDescription
agent_idAgent scope to wipe.
run_idRun scope to wipe.
user_idUser scope to wipe.

memory_history Memory history

Show the change history (ADD/UPDATE/DELETE events) of a memory.

ParameterTypeDescription
memory_id *stringExact memory_id to inspect.