Skip to main content

is_policy_string

Function
This function is defined in the parse_utils module.
Check if a string is a policy specification. O(1) operation. Policy strings have format: type:action (e.g., “policy:strict”, “pii:redact”)

Signature

Parameters

value
str
required
String to check

Returns

Returns
bool
True if string is a policy specification

Usage

Used By

Source

View on GitHub

praisonaiagents/config/parse_utils.py at line 259