SAWANT Agentic MoSCoW Framework for Reliable LLM Outputs
Project description
SAMF: SAWANT Agentic MoSCoW Framework
Structural MoSCoW contracts for deterministic LLM validation.
What is it?
SAMF provides machine-readable validation contracts for LLMs, translating project management MoSCoW prioritization into strict alignment guards.
Why do I need it?
- Slashes Prompt Instability: Eliminates brittle multi-hop reasoning.
- Prevents Loop Breaches: Keeps multi-agent reasoning loops from breaking.
- Optimizes Token Costs: Reduces RAG token waste by enforcing explicit constraints.
Quick Start
from samf import SAMFContract, samf_contract
# Define your strict execution contract
guard_contract = SAMFContract(
must_have=["JSON", "status", "user_id"],
should_have=["timestamp"],
wont_have=["error", "failed"]
)
# Enforce it seamlessly with a decorator
@samf_contract(contract=guard_contract)
def call_billing_agent():
# Your LLM generation / LangGraph node logic here
return '{"status": "success", "user_id": 4002, "format": "JSON"}'
response = call_billing_agent()
print("Output validated successfully!")
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
samf_framework-0.1.2.tar.gz
(2.9 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 samf_framework-0.1.2.tar.gz.
File metadata
- Download URL: samf_framework-0.1.2.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9717957b9cfb999409e17f7da5d7dc9fa5bc749fa2cf317f3f341d6679e3e18
|
|
| MD5 |
59b0a72e33841a5eb25f554cdabbdd42
|
|
| BLAKE2b-256 |
e1e6380810d18755b7a2392cf22fd6a07dd12b1cc9f2dd2f3a2f56f8aa68cbfd
|
File details
Details for the file samf_framework-0.1.2-py3-none-any.whl.
File metadata
- Download URL: samf_framework-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c51fa47381bd08ecc94b9bb9ec932494145d0b40c4512b18ffe6ae8ce88d709
|
|
| MD5 |
89abbbe531d692dc85f7964c0306e536
|
|
| BLAKE2b-256 |
7a4d3a1895f819db726aa02034946320714363cd13a433ca5d40e68ba329d998
|