Catalog PyPI
PACKAGE EXPLORERView in registry

afr-sdk

PyPI

Tamper-evident execution recording for AI agents — Python SDK

agentaiauditlangchainlanggraphtamper-evident
Versions collected1
Direct dependencies4From release 1.0.1
Last observed20 Oct, 21:13 UTC

README

Version 1.0.1 documentation

AFR SDK

Tamper-evident execution recording for AI agents.

Installation

pip install afr-sdk

Quick Start

from afr_python_sdk import Recorder

rec = Recorder(base_url="http://localhost:3001")
run = rec.start({"model": "gpt-4"})

Full Example

from afr_python_sdk import Recorder

rec = Recorder(base_url="http://localhost:3001", api_key="your-api-key")

rec.start({"model": "gpt-4", "temperature": 0.2})

rec.step({
    "step_type":   "tool_result",
    "tool_name":   "risk_score",
    "tool_input":  {"txn_id": "TXN-001"},
    "tool_output": {"fraud_probability": 0.82},
})

rec.decision({
    "goal_reference":  "evaluate-transaction",
    "selected_option": "block",
    "confidence":      0.92,
})

proof = rec.finish()
print(proof["run_id"])

License

MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.120 Mar 20264

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:13 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:ebfdc08aec2000a4b7ba9475612f5c0679588a21e67d725df18d81b4242ec567