Skip to main content

decionis-crewai

Gate any CrewAI tool call before its side effect runs. The wrapper preserves the inner tool's name, description, and Pydantic argument schema, so the agent sees the same tool while Decionis evaluates the proposed payload against an organization policy.

pip install decionis-crewai
from decionis import DecionisClient
from decionis_crewai import DecionisGuardedTool

client = DecionisClient(api_key="...", base_url="https://api.decionis.com")
guarded_refund = DecionisGuardedTool.wrap(
    inner_tool=send_refund,
    client=client,
    tenant_id="your-org-uuid",
    workflow_key="refund_execution",
    site_base_url="https://decionis.com",
)

refund_agent = Agent(..., tools=[guarded_refund])

ALLOW runs the inner tool. BLOCK, REVIEW_REQUIRED, and ESCALATE raise a DecionisGuardRefusal before the inner tool runs and carry the Decision Dossier id and verify URL.

Start observe-only without changing agent behavior:

guarded_refund = DecionisGuardedTool.wrap(
    inner_tool=send_refund,
    client=client,
    tenant_id="your-org-uuid",
    workflow_key="refund_execution",
    shadow_mode=True,
)

In Shadow Mode every verdict is recorded, including would-block outcomes, but the inner tool still runs. Remove shadow_mode=True only after reviewing the weekly exposure report and policy fit.

Compatibility: Python 3.10–3.13, CrewAI 1.x, and decionis 0.2 or later.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

decionis_crewai-0.1.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

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

decionis_crewai-0.1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: decionis_crewai-0.1.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for decionis_crewai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3f479024fbf36e65fb96be7829cf8b79da59092f86db3c4be940088a65308fe1
MD5 9f3d479bdfc6a8b77bbbe88c73a6a3d7
BLAKE2b-256 c43f611430a9a99546cb3a38ba145b89d3b1ad76b3dc94fd7a9dbc3e300a7f2e

See more details on using hashes here.

Provenance

The following attestation bundles were made for decionis_crewai-0.1.0.tar.gz:

Publisher: release-sdks.yml on decionis/Decionis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for decionis_crewai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f3c24e0c020dcf1ee254f8b7997edfb9f8593628880406ebafd6148ab9ea1263
MD5 bd7252f5f4e35c2a8310e2820141ab07
BLAKE2b-256 a7da14a5ded101fb6902cba3eab5dd73619b64ce924a00778c415d9faf7c85fc

See more details on using hashes here.

Provenance

The following attestation bundles were made for decionis_crewai-0.1.0-py3-none-any.whl:

Publisher: release-sdks.yml on decionis/Decionis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page