Skip to main content

PairingProtocol

Defined in the protocols module.
AI Agent Protocol for channel pairing implementations. Manages the authorization of external channels (Telegram, Slack, UI) to communicate with the gateway through signed codes.

Methods

generate_code()

Generate a new pairing code for a channel.

approve()

Approve a pairing code, authorizing the channel.

is_paired()

Check if a channel is authorized.

list_paired()

List all authorized channels.

revoke()

Revoke authorization for a channel.

list_pending()

List pending pairing requests.

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 2153