Skip to main content

attestify-autogen

Governed AI loop execution for AutoGen — signed receipts, audit trails, x402 payments on Base, and Attestify Trust (no-wallet agent identity + signed evidence).

Installation

pip install attestify-autogen

Trust functions additionally need cryptography — install with pip install attestify-autogen[trust]; everything else works without it.

Quick Start

from attestify_autogen import register_attestify_functions
from autogen import AssistantAgent, UserProxyAgent
import os

assistant = AssistantAgent(
    name="assistant",
    llm_config={"config_list": [{"model": "gpt-4o", "api_key": os.environ["OPENAI_API_KEY"]}]},
    system_message=(
        "You are an operations agent with access to the Attestify governed execution layer. "
        "Always confirm the loop_id and cost from any attestify_run_loop call."
    ),
)

user_proxy = UserProxyAgent(
    name="user",
    human_input_mode="NEVER",
    max_consecutive_auto_reply=5,
)

register_attestify_functions(
    assistant=assistant,
    executor=user_proxy,
    api_key=os.environ["ATTESTIFY_API_KEY"],
)

user_proxy.initiate_chat(
    assistant,
    message="Summarise the latest AI agent governance trends and give me the receipt ID."
)

Available Functions

Function Description Plan
attestify_run_loop Submit a task to the governed loop router All
attestify_get_dashboard Run count, quota, plan tier, recent receipts Builder+
attestify_get_recent_loops List recent loop receipts All
attestify_get_receipt Retrieve a verified receipt by loop_id All
attestify_get_control_tower Enterprise governance data & cross-tenant visibility Enterprise
attestify_trust_submit_evidence Sign and submit evidence of real work — free, no wallet All (Trust configured)
attestify_trust_verify Independently verify any Trust receipt by ID Public, no key

Attestify Trust — no-wallet agent identity + signed evidence

A separate concern from the Router functions above: no x402, no lanes, no spend. Register once, then the assistant can sign proof of what it actually did.

from attestify_autogen import provision_trust_agent, register_attestify_functions
import os

# ONE TIME, outside any conversation — never let the agent call this itself.
# A fresh identity per run breaks the agent's own verified-active streak
# and adds noise to Attestify's public census instead of a real number.
creds = provision_trust_agent(
    api_key=os.environ["ATTESTIFY_API_KEY"],
    display_name="AutoGen Assistant",
    framework="autogen",
)
print(f"Store these — TRUST_AGENT_ID={creds['agent_id']}  TRUST_PRIVATE_KEY={creds['private_key']}")

# From then on, with those two env vars set, register_attestify_functions()
# picks them up automatically and adds attestify_trust_submit_evidence and
# attestify_trust_verify to the function map.
register_attestify_functions(
    assistant=assistant,
    executor=user_proxy,
    api_key=os.environ["ATTESTIFY_API_KEY"],
)

The private key is bound once when the function map is built — it's never a function argument the model supplies, so it never enters the conversation transcript.

Getting Your API Key

Subscribe at attestifyos.com/pricing for Router access, or register free for Trust-only use at attestifyos.com/trust — no card required.

Metadata

Release files for attestify-autogen 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for attestify-autogen 0.2.0
File Size Uploaded
attestify_autogen-0.2.0.tar.gz 9.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for attestify-autogen 0.2.0
File Interpreter ABI Platform
attestify_autogen-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 21.1 kB

Release files / attestify_autogen-0.2.0.tar.gz

Download URL attestify_autogen-0.2.0.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
879e490e89c159d64ad974fb72cc919681b9964a0bd80e353b4dab613c1d97b9
BLAKE2b-256 checksum
How to use checksums
eeecbd844da91d9e81b1c53f3452b5989fc0c738f3249332337fa36a21c1fef6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / attestify_autogen-0.2.0-py3-none-any.whl

Download URL attestify_autogen-0.2.0-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8b9530dc041d119058d1c641e1f5ed19b953e222e5be550516e51eb0fb00f822
BLAKE2b-256 checksum
How to use checksums
4ae407cf93247dfdaafb5dfe6df8c846e4e9a5be68ae847fe4a3c3293c95c0c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.2.0 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