SendPolicy
Defined in the protocols module.AI Agent A lightweight allow/deny send-policy with an optional default-deny posture. This is the config-driven default referenced by
send_policy blocks in
gateway.yaml and the Bot(..., send_policy=...) Python surface. It is
intentionally minimal (no heavy dependencies) and lives in core so the
built-in send_message path is always interceptable.
Matching is exact against the symbolic target token (e.g. "origin",
"slack:#ops", or a friendly alias). With default="deny" only listed
targets are permitted; with default="allow" all targets are permitted
except those in deny.
Example::
Constructor
str
default:"'allow'"
No description available.
Optional
No description available.
Optional
No description available.
Methods
evaluate()
Instance method.
Source
View on GitHub
praisonaiagents/gateway/protocols.py at line 2838
