Assert Gateway Secret Strong • AI Agent SDK
assert_gateway_secret_strong: Fail closed if “value“ is a known-weak/placeholder gateway secret.
assert_gateway_secret_strong
Function
</div>
This function is defined in the protocols module.
Fail closed if `value` is a known-weak/placeholder gateway secret.
Signature
def assert_gateway_secret_strong(value: Optional[str]) -> NoneParameters
ParamField
Optional[str]The resolved secret to validate.
Exceptions
WeakGatewaySecretError
If `value` matches a known-weak value.
Uses
is_weak_secretWeakGatewaySecretError
Source
View on GitHubpraisonaiagents/gateway/protocols.py at line 2967