Delivery Preflight Protocol • AI Agent SDK
DeliveryPreflightProtocol: Optional creation-time pre-flight extension for delivery resolvers.
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
Pre-flight `target` against the live channel/route registry.
Return a dry-run preview of where `target` will deliver.
Source
View on GitHubpraisonaiagents/gateway/protocols.py at line 3299