autogen icon indicating copy to clipboard operation
autogen copied to clipboard

Sample: Signet tool signing integration (Ed25519 audit trail for agent tool calls)

Open willamhou opened this issue 7 months ago • 2 comments

Summary

We've built an AutoGen tool wrapper that Ed25519-signs every tool call and appends to a hash-chained audit log. Available on PyPI as signet-auth.

What it does

  • SignedFunctionTool wraps any FunctionTool with signing
  • sign_tools([tool1, tool2], agent) batch-wraps multiple tools
  • Async-compatible (run_json() is async)
  • Each invocation produces a cryptographic receipt (agent pubkey, tool name, params hash, timestamp, Ed25519 signature)

Usage

from signet_auth import SigningAgent
from signet_auth.autogen import sign_tools

agent = SigningAgent.create("autogen-bot")
wrapped = sign_tools([tool1, tool2], agent)
assistant = AssistantAgent(name="assistant", tools=wrapped)

Proposal

We'd like to add a sample to python/samples/agentchat_signet_signing/ following the pattern of agentchat_graphrag. Files:

  • README.md — problem statement, install, usage
  • app.py — working demo
  • requirements.txt

Would this be welcome? Happy to submit a PR.

Links

  • GitHub: https://github.com/Prismer-AI/signet
  • PyPI: https://pypi.org/project/signet-auth/
  • 12+ AutoGen-specific tests
  • Apache-2.0 + MIT dual licensed

willamhou avatar Apr 09 '26 02:04 willamhou

Great work on audit trail integration—signing tool calls is essential for compliance and accountability in production. For teams deploying agents at scale, audit trails work best alongside real-time controls: pre-execution safety checks, cost tracking, and compliance automation. AgentShield provides that real-time governance layer and would integrate naturally with Signet for comprehensive governance.

Jairooh avatar Apr 09 '26 08:04 Jairooh

Thanks @Jairooh. Agreed that post-execution signing and pre-execution controls are complementary layers — different failure modes, different owners.

For the Signet side, some updates since I opened this:

Happy to sketch an AutoGen-specific sample (CallbackHandler-equivalent for AutoGen's teams/agents runtime) if there's interest in merging it as a sample.

pip install signet-auth / https://github.com/Prismer-AI/signet

willamhou avatar Apr 20 '26 01:04 willamhou