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_fieldsraises the requirement - to that field’s scope;
- under :attr:
strict_fields, any field that is neither a - `
safe_fieldnor anescalate_field` is treated as unknown / - structural and raises the requirement to
- :attr:
escalate_unknown_scope(fail closed on unknown fields).
Signature
def resolve(params: Optional[Dict[str, Any]]) -> OperatorScopeParameters
ParamField
OptionalNo description available.
Returns
ResponseField
OperatorScopeThe result of the operation.
Used By
Source
View on GitHubpraisonaiagents/gateway/protocols.py at line 7722