Skip to main content

Goderash SDK — audit any AI agent with one import. Tamper-evident, hash-chained, regulator-ready.

Project description

goderash-sdk

Python SDK for Goderash — audit any AI agent with one import.

pip install goderash-sdk

Quick start

from goderash_sdk import GoderashClient, wrap_tool

goderash = GoderashClient(
    api_key="gdr_...",
    tenant="acme-finance",
    agent_id="portfolio-advisor-v1",
)

@wrap_tool(goderash, category="action", confirmation="biometric")
def transfer_money(src: str, dst: str, amount: float) -> dict:
    return {"status": "queued"}

with goderash.turn() as ctx:
    transfer_money("checking", "savings", 100.0, _goderash_context=ctx)
# Every call is appended to the hash-chained audit ledger automatically.

Runtime guards

from goderash_sdk.guards import (
    GuardChain, FraudGuard, VelocityLimiter, VelocityRule, ConversationBudget,
)

guards = GuardChain(
    FraudGuard(),
    VelocityLimiter(rules_by_tool={
        "transfer_money": [
            VelocityRule(window_seconds=3600, max_count=5, label="5/hour"),
        ],
    }),
    ConversationBudget(max_tool_calls=20, max_tokens=200_000),
)

decision = guards.evaluate(goderash, ctx, tool_name="transfer_money", amount=500)
if decision.allow:
    transfer_money(...)

Links

Project details


Download files

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

Source Distribution

goderash_sdk-0.1.1.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.

goderash_sdk-0.1.1-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

Details for the file goderash_sdk-0.1.1.tar.gz.

File metadata

  • Download URL: goderash_sdk-0.1.1.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for goderash_sdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 52ccbdeb41b4d8457f3d99a177fb79be11e5f71809ae4c47bb799ec0b0f63017
MD5 9230df3662880ab8d03e450d87053ce1
BLAKE2b-256 8340826ca5e035819bacc94d9eac4af9d4bb0b6cc54d981d912f27e2be5d5288

See more details on using hashes here.

File details

Details for the file goderash_sdk-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: goderash_sdk-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 19.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for goderash_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 38f72e6696dcab64df02af6089f61157e0a66c714c93aea5abfa14248ce2442b
MD5 e31b9f0a142996ad01ef802b31401751
BLAKE2b-256 dae2fc1ace1391e840f19470478aa8392bf44420e5754968d00f0e96e9d78422

See more details on using hashes here.

Supported by

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