Core Concepts
Memory Types
Understanding different memory types in Hystersis
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Understanding different memory types in Hystersis
session = client.create_session(agent_id="assistant")
client.add_message(session["id"], "user", "Hello!")
client.add_message(session["id"], "assistant", "Hi!")
messages = client.get_messages(session["id"])
memory = client.create_memory(
content="User is interested in machine learning",
memory_type="user"
)
results = client.search("deep learning AI")
# Create entities
entity1 = client.create_entity("Machine Learning", "topic")
entity2 = client.create_entity("Deep Learning", "topic")
# Create relationship
client.create_relation(
from_id=entity1["id"],
to_id=entity2["id"],
relation_type="RELATED_TO"
)
# Extract skills
skills = client.extract_skills(
content="When user asks about ML, explain neural networks"
)
# Suggest skills
suggestions = client.suggest_skills(trigger="Explain transformers")
| Use Case | Memory Type |
|---|---|
| Chat history | Conversational |
| Facts & preferences | Semantic |
| Structured knowledge | Knowledge Graph |
| Reusable patterns | Procedural |
Was this page helpful?