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
def has_sentinel(text: str) -> boolParameters
ParamField
strNo description available.
Returns
ResponseField
boolThe result of the operation.
Uses
findall
Source
View on GitHubpraisonaiagents/secrets.py at line 469