Light Dark

Functions

agent-key

fn (agent-name: Str, suffix: Str): Str

Build an agent-scoped store name: agent:{agent}:{suffix}.

session-key

fn (agent-name: Str, session: Session, suffix: Str): Str

Build a session-scoped store name: agent:{agent}:session:{sid}:{suffix}.

user-key

fn (agent-name: Str, identity: Identity, suffix: Str): Str

Build a user-scoped store name: agent:{agent}:user:{uid}:{suffix}.

Types

Identity

Identity type {
    id: Str,
    name: Str?,
    meta: Map?
}

A specific participant. Persistent across sessions.

Session

Session type {
    id: Str,
    meta: Map?
}

Conversation container. A Slack channel, Telegram group, DM thread, etc.