Register Gateway Method • AI Agent SDK
register_gateway_method: Register (once) the required scope for a gateway method.
register_gateway_method
Function
</div>
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
def register_gateway_method(name: str) -> GatewayMethodDescriptorParameters
ParamField
strNo description available.
Returns
ResponseField
GatewayMethodDescriptorThe result of the operation.
Exceptions
ValueError
If `name is already registered and replace` is False.
Uses
ValueErrorGatewayMethodDescriptor
Source
View on GitHubpraisonaiagents/gateway/protocols.py at line 7795