Skip to main content

agrag.common.data_models.data_point.DataPoint

Bases: BaseModel

A graph node with a fixed id and free metadata.

Attributes:

  • id (UUID) – The node id. Each subclass defines its own rule to compute this id.
  • created_at (datetime) – The time the system created this node. Defaults to the current time.
  • metadata (dict[str, Any]) – Extra data about the node. Add an index_fields key to list which fields the store must index for filters.

created_at​

created_at: datetime = Field(default_factory=lambda: datetime.now(UTC))

id​

id: UUID

metadata​

metadata: dict[str, Any] = Field(default_factory=dict)