> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Send Policy • AI Agent SDK

> SendPolicy: A lightweight allow/deny send-policy with an optional default-deny posture.

# SendPolicy

> Defined in the [**protocols**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/protocols.md) 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::

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
# default-deny: only the conversation origin and an ops alias allowed
SendPolicy(default="deny", allow=["origin", "ops-alerts"])
# default-allow: everything permitted except an exec channel
SendPolicy(default="allow", deny=["slack:#exec"])
```

## Constructor

**default** `str` (default: 'allow')

No description available.

**allow** `Optional`

No description available.

**deny** `Optional`

No description available.

## Methods

> [card] [evaluate()](https://praison.ai/docs/sdk/reference/praisonaiagents/functions/SendPolicy-evaluate.md)
>
> Instance method.

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L4070)
>
> `praisonaiagents/gateway/protocols.py` at line 4070


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.