Skip to content

EntitySelector

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/packages/doc-automation/src/v2/stages/stage-10-generation/entity-selector.ts

EntitySelector - Smart entity selection for document generation

Selects entities based on:

  1. Tier priority (TIER_1 > TIER_2 > TIER_3)
  2. User-facing status
  3. Document plan requirements
  4. Token budget constraints

Methods

MethodSignatureReturns
selectForDocumentselectForDocument(plan: DocumentPlan, entities: Entity[])Entity[]
selectRelatedselectRelated(entityId: string, entities: Entity[])Entity[]
selectByTypeselectByType(entities: Entity[], types: Entity['type'][])Entity[]
selectUserFacingselectUserFacing(entities: Entity[])Entity[]
selectByFeatureAreaselectByFeatureArea(entities: Entity[], featureArea: string)Entity[]

Where it refuses work

  • EntitySelector stops the work with an early return when !target.

Was this page helpful?

Download as PDF