SpaceRelation

Source:

Local role: Typed edge linking two spaces.

Big-picture role: Space topology primitive used by SpaceRelationGraph and copied into PerceivedRelation.

Inheritance:

  • frozen dataclass

Parameters and fields:

  • source_space_id: SpaceId
  • target_space_id: SpaceId
  • relation_type: str
  • metadata: JsonMap

Methods:

  • canonicalize(...)
  • to_dict(...)
  • from_dict(...)
  • __deepcopy__(...)

See also:

Ometeotl

A Python library to build complex multi-agent simulations, wargames, and AI-driven strategies