Skip to main content

gavrun

Python SDK for Gavrun — govern AI agents before risky actions execute.

Gavrun intercepts agent tool calls, evaluates them against your policies, and requires human approval for high-risk actions before they run.

Install

pip install gavrun

Quick start

import gavrun

gavrun.configure(
    api_key="your-sdk-key",       # from agentmanager.gavrun.ai/api-keys
    agent_name="my-agent",
    agent_manager_url="https://api.gavrun.ai",
)

Tool calls are governed automatically for LangChain, LangGraph, CrewAI, and OpenAI Agents SDK via auto-patch. For manual guarding:

client = gavrun.get_client()

result = client.guard(
    action="delete_user",
    execute=lambda: delete_user(user_id),
    tools=["delete_user"],
    prompt=f"Delete user {user_id}",
)

if result.denied:
    raise PermissionError("Blocked by policy")
if result.requires_human_review:
    # poll for approval
    ...

Frameworks

Auto-patch wires governance into every tool call:

import gavrun
gavrun.configure(api_key="...", agent_manager_url="https://api.gavrun.ai")
# LangChain, LangGraph, CrewAI, OpenAI Agents SDK tools are now governed

Links

Download files

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

Source Distribution

gavrun-0.2.6.tar.gz (16.6 kB view details)

Uploaded Source

Built Distribution

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

gavrun-0.2.6-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file gavrun-0.2.6.tar.gz.

File metadata

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

File hashes

Hashes for gavrun-0.2.6.tar.gz
Algorithm Hash digest
SHA256 176bfa71cb5815cf2979b09368c923875794aebac174fef9846eda708181bb2f
MD5 8d164cd110ca405fb6c27dcff1e7fc35
BLAKE2b-256 92005a4edc886cdf74477890ce4dbfaeefa023d304e9ba643fefa270edabcf7f

See more details on using hashes here.

Provenance

The following attestation bundles were made for gavrun-0.2.6.tar.gz:

Publisher: publish-gavrun.yml on gavrun-ai/gavrun

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

File details

Details for the file gavrun-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: gavrun-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 13.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for gavrun-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a66f83ac9e7333eccd5f2e54bda594b889f7fc4e80d8364c55f8b5d1a408a316
MD5 a22993461bdff09b2198725600ce7159
BLAKE2b-256 e8619bc750b422799aacca81313fa9a86a0784b7b523adcf1f0227036cbf8fcd

See more details on using hashes here.

Provenance

The following attestation bundles were made for gavrun-0.2.6-py3-none-any.whl:

Publisher: publish-gavrun.yml on gavrun-ai/gavrun

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

Release history Release notifications | RSS feed

0.2.7

2 files

This release

0.2.6 This release

2 files

0.2.5

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 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