Skip to content

agent_memory_collection

Associative table for agent memory collection relationship.

This module defines the AgentMemoryCollection class, which represents an associative table for the M:N relationship between AI agents and memory memory collections.

Attributes

Classes

AgentMemoryCollection

Bases: Base

Associative table for agent memory collection relationship

Attributes

__table_args__ class-attribute instance-attribute
__table_args__ = {'comment': __doc__}
__tablename__ class-attribute instance-attribute
__tablename__ = 'agent_memory_collection'
agent_pkid class-attribute instance-attribute
agent_pkid: Mapped[str] = mapped_column(
    ForeignKey("agent.pkid"),
    primary_key=True,
    comment="AI agent identifier",
)
create_ts class-attribute instance-attribute
create_ts: Mapped[datetime] = mapped_column(
    server_default=now(), comment="Record create timestamp"
)
memory_collection_pkid class-attribute instance-attribute
memory_collection_pkid: Mapped[str] = mapped_column(
    ForeignKey("memory_collection.pkid"),
    primary_key=True,
    comment="Memory collection identifier",
)
update_ts class-attribute instance-attribute
update_ts: Mapped[datetime] = mapped_column(
    server_default=now(),
    onupdate=current_timestamp(),
    comment="Record update timestamp",
)