Skip to content

Self-improving AI Employees for everyone

874 B
Raw Blame
"""Durable agent conversation storage — plain messages JSON under a key.

``(workflow_id, generation, agent_node_id) → messages`` — loaded at run
start, saved per turn. See docs-internal/agent_context_flow.md for the
flow and invariants. The former hash-chained journal (store / runtime /
compaction / legacy / lifecycle) was retired in favor of this module.
"""

from services.agent_context.conversation import (
    clear_conversation,
    list_conversations,
    load_conversation,
    save_conversation,
)
from services.agent_context.listeners import (
    ConversationListener,
    notify_conversation_saved,
    register_conversation_listener,
)

__all__ = [
    "ConversationListener",
    "clear_conversation",
    "list_conversations",
    "load_conversation",
    "notify_conversation_saved",
    "register_conversation_listener",
    "save_conversation",
]