Skip to main content

canonicalize

Method
This is a method of the IdentityCanonicalizerProtocol class in the protocols module.
Return the stable canonical id for a raw platform address.

Signature

Parameters

str
required
The platform name (e.g. "whatsapp").
str
required
The raw address as delivered on the wire.

Returns

str
The reconciled canonical id, or raw_user_id unchanged when no reconciliation is known.

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 2110