agent
Agent ORM Model
Defines the Agent
class, which represents metadata for agents
within the Eleanor framework.
Classes
Agent
Bases: Participant
Agent metadata table
Attributes
create_ts
class-attribute
instance-attribute
create_ts: Mapped[datetime] = mapped_column(
server_default=now(), comment="Record create timestamp"
)
dynamic_persona
class-attribute
instance-attribute
dynamic_persona: Mapped[str] = mapped_column(
Text,
nullable=True,
comment="Generated dynamic persona, typically maintained by the framework",
)
dynamic_persona_updated
class-attribute
instance-attribute
dynamic_persona_updated: Mapped[datetime] = mapped_column(
nullable=True,
comment="Timestamp when the dynamic persona was last updated",
)
memories
class-attribute
instance-attribute
memories: Mapped[List[Memory]] = relationship(
back_populates="agent", lazy="dynamic"
)
memory_collections
class-attribute
instance-attribute
memory_collections: Mapped[List[MemoryCollection]] = (
relationship(
secondary="agent_memory_collection",
back_populates="agents",
)
)
pkid
class-attribute
instance-attribute
pkid: Mapped[str] = mapped_column(
ForeignKey("participant.pkid"),
primary_key=True,
comment="AI agent identifier",
)
settings
class-attribute
instance-attribute
settings: Mapped[str] = mapped_column(
PydanticType(AgentResourceSettings),
default={},
nullable=False,
comment="JSON-encoded resource settings",
)