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:
- Tier priority (TIER_1 > TIER_2 > TIER_3)
- User-facing status
- Document plan requirements
- Token budget constraints
Methods
| Method | Signature | Returns |
|---|---|---|
selectForDocument | selectForDocument(plan: DocumentPlan, entities: Entity[]) | Entity[] |
selectRelated | selectRelated(entityId: string, entities: Entity[]) | Entity[] |
selectByType | selectByType(entities: Entity[], types: Entity['type'][]) | Entity[] |
selectUserFacing | selectUserFacing(entities: Entity[]) | Entity[] |
selectByFeatureArea | selectByFeatureArea(entities: Entity[], featureArea: string) | Entity[] |
Where it refuses work
EntitySelectorstops the work with an early return when!target.
Was this page helpful?