Skip to main content

alovia-watchdog

Runtime protection for AI agents. Guard your agent's inputs with your Alovia fleet key.

Install

pip install alovia-watchdog

Use

from alovia_watchdog import Watchdog, guard_input

wd = Watchdog(api_key="wd_live_...")

@guard_input(wd, agent="support-bot")
def handle(message):
    ...

guard_input raises WatchdogBlocked when verdict.enforce says to stop, so the wrapped function never runs on a malicious or unresolved input. On a network error it honors fail_mode ("closed" blocks, "open" allows).

You can also check directly:

verdict = wd.check("some user input", agent="support-bot")
if verdict.enforce:
    ...

Use verdict.enforce, not verdict.blocked, to decide whether to stop. enforce answers "should I stop": it always stops on block, and it also honors fail_mode for challenge and unknown. blocked only answers "did the server say block", so code that checks blocked still lets challenge and unknown through even when fail_mode is "closed".

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

alovia_watchdog-0.3.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

alovia_watchdog-0.3.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file alovia_watchdog-0.3.0.tar.gz.

File metadata

  • Download URL: alovia_watchdog-0.3.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for alovia_watchdog-0.3.0.tar.gz
Algorithm Hash digest
SHA256 ae9606e12e659742a10e8e9e7b25e681087c3111492e4e26787455ba59e638b0
MD5 8f64dbcb56bef779db92d4b8fe934014
BLAKE2b-256 12d81e65566ce9baf9a1b9771a2206239afa9d295d4a94c4aea2411b0037ff15

See more details on using hashes here.

File details

Details for the file alovia_watchdog-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for alovia_watchdog-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e08e8c404733ce208b3d67b6a0091740c6a547f0a3d1ae07b1e6b12ed45d7f81
MD5 940503dfa1108be99155d26632419bf1
BLAKE2b-256 512bdc1e2ac44d786cd60f997ae489592d0f2b65055c707d00143f3acf9eacec

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3.1

2 files

This release

0.3.0 This release

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page