Version: latest
agrag.common.data_models.entity_search.EntityResult
Bases: BaseModel
The result of one entity discovery call.
Attributes:
- status (
DiscoveryStatus) – The overall outcome. A failed leg never shows as NO_MATCH. - hits (
list[EntityHit]) – The entities, best first. - truncated (
bool) – True when a search leg reached its candidate ceiling and fewer thanlimitentities were returned. - index_state (
IndexState | None) – Whether the needed indexes were ready. None when no index was checked. - failures (
list[LegFailure]) – The legs that failed. Empty when every leg ran.
failures
failures: list[LegFailure] = Field(default_factory=list)
hits
hits: list[EntityHit] = Field(default_factory=list)
index_state
index_state: IndexState | None = None
status
status: DiscoveryStatus
truncated
truncated: bool = False