Preview Target • AI Agent SDK

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

preview_target

Method

</div>

This is a method of the DeliveryPreflightProtocol class in the protocols module.

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

A short, display-only string (e.g. `"telegram:@alice (session main)"`) so the creator sees the destination before commit.

Signature

python
def preview_target(target: 'DeliveryTarget') -> str

Parameters

ParamField DeliveryTarget

No description available.

Returns

ResponseField str

The result of the operation.

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 3327