Skip to main content

Safentic SDK for behavior analysis

Project description

Safentic SDK

Safentic is a runtime guardrail SDK for agentic AI systems.
It intercepts and evaluates unsafe tool calls between agent intent and execution, enforcing custom safety policies.


Installation

Install from PyPI:

pip install safentic

API Key Required

Safentic requires a valid API key to function.
To obtain one, contact: contact@safentic.com


Quick Start

from safentic import SafetyLayer, SafenticError

layer = SafetyLayer(api_key="your-api-key", agent_id="agent-007")

try:
    layer.protect("send_email", {"body": "Refund me now!"})
except SafenticError as e:
    print("Blocked by policy:", e)

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

safentic-1.0.1.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

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

safentic-1.0.1-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file safentic-1.0.1.tar.gz.

File metadata

  • Download URL: safentic-1.0.1.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for safentic-1.0.1.tar.gz
Algorithm Hash digest
SHA256 ad4da6c0a92e5f0e2824627729fb7d3b7fe19d319a399928b59f170b8e557338
MD5 84bd73487a4af3cc849b01f2aca3a33a
BLAKE2b-256 db0d578d4fa33ee84e2fd49e7c9ca1b609f705169af541bd8ef5519c4e6b2c52

See more details on using hashes here.

File details

Details for the file safentic-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: safentic-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for safentic-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 90aec98acc3ce43776bb31fc5b4fc1da72b5735e99f819d26e9271ea05a723df
MD5 e8c9fc6fd12ff688830d9c9fcf59935c
BLAKE2b-256 e2d7847121c8bf445d894e08b7784f6fa69837fc17b250c3b41380b3bf81188a

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