Skip to main content

Sentisec public SDK — cognitive integrity monitoring for autonomous agents (thin client).

Project description

sentisec-sdk

Public Python SDK for Sentisec.

sentisec-sdk is a thin client. You install it with pip, point it at your workspace, and wrap your existing OpenAI / Anthropic client. Your agent's tool calls then flow through Sentisec's hosted control plane, where they are evaluated and either allowed, rewritten, or blocked before they reach the world.

Install

pip install sentisec-sdk

Python 3.11+ is required.

Quick start

from sentisec_sdk import Monitor

monitor = Monitor()  # picks up ~/.sentisec/credentials.toml after `sentisec login`
client = monitor.wrap_openai(...)
client = monitor.wrap_anthropic(...)

The sentisec CLI is shipped in the same wheel:

sentisec login
sentisec status
sentisec demo run
sentisec logout

Note (alpha): the public surface is being assembled across a small set of release tasks. Calling Monitor() / Session() in this alpha pre-release raises NotImplementedError pointing at the tracking task — install the 0.1.0 (non-alpha) release for the working client.

From 0.1.0a4 onwards SENTISEC_WORKSPACE_ID is OPTIONAL — the Sentisec proxy resolves the workspace from the API key prefix, so a one-env-var setup (SENTISEC_API_KEY only) is sufficient for the wrap_anthropic / wrap_openai path.

Documentation

License

Apache License 2.0. See LICENSE.

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

sentisec_sdk-0.1.0a4.tar.gz (30.9 kB view details)

Uploaded Source

Built Distribution

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

sentisec_sdk-0.1.0a4-py3-none-any.whl (38.5 kB view details)

Uploaded Python 3

File details

Details for the file sentisec_sdk-0.1.0a4.tar.gz.

File metadata

  • Download URL: sentisec_sdk-0.1.0a4.tar.gz
  • Upload date:
  • Size: 30.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sentisec_sdk-0.1.0a4.tar.gz
Algorithm Hash digest
SHA256 309c6355304b1d718e660859736a82fc1f65b8aef03489e2a1be801ebc6c5eb0
MD5 7764e3cd9b8686c26346b4c26a736aab
BLAKE2b-256 a523d7038779ab9fccb444dffbac6139b1d56e2143e4b026198ac867813e859d

See more details on using hashes here.

Provenance

The following attestation bundles were made for sentisec_sdk-0.1.0a4.tar.gz:

Publisher: publish-sdk-py.yml on Hamza-Rivon/sentisec

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sentisec_sdk-0.1.0a4-py3-none-any.whl.

File metadata

  • Download URL: sentisec_sdk-0.1.0a4-py3-none-any.whl
  • Upload date:
  • Size: 38.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sentisec_sdk-0.1.0a4-py3-none-any.whl
Algorithm Hash digest
SHA256 eeb2e4771cddaed946fb89b611494517cc589ef0f9997c46ef686b999538fbb4
MD5 f1b27f9fa0b81f655f2a88caa3b233aa
BLAKE2b-256 dbd9e382e10c9ac63b8dfc41b9dfa610b803fe3f05d91acfc7f3aaefc14fb4b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for sentisec_sdk-0.1.0a4-py3-none-any.whl:

Publisher: publish-sdk-py.yml on Hamza-Rivon/sentisec

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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