Skip to main content
Version: 0.0.10 (stable)

agrag.common.data_models.navigation.NavigationResult

Bases: BaseModel

The result of one navigation call.

Attributes:

  • status (NavigationStatus) – The overall outcome.
  • items (list[NavigationItem]) – The passages, in the order of the relation.
  • truncated (bool) – True when a bound cut the items or the text.
  • truncated_by (list[TruncationReason]) – The bounds that cut the result, when truncated.
  • version_status (VersionStatus | None) – Whether the version of the starting passage is current. None when no passage was resolved.
  • multi_section (bool) – True when the starting passage covers more than one section, so parent returns one item per section.
  • detail (str | None) – A short message for a malformed or failed id. None otherwise.

detail​

detail: str | None = None

items​

items: list[NavigationItem] = Field(default_factory=list)

multi_section​

multi_section: bool = False

status​

status: NavigationStatus

truncated​

truncated: bool = False

truncated_by​

truncated_by: list[TruncationReason] = Field(default_factory=list)

version_status​

version_status: VersionStatus | None = None