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.7.tar.gz (17.3 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.7-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gavrun-0.2.7.tar.gz
  • Upload date:
  • Size: 17.3 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.7.tar.gz
Algorithm Hash digest
SHA256 fd61b13fc989f3a31d97543a926081f35116f03d41836778fb5a0641560dfcc3
MD5 9cabab907036a1bfd4db50c8262d9aa4
BLAKE2b-256 60da90db1f784d24a4da3723409b7ce9f81d8ccc988f2728611f798c4681a04b

See more details on using hashes here.

Provenance

The following attestation bundles were made for gavrun-0.2.7.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.7-py3-none-any.whl.

File metadata

  • Download URL: gavrun-0.2.7-py3-none-any.whl
  • Upload date:
  • Size: 14.2 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 b2e30d39af24743ac9b6c66f4c31e96a2208a3367ba3aafe092a9432cf2ecfc3
MD5 48e6289f810c4119a687d29d3bcaf498
BLAKE2b-256 3860d92865b8f6e512f526e3c18583f609f901a72f88f6f91c23db7ed2c92334

See more details on using hashes here.

Provenance

The following attestation bundles were made for gavrun-0.2.7-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

This release

0.2.7 This release

2 files

0.2.6

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