Validate Target • AI Agent SDK
validate_target: Pre-flight “target“ against the live channel/route registry.
validate_target
Method
</div>
This is a method of the DeliveryPreflightProtocol class in the protocols module.
Pre-flight `target` against the live channel/route registry.
Called at creation time (when a scheduled/agent-initiated send is registered) so an unroutable target is rejected or warned on with an actionable message, instead of being silently dropped when the job fires.
Signature
def validate_target(target: 'DeliveryTarget') -> 'DeliveryValidation'Parameters
ParamField
DeliveryTargetNo description available.
Returns
ResponseField
'DeliveryValidation'class:DeliveryValidation (`ok / reason / hint / preview`).
Source
View on GitHubpraisonaiagents/gateway/protocols.py at line 3311