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

python
def resolve_required_scope(method: str, params: Optional[Dict[str, Any]]) -> OperatorScope

Parameters

ParamField str

No description available.

ParamField Optional

No description available.

Returns

ResponseField OperatorScope

The result of the operation.

Uses

  • desc.resolve

Used By

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 7835