resolve • AI Agent SDK

resolve: Resolve the effective required scope for a call with “params“.

resolve

Method

</div>

This is a method of the GatewayMethodDescriptor class in the protocols module.

Resolve the effective required scope for a call with `params`.

Starts from :attr:required_scope and escalates (never de-escalates) based on the payload:

  • any field listed in :attr:escalate_fields raises the requirement
  • to that field’s scope;
  • under :attr:strict_fields, any field that is neither a
  • `safe_field nor an escalate_field` is treated as unknown /
  • structural and raises the requirement to
  • :attr:escalate_unknown_scope (fail closed on unknown fields).

Signature

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

Parameters

ParamField Optional

No description available.

Returns

ResponseField OperatorScope

The result of the operation.

Used By

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 7722