Skip to main content

Quesen — CrewAI Tool

Deterministic Agent Firewall + A2A risk validation as CrewAI BaseTools. Drop it on any Agent, any Crew.

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)

from quesen_crewai import QuesenFirewallTool

firewall = QuesenFirewallTool(
    base_url="https://web-production-3df26.up.railway.app", sandbox=True,
)
# Attach to any CrewAI Agent's tools=[...]; deterministic PASS/REVIEW/BLOCK/SKIP.

Install

pip install quesen-crewai
# or:
pip install git+https://github.com/Shxnque/quesen-crewai.git

30-second usage

from crewai import Agent, Task, Crew
from quesen_crewai import QuesenValidateTool, QuesenReportTool

defender = Agent(
    role="Risk Officer",
    goal="Prevent the trading agent from touching rugpulls.",
    backstory="You block any action that Quesen labels SKIP.",
    tools=[QuesenValidateTool(base_url="https://<your-quesen>", api_key="sk_live_abc")],
)

check = Task(
    description="Validate this opportunity: domain_age_days=1, engagement_ratio=0.95, scam_keyword_count=4",
    agent=defender,
    expected_output="A PROCEED / REVIEW / SKIP decision with risk_score and conflict_triggers.",
)

crew = Crew(agents=[defender], tasks=[check])
print(crew.kickoff())

Receipt provenance (v1.10)

Calling QuesenValidateTool._run(...) returns the raw response dict from the underlying quesen-sdk client. Against a v1.10.0+ engine that dict includes:

  • input_snapshot_hash — SHA-256 over canonical request JSON.
  • commit_sha — git SHA of the ruleset live at decision time (or "unknown").

Both flow through untouched for CrewAI callers to log or verify. See the public API reference for the contract.

Tools shipped

  • QuesenValidateTool — wraps /validate
  • QuesenSimulateTool — wraps /simulate
  • QuesenReportTool — wraps /report (v1.1 schema)

MIT license. See senueren.co.za/quesen for canonical documentation.

Metadata

Release files for quesen-crewai 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for quesen-crewai 0.5.1
File Size Uploaded
quesen_crewai-0.5.1.tar.gz 5.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for quesen-crewai 0.5.1
File Interpreter ABI Platform
quesen_crewai-0.5.1-py3-none-any.whl Python 3 none any Details

Total release size: 12.0 kB

Release files / quesen_crewai-0.5.1.tar.gz

Download URL quesen_crewai-0.5.1.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d189afdefe809ce643fb8959f51bcb720babac5fe3d16728681cd6b8a3c99729
BLAKE2b-256 checksum
How to use checksums
bf7288ed2a02f4a47cd5ab94abb4d0ac1af0c5a8e7bb45700f68a1d1fd5d0374
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Release files / quesen_crewai-0.5.1-py3-none-any.whl

Download URL quesen_crewai-0.5.1-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
21edbc6bb9bac78f519062d6b043465ee351ae700dabd67a7117b84b40564981
BLAKE2b-256 checksum
How to use checksums
ded3608b86129aa43f2923ba91845a6e2a08618ac7813281370d90ac6ddfb6dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Release history Release notifications | RSS feed

This release

0.5.1 This release

2 release files

0.5.0

2 release files

0.3.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page