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

python
def assert_gateway_secret_strong(value: Optional[str]) -> None

Parameters

ParamField Optional[str]

The resolved secret to validate.

Exceptions

WeakGatewaySecretError

If `value` matches a known-weak value.

Uses

  • is_weak_secret
  • WeakGatewaySecretError

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 2967


Related Documentation