Skip to main content

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

Project description

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".

Project details


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.2.0.tar.gz (4.8 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.2.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: alovia_watchdog-0.2.0.tar.gz
  • Upload date:
  • Size: 4.8 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.2.0.tar.gz
Algorithm Hash digest
SHA256 fe25f942562ce19796f560369a19fe5f6b3e3fd054dcea2725f7cdb650ac575e
MD5 ea04fc070067eba19182f0486cef67ea
BLAKE2b-256 4c4ca68cacf9fcbffdff63298dfac31f144a8f4276fdf60cba9cb95cbdab08e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alovia_watchdog-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fcfe67c1b93f71c0e93c091af4527c6520dcd6d80f561a186a4e9a8017da7cb2
MD5 41592a8b5bc237f75d1b528536b10f94
BLAKE2b-256 628d219e5527db734bb9de1bc0fc7af541a7fb0cbc96fff795e752850c41bf67

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page