Quesen — AutoGen Tool
Deterministic Agent Firewall + A2A risk validation exposed as AutoGen (v0.4+) function tools.
Status: v0.3.0 · tracks Quesen engine v1.10.0 (TSC v2 firewall) · requires quesen-sdk>=0.4.1.
Developer portal: https://senueren.co.za/quesen · Source: https://github.com/Shxnque/quesen
Agent Firewall (no signup)
import os, asyncio
os.environ["QUESEN_BASE_URL"] = "https://web-production-aa5ba.up.railway.app"
os.environ["QUESEN_SANDBOX"] = "1" # self-serve a free key
from quesen_autogen import quesen_firewall # register on any AutoGen agent's tools
async def main():
v = await quesen_firewall(action="send_data",
target="https://paste.evil.example", data_class="secret")
print(v["decision"]) # 'BLOCK'
asyncio.run(main())
Install
pip install quesen-autogen
# or:
pip install git+https://github.com/Shxnque/quesen-autogen.git
30-second usage (AutoGen v0.4+)
from autogen_agentchat.agents import AssistantAgent
from autogen_ext.models.openai import OpenAIChatCompletionClient
from quesen_autogen import quesen_validate, quesen_simulate, quesen_report
model = OpenAIChatCompletionClient(model="gpt-4o-mini")
agent = AssistantAgent(
name="defensive_trader",
model_client=model,
tools=[quesen_validate, quesen_simulate, quesen_report],
system_message=(
"Before any high-stakes action, call quesen_validate. "
"Do not proceed unless the decision is PROCEED."
),
)
Receipt provenance (v1.10)
quesen_validate(...) returns the raw response dict from AsyncQuesenClient.
Against a v1.10.0+ engine the dict includes:
input_snapshot_hash— SHA-256 over canonical request JSON.commit_sha— git SHA of the engine ruleset live at decision time (or"unknown").
See the public API reference.
Tools shipped
quesen_validate(...)— wraps/validate(carries v1.10 provenance)quesen_simulate(...)— wraps/simulatequesen_report(...)— wraps/report(v1.1 schema)
Each is a plain async Python function with type-annotated arguments — AutoGen consumes those signatures directly.
MIT license. See senueren.co.za/quesen for canonical documentation.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 quesen_autogen-0.3.0.tar.gz.
File metadata
- Download URL: quesen_autogen-0.3.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.11.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69bcf6c765eee501dee48bbf1779e9de023ea3aa45cc0f8c267ebfb913f998dd
|
|
| MD5 |
50c9c4f25f34740ff0712697ec08a20d
|
|
| BLAKE2b-256 |
fe4b985e248d5cbf9c4eb11978657926b9ff88a295cc1c315a6c191f450a775a
|
File details
Details for the file quesen_autogen-0.3.0-py3-none-any.whl.
File metadata
- Download URL: quesen_autogen-0.3.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.11.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb70bd21bafc89f6f90ca4e954aff48bd8cbb5c200ca524066a08fc0c4c4bf0a
|
|
| MD5 |
11d2ee2bcdc005d940702ae11f3f9dbb
|
|
| BLAKE2b-256 |
df60e880ae6b287d25301236921bfd786cf1babc9c129c7e13c2b1bc7133d29f
|