Skip to main content

BivectorAI Python SDK

Enterprise AI safety verification for production systems.

Install

pip install bivectorai

Quick Start

from bivectorai import BivectorAI

client = BivectorAI(api_key="your-api-key")

# Scan AI output for safety issues
result = client.verify_output(
    text="The model says X",
    sources=["User asked Y"],
)
print(result.verdict)  # PASS, REVIEW, or BLOCK

# Detect LLM injection
scan = client.scan_injection("Ignore previous instructions and...")
print(scan["verdict"])  # BLOCK or PASS

# Check for hallucinations
check = client.check_hallucination(
    claim="Revenue was $10B in 2023",
    evidence=[{"source": "annual_report.pdf", "text": "Revenue: $8.2B"}],
)
print(check["verdict"])  # GROUNDED or UNSUPPORTED

API Reference

  • verify_output(text, sources) — LLM output safety gate
  • scan_injection(text) — prompt injection detection
  • check_hallucination(claim, evidence) — factual grounding check
  • detect_pii(text) — PII detection and classification
  • scan_content(text, categories) — comprehensive content safety
  • verify_workflow(steps) — AI workflow verification
  • get_usage_summary(period) — usage statistics
  • revoke_api_key(key_prefix) — key rotation helper

Full docs: https://bivectorai.com/docs/

Download files

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

Source Distribution

bivectorai-0.3.0.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

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

bivectorai-0.3.0-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bivectorai-0.3.0.tar.gz
Algorithm Hash digest
SHA256 d3ce14776bcf452a8d26ce14878b555c2b38cc8f71f9b63c14ce3ae29121eda1
MD5 2092b7b7fb09aba567cd67c3921cef0d
BLAKE2b-256 82e9592f00a0401ef28cb03b7d4c6379b7cd26a195043160da08fcf580bda123

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bivectorai-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 13.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for bivectorai-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a2de79ad0ec9bf4437489dd867a7edec1542dc26f125061b533c6407c68c9468
MD5 f46375a73993b497dd07f59024ffc700
BLAKE2b-256 39ea25294dc89d7f955915b6db909af9fff43269768a7bc922c42d2d7ce6d46c

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 Sentry Error logging StatusPage Status page