> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# resolve • AI Agent SDK

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

# resolve

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**GatewayMethodDescriptor**](../classes/GatewayMethodDescriptor) class in the [**protocols**](../modules/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 theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def resolve(params: Optional[Dict[str, Any]]) -> OperatorScope
```

## Parameters

<ParamField query="params" type="Optional" required={false}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="OperatorScope">
  The result of the operation.
</ResponseField>

## Used By

* [`Agent.skill_manager`](../functions/Agent-skill_manager)
* [`resolve_memory`](../functions/resolve_memory)
* [`resolve_knowledge`](../functions/resolve_knowledge)
* [`resolve_output`](../functions/resolve_output)
* [`resolve_execution`](../functions/resolve_execution)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L5580">
  `praisonaiagents/gateway/protocols.py` at line 5580
</Card>
