> ## 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.

# Register Resolver • AI Agent SDK

> register_resolver: Register a custom resolver for a source name (e.g. ``vault``).

# register\_resolver

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**secrets**](../modules/secrets) module.

Register a custom resolver for a source name (e.g. `vault`).

Custom sources extend :data:`SecretRef` beyond the built-in three; the
`SecretRef` validation still applies, so use this together with a
`provider` hint or by resolving `exec`-style commands.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def register_resolver(source: str, resolver: SecretResolver) -> None
```

## Parameters

<ParamField query="source" type="str" required={true}>
  No description available.
</ParamField>

<ParamField query="resolver" type="SecretResolver" required={true}>
  No description available.
</ParamField>

## Source

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