Skip to main content

agrag.common.data_models.graph_record.RelationRecord

Bases: BaseModel

One graph relationship, ready to write.

Attributes:

  • id (UUID) – The relationship id.
  • type (str) – The relationship type.
  • start_id (UUID) – The id of the start node.
  • end_id (UUID) – The id of the end node.
  • properties (dict[str, Any]) – The relationship's properties.

Functions:

end_id​

end_id: UUID

id​

id: UUID

properties​

properties: dict[str, Any]

reject_pending_tag​

reject_pending_tag(properties:dict[str, Any]) -> dict[str, Any]

Reject the job-owned tag in external graph records.

start_id​

start_id: UUID

type​

type: str