Packages
Embedded Gralkor memory for Elixir/OTP — runs Graphiti + FalkorDB in-process via PythonX. Embed in a Jido (or any Elixir) supervision tree to give your agent long-term, temporally-aware knowledge-graph memory.
Retired package: Renamed - moved into :jido_gralkor
Current section
Files
Jump to
Current section
Files
priv/server/pipelines/messages.py
from __future__ import annotations
from typing import Literal
from pydantic import BaseModel
Role = Literal["user", "assistant", "behaviour"]
class Message(BaseModel):
role: Role
content: str
ROLE_LABEL: dict[str, str] = {
"user": "User",
"assistant": "Assistant",
"behaviour": "Agent did",
}
def label_for(role: str) -> str:
return ROLE_LABEL.get(role, role.capitalize())