PiQrypt cryptographic audit trail bridge for Microsoft AutoGen
Project description
piqrypt-autoGen-integration
Verifiable AI Agent Memory_Cryptographic audit trail for Microsoft AutoGen agents.
Every reply, code execution, and multi-agent conversation — signed, hash-chained, tamper-proof.
pip install piqrypt-autogen
Quickstart
from piqrypt_autogen import AuditedAssistant, AuditedUserProxy
# Drop-in replacements for AutoGen agents
assistant = AuditedAssistant(
name="assistant",
llm_config={"model": "gpt-4o"},
identity_file="assistant.json" # PiQrypt identity
)
user_proxy = AuditedUserProxy(
name="user_proxy",
human_input_mode="NEVER",
identity_file="proxy.json"
)
# Normal AutoGen conversation — every reply is stamped
user_proxy.initiate_chat(
assistant,
message="Analyze the Q4 financial report and flag anomalies."
)
# Export tamper-proof audit trail
assistant.export_audit("q4-analysis-audit.json")
# $ piqrypt verify q4-analysis-audit.json
Multi-agent group chat
from autogen import GroupChat
from piqrypt_autogen import AuditedAssistant, AuditedUserProxy, AuditedGroupChat
researcher = AuditedAssistant(
name="researcher",
llm_config=llm_config,
identity_file="researcher.json"
)
analyst = AuditedAssistant(
name="analyst",
llm_config=llm_config,
identity_file="analyst.json"
)
user_proxy = AuditedUserProxy(
name="user",
human_input_mode="NEVER"
)
group_chat = GroupChat(
agents=[user_proxy, researcher, analyst],
messages=[],
max_round=10
)
manager = AuditedGroupChat(
groupchat=group_chat,
llm_config=llm_config,
identity_file="manager.json"
)
user_proxy.initiate_chat(manager, message="Research AI Act compliance requirements")
# Every agent stamped independently — full end-to-end audit
manager.export_audit("group-chat-audit.json")
Stamp a third-party agent
from piqrypt_autogen import stamp_reply
# Can't subclass? Wrap the method directly
agent = SomeThirdPartyAgent(...)
agent.generate_reply = stamp_reply(
identity_file="my-agent.json"
)(agent.generate_reply)
Stamp an entire conversation post-hoc
from piqrypt_autogen import stamp_conversation
# After a conversation completes
conv_hash = stamp_conversation(
messages=user_proxy.chat_messages[assistant],
private_key=private_key,
agent_id=agent_id,
conversation_id="q4-analysis-2026-02"
)
What gets stamped
| Event | Agent | When |
|---|---|---|
agent_initialized |
AssistantAgent | On creation |
proxy_initialized |
UserProxy | On creation |
groupchat_initialized |
GroupChatManager | On creation |
reply_generated |
AssistantAgent | After each reply |
proxy_reply |
UserProxy | After each proxy reply |
code_executed |
UserProxy | After code block execution |
groupchat_start |
GroupChatManager | Before chat runs |
groupchat_complete |
GroupChatManager | After chat finishes |
All events Ed25519-signed, SHA-256 hash-chained. Raw messages never stored — only hashes.
Verify
piqrypt verify autogen-audit.json
# ✅ Chain integrity verified — 18 events, 0 forks
piqrypt search --type code_executed
# All code executions with timestamps
Links
- PiQrypt core: github.com/piqrypt/piqrypt
- Integration guide: INTEGRATION.md — AutoGen section
- Issues: piqrypt@gmail.com
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
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 piqrypt_autogen_integration-1.0.0.tar.gz.
File metadata
- Download URL: piqrypt_autogen_integration-1.0.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7ecd8c9489d49f5534e6a0b6c477cd2039a9d584a557cd7528fd9b98ff5441d
|
|
| MD5 |
6f3590ab241da9202cb45eea8a4a9eab
|
|
| BLAKE2b-256 |
ab14aabd4aaf706e2ad8997555467eee0481737052d86b1f48eb5a0f999430a8
|
Provenance
The following attestation bundles were made for piqrypt_autogen_integration-1.0.0.tar.gz:
Publisher:
publish.yml on PiQrypt/piqrypt-autoGen-integration
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
piqrypt_autogen_integration-1.0.0.tar.gz -
Subject digest:
d7ecd8c9489d49f5534e6a0b6c477cd2039a9d584a557cd7528fd9b98ff5441d - Sigstore transparency entry: 991678058
- Sigstore integration time:
-
Permalink:
PiQrypt/piqrypt-autoGen-integration@be0145ee061d1b992c897ac37b243f3d111acc6d -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/PiQrypt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@be0145ee061d1b992c897ac37b243f3d111acc6d -
Trigger Event:
release
-
Statement type:
File details
Details for the file piqrypt_autogen_integration-1.0.0-py3-none-any.whl.
File metadata
- Download URL: piqrypt_autogen_integration-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44e7cbd4679f38132393c3f25a180228f449669cafc130bf26918ec967f61eaf
|
|
| MD5 |
c0c7f05a2418aba7a5520b42cdad4db9
|
|
| BLAKE2b-256 |
c28da8e1f65046faeae76d7bf32d3ac00194143647f1d851f1393fbd18dbaedc
|
Provenance
The following attestation bundles were made for piqrypt_autogen_integration-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on PiQrypt/piqrypt-autoGen-integration
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
piqrypt_autogen_integration-1.0.0-py3-none-any.whl -
Subject digest:
44e7cbd4679f38132393c3f25a180228f449669cafc130bf26918ec967f61eaf - Sigstore transparency entry: 991678059
- Sigstore integration time:
-
Permalink:
PiQrypt/piqrypt-autoGen-integration@be0145ee061d1b992c897ac37b243f3d111acc6d -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/PiQrypt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@be0145ee061d1b992c897ac37b243f3d111acc6d -
Trigger Event:
release
-
Statement type: