corvix.enrichment.base¶
Provider interfaces and shared context for enrichment.
Classes¶
Client capability required by enrichment providers. |
|
Protocol implemented by enrichment providers. |
|
Per-cycle provider context with request budget and URL cache. |
Module Contents¶
- class corvix.enrichment.base.JsonFetchClient[source][source]¶
Bases:
ProtocolClient capability required by enrichment providers.
- class corvix.enrichment.base.EnrichmentProvider[source][source]¶
Bases:
ProtocolProtocol implemented by enrichment providers.
- enrich(notification: corvix.domain.Notification, client: JsonFetchClient, ctx: EnrichmentContext) dict[str, object][source][source]¶
- class corvix.enrichment.base.EnrichmentContext[source][source]¶
Per-cycle provider context with request budget and URL cache.
- get_json(client: JsonFetchClient, url: str, timeout_seconds: float) corvix.types.JsonValue[source][source]¶
Fetch and cache a JSON payload for this cycle.