Resolve Required Scope • AI Agent SDK
resolve_required_scope: Resolve the scope required to invoke “method“ with “params“.
resolve_required_scope
Function
</div>
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
def resolve_required_scope(method: str, params: Optional[Dict[str, Any]]) -> OperatorScopeParameters
ParamField
strNo description available.
ParamField
OptionalNo description available.
Returns
ResponseField
OperatorScopeThe result of the operation.
Uses
desc.resolve
Used By
Source
View on GitHubpraisonaiagents/gateway/protocols.py at line 7835