Skip to main content

DeliveryPreflightProtocol

Defined in the protocols module.
AI Agent Optional creation-time pre-flight extension for delivery resolvers. Kept separate from :class:DeliveryResolverProtocol so the base contract stays resolve()-only: an existing resolver that implements just resolve still satisfies DeliveryResolverProtocol under isinstance/runtime_checkable. A resolver that can additionally pre-flight or preview a target against its live registry advertises that by also satisfying this protocol; callers duck-type on it and fall back to a structural, registry-free check (:meth:DeliveryTarget.preview) otherwise.

Methods

validate_target()

Pre-flight target against the live channel/route registry.

preview_target()

Return a dry-run preview of where target will deliver.

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 2394