register_gateway_method
Function
This function is defined in the protocols module.Register (once) the required scope for a gateway method. Core methods are registered at import time (see below); plugins that add new gateway surface should register their descriptors through this same function so they inherit default-deny semantics.
Signature
Parameters
str
required
No description available.
Returns
GatewayMethodDescriptor
The result of the operation.
Exceptions
ValueError
ValueError
If
name is already registered and replace is False.Uses
ValueErrorGatewayMethodDescriptor
Source
View on GitHub
praisonaiagents/gateway/protocols.py at line 5653
