Skip to main content

Confidence-gated decisions for LLM agent outputs

Project description

confgate

Confidence-gated decisions for LLM agent outputs.

Prevent false-positive fatigue by abstaining from low-confidence findings.

Installation

pip install confgate

Quick start

from confgate import Decision, gate

@gate(threshold=0.75)
def security_agent(diff: str) -> Decision:
    # your LLM call here
    return Decision(
        category="security",
        confidence=0.9,
        reasoning="Potential SQL injection in query builder.",
        severity="high",
        line_ref="src/db.py:42",
    )

result = security_agent(diff)
if not result.abstained:
    print(result)

License

MIT

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

confgate-0.1.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

confgate-0.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file confgate-0.1.0.tar.gz.

File metadata

  • Download URL: confgate-0.1.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for confgate-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4809cfc6aa216b4a0ba027d834a280e08a9ba275a2c91e0edc52bae65f8b53a1
MD5 5ca0526a84d20f49016386d23df4844b
BLAKE2b-256 1a1f2eea0c779f11cefc9e3b2c3e6697401d311060d8d4ea29cf3474a4a01543

See more details on using hashes here.

File details

Details for the file confgate-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: confgate-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for confgate-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cf731bf3ab53838ebbc6c62a9e012bd31fe6d68125911a02117eb24ca8341ed5
MD5 946451ea9706327b8d6f26302bb1aa1b
BLAKE2b-256 961b0ee9b3a91d81b1b0798896e04d03a9763b61e77628c83781ce0816144702

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