datarobot_genai.dragent.registry_warmup
registry_warmup
Startup prefetch for central agent card registry lookups.
Collects registry blocks from authenticated_a2a_client function groups
in the loaded NAT config and batch-fetches all agent cards before the server
accepts traffic.
RegistryLookupIds
Bases: NamedTuple
Registry lookup IDs collected from a workflow config, by ID kind.
Source code in datarobot_genai/dragent/registry_warmup.py
is_empty
is_registry_warm
Return whether the latest startup prefetch completed successfully.
When there are no registry-backed function groups, this returns True
(nothing to warm).
reset_registry_warm_state
collect_registry_lookup_ids
Return deduplicated registry lookup IDs per kind from config.
Only authenticated_a2a_client function groups with a registry block
contribute IDs. Order is preserved (first-seen).
Source code in datarobot_genai/dragent/registry_warmup.py
register_registry_lookup_ids
Register all lookup IDs from collected on registry.
Config validation registers IDs on the first registry singleton. L2
MemorySpace provisioning resets that singleton at lifespan startup, so
warmup and the background refresh loop must re-register from the workflow
config before calling :meth:AgentCardRegistry.prefetch or
:meth:AgentCardRegistry.refresh_all_registered.
Source code in datarobot_genai/dragent/registry_warmup.py
warmup_registry_from_config
async
Batch-prefetch agent cards for all registry-backed A2A clients in config.
No-op when no registry lookups are configured. On failure, logs an error and
leaves :func:is_registry_warm as False.