Resolve Secret • AI Agent SDK

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

resolve_secret

Function

</div>

This function is defined in the secrets 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
def resolve_secret(value: SecretInput) -> SecretResolution

Parameters

ParamField SecretInput

No description available.

Returns

ResponseField SecretResolution

The result of the operation.

Uses

  • SecretResolution
  • register_secret_for_redaction
  • resolve

Source

View on GitHub

praisonaiagents/secrets.py at line 213