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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4809cfc6aa216b4a0ba027d834a280e08a9ba275a2c91e0edc52bae65f8b53a1
|
|
| MD5 |
5ca0526a84d20f49016386d23df4844b
|
|
| BLAKE2b-256 |
1a1f2eea0c779f11cefc9e3b2c3e6697401d311060d8d4ea29cf3474a4a01543
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf731bf3ab53838ebbc6c62a9e012bd31fe6d68125911a02117eb24ca8341ed5
|
|
| MD5 |
946451ea9706327b8d6f26302bb1aa1b
|
|
| BLAKE2b-256 |
961b0ee9b3a91d81b1b0798896e04d03a9763b61e77628c83781ce0816144702
|