Has Sentinel • AI Agent SDK

has_sentinel: True if “text“ contains a minted sentinel token.

has_sentinel

Function

</div>

This function is defined in the secrets module.

True if `text` contains a minted sentinel token.

An egress guard uses this to detect that a request carries a credential and must therefore pass the host allowlist before :func:desentinelize runs.

Signature

python
def has_sentinel(text: str) -> bool

Parameters

ParamField str

No description available.

Returns

ResponseField bool

The result of the operation.

Uses

  • findall

Source

View on GitHub

praisonaiagents/secrets.py at line 469