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

python
def register_gateway_method(name: str) -> GatewayMethodDescriptor

Parameters

ParamField str

No description available.

Returns

ResponseField GatewayMethodDescriptor

The result of the operation.

Exceptions

ValueError

If `name is already registered and replace` is False.

Uses

  • ValueError
  • GatewayMethodDescriptor

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 7795


Related Documentation