Version: latest
agrag.ingestion.client_work.enrichment
The small seam between client work tools and the enrichment handlers.
The extraction kind and the Graph and MCP dispatch live with client extraction work. This module owns only the three enrichment kinds, so both halves can be combined without changing either handler.
Functions:
- apply_enrichment_item – Apply one client result for an enrichment kind.
- count_enrichment_items – Count every pending item of one enrichment kind.
- enrichment_kind – Parse one kind, naming the valid kinds when the value is unknown.
- list_enrichment_items – List pending items for one enrichment kind.
- source_document_keys – Return the document keys an item derives from.
- validate_enrichment_output – Return why a client output is invalid for its kind, or None when valid.
Attributes:
- ENRICHMENT_INSTRUCTIONS (
dict[EnrichmentKind, str]) – - ENRICHMENT_OUTPUT_SCHEMA (
dict[EnrichmentKind, dict[str, object]]) –