Goderash SDK — audit any AI agent with one import
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
Release history Release notifications | RSS feed
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.0.tar.gz
(15.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file goderash_sdk-0.1.0.tar.gz.
File metadata
- Download URL: goderash_sdk-0.1.0.tar.gz
- Upload date:
- Size: 15.1 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01dee2aaa2a6dc879bffcb2397bc14839956b32ca092ef1f5aeac28e8e178406
|
|
| MD5 |
ea8ea8d603912a5ef000dc1f2dd48d7f
|
|
| BLAKE2b-256 |
27860ec15df535bf0530f897e064f55ce1e0b4117de659d3b2f0e551649d568f
|
File details
Details for the file goderash_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: goderash_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 19.0 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e28b8142fcba7393c6362d74d79658a16597eea9889d75ceb2c46907ebe8e36
|
|
| MD5 |
a692348f5e91f7a980392efab939a4ee
|
|
| BLAKE2b-256 |
32dfa55d3b2799b8f9dd89ce02130d185ffa42f6221e5b9e77ed8be1a1d2222d
|