Skip to main content

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

Metadata

Release files for goderash-sdk 0.1.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 goderash-sdk 0.1.1
File Size Uploaded
goderash_sdk-0.1.1.tar.gz 16.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for goderash-sdk 0.1.1
File Interpreter ABI Platform
goderash_sdk-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 36.1 kB

Release files / goderash_sdk-0.1.1.tar.gz

Download URL goderash_sdk-0.1.1.tar.gz
Size 16.6 kB
Tags Source
SHA-256 checksum
How to use checksums
52ccbdeb41b4d8457f3d99a177fb79be11e5f71809ae4c47bb799ec0b0f63017
BLAKE2b-256 checksum
How to use checksums
8340826ca5e035819bacc94d9eac4af9d4bb0b6cc54d981d912f27e2be5d5288
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / goderash_sdk-0.1.1-py3-none-any.whl

Download URL goderash_sdk-0.1.1-py3-none-any.whl
Size 19.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
38f72e6696dcab64df02af6089f61157e0a66c714c93aea5abfa14248ce2442b
BLAKE2b-256 checksum
How to use checksums
dae2fc1ace1391e840f19470478aa8392bf44420e5754968d00f0e96e9d78422
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.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