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
def add_channel(channel_name: str, metadata: Optional[Dict[str, Any]]) -> boolParameters
ParamField
strUnique channel name
ParamField
OptionalOptional channel metadata
Returns
ResponseField
boolTrue if created, False if already exists
Source
View on GitHubpraisonaiagents/gateway/protocols.py at line 1842