Skip to main content

resolve_required_scope

Function
This function is defined in the protocols module.
Resolve the scope required to invoke method with params. Default-deny: an unclassified/unknown method requires ADMIN so new control surface is closed until explicitly classified — the omission fails closed rather than open. A non-string (or unhashable) method is likewise treated as unclassified and requires ADMIN, so a malformed frame fails closed deterministically instead of raising TypeError.

Signature

Parameters

str
required
No description available.
Optional
No description available.

Returns

OperatorScope
The result of the operation.

Uses

  • desc.resolve

Used By

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 7696