Skip to main content

Capture how your AI agent behaves at deployment. Monitor how that behavior changes over time.

Project description

behavioralfingerprint

Capture how your AI agent behaves at deployment. Monitor how that behavior changes over time.

Part of the Thread Suite — AI agent reliability infrastructure.

Install

pip install behavioralfingerprint

Quick Start

from behavioralfingerprint import BehavioralFingerprint

bf = BehavioralFingerprint()  # defaults to https://behavioral-fingerprint.onrender.com

# Register your agent
bf.register_agent(
    agent_id="my-agent-v1",
    endpoint_url="https://your-agent.com/run",
    name="My Production Agent"
)

# Capture a behavioral fingerprint
result = bf.capture_fingerprint("my-agent-v1")
print(result["scores"])
# {
#   "verbosity_score": 0.42,
#   "hedging_rate": 0.18,
#   "refusal_rate": 0.0,
#   "confidence_score": 0.71,
#   "consistency_score": 0.63,
#   "adherence_score": 0.90
# }

# Get latest fingerprint
latest = bf.get_latest_fingerprint("my-agent-v1")

# View fingerprint history
history = bf.list_fingerprints("my-agent-v1")

Agent Endpoint Contract

Your agent endpoint must accept POST requests with:

{"input": "probe text here"}

And return JSON with an output, response, result, or content field:

{"output": "the agent's response"}

Six Behavioral Dimensions

Dimension What it measures
verbosity_score How much the agent says (0 = concise, 1 = verbose)
hedging_rate How often the agent qualifies its answers
refusal_rate How often the agent declines requests
confidence_score Ratio of confident to uncertain language
consistency_score Similarity across semantically equivalent inputs
adherence_score Compliance with explicit formatting/length instructions

Thread Suite

Iron-Thread · TestThread · PromptThread · ChainThread · PolicyThread · ThreadWatch · Behavioral Fingerprint

"Built for the age of AI agents."

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

behavioralfingerprint-0.6.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

behavioralfingerprint-0.6.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file behavioralfingerprint-0.6.0.tar.gz.

File metadata

  • Download URL: behavioralfingerprint-0.6.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for behavioralfingerprint-0.6.0.tar.gz
Algorithm Hash digest
SHA256 7fc7831e68d602449748974bb4a316010a55e95b35feb5cb9338a2b119bb5129
MD5 06b7c08de3283033e0b5a3a273efd2d0
BLAKE2b-256 f96431b0d5000fc64964594c158bd632d50118ac6300ba7215c3156797b7faf9

See more details on using hashes here.

File details

Details for the file behavioralfingerprint-0.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for behavioralfingerprint-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0f18b2f8fa22ec23a4a2b36094b40190b1fb56e4b15e7d27024a81b0bd86579b
MD5 59daa0c097942adc0369a30e3ba555f4
BLAKE2b-256 dbab923c9dc918ef7ddbf776f602e23d8689475b5ef098b9e021e80430120a7f

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