Skip to content

memory_graph_dao

Memory graph data access object (DAO)

Classes

MemoryGraphDao

MemoryGraphDao(session: Session)

Bases: BaseDao

Memory graph data access object (DAO)

Attributes

model_class property
model_class: Type[MemoryGraph]

Functions

get_by_collection_pkid
get_by_collection_pkid(collection_pkid: str)
hard_delete_by_agent_pkid
hard_delete_by_agent_pkid(agent_pkid: str) -> int

Hard delete all memory graph records for a specific agent.

This is broken … see #222

Parameters:

  • agent_pkid (str) –

    Agent PKID

Returns:

  • int ( int ) –

    Number of records deleted