Add Channel • AI Agent SDK

add_channel: Create a named channel.

add_channel

Method

</div>

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

Create a named channel.

Signature

python
def add_channel(channel_name: str, metadata: Optional[Dict[str, Any]]) -> bool

Parameters

ParamField str

Unique channel name

ParamField Optional

Optional channel metadata

Returns

ResponseField bool

True if created, False if already exists

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 1842