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.3.tar.gz (10.0 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.3-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: safentic-1.0.3.tar.gz
  • Upload date:
  • Size: 10.0 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.3.tar.gz
Algorithm Hash digest
SHA256 b815ad909dc337251edfd36f0582a08e9b6606b287bb6c35a5cd0e5813493cb1
MD5 5f89c8fcdf5a891cfe6f2281aba48098
BLAKE2b-256 77343e3d253cf732b69beb179e9a21ebef599630fcd40c4bdcb4dba476ade36a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: safentic-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 13.7 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d8e6e4ef44e6e4881927c24073e80a33e307735de920299a70ef5b99860576ce
MD5 c2d95ede1d118ec7eb11910efde3cab4
BLAKE2b-256 9ba6f1076009d409764dd39171172561f646e1ed7ae4ebf7854c35819113ed29

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