> ## 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 Secret • AI Agent SDK

> resolve_secret: Resolve a credential input to a :class:`SecretResolution`.

# resolve\_secret

Function

> This function is defined in the [**secrets**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/secrets.md) module.

Resolve a credential input to a :class:`SecretResolution`.

Backward compatible: a plain string is returned verbatim (with the existing
`$&#123;ENV&#125;` convention honoured), so plaintext configs keep working. A
:class:`SecretRef` (or its `&#123;"source", "id"&#125;` dict form) is resolved via
the matching resolver. A resolved value is registered for log redaction
unless `redact=False`.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def resolve_secret(value: SecretInput) -> SecretResolution
```

## Parameters

**value** `SecretInput` *required*

No description available.

### Returns

**Returns** `SecretResolution`

The result of the operation.

## Uses

* `SecretResolution`
* `register_secret_for_redaction`
* `resolve`

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/secrets.py#L213)
>
> `praisonaiagents/secrets.py` at line 213


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.