desentinelize • AI Agent SDK

desentinelize: Substitute every known sentinel in “text“ back to its real secret.

desentinelize

Function

</div>

This function is defined in the secrets module.

Substitute every known sentinel in `text` back to its real secret.

Called by an egress guard only once a host has been allowlisted, to put the real credential on the wire. Text with no sentinel is returned unchanged, so this is safe to call on every outbound request.

Signature

python
def desentinelize(text: str) -> str

Parameters

ParamField str

No description available.

Returns

ResponseField str

The result of the operation.

Uses

  • findall

Source

View on GitHub

praisonaiagents/secrets.py at line 450