feat: Add MnemoPay tools — agent memory + wallet#7514
Open
t49qnsx7qt-kpanks wants to merge 1 commit intomicrosoft:mainfrom
Open
feat: Add MnemoPay tools — agent memory + wallet#7514t49qnsx7qt-kpanks wants to merge 1 commit intomicrosoft:mainfrom
t49qnsx7qt-kpanks wants to merge 1 commit intomicrosoft:mainfrom
Conversation
Add 12 BaseTool subclasses under autogen_ext.tools.mnemopay that give AutoGen agents persistent memory and a micropayment wallet via the MnemoPay MCP server (npx -y @mnemopay/sdk). Memory tools: remember, recall, forget, reinforce, consolidate Wallet tools: charge, settle, refund Info tools: balance, profile, history, logs Each tool follows AutoGen's BaseTool[ArgsT, ReturnT] pattern with Pydantic arg/return models and communicates over stdio using the existing autogen_ext.tools.mcp session infrastructure. Includes mnemopay_tools() factory and [mnemopay] optional dependency. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Author
|
i agree to CLA |
Author
|
No [company=...] part needed |
Author
|
@microsoft-github-policy-service agree |
Author
|
Hey team — just checking in on this. Happy to address any feedback or make changes if needed. Let me know if there's anything blocking review. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
BaseToolsubclasses underautogen_ext.tools.mnemopaythat give AutoGen agents persistent memory and a micropayment wallet via the MnemoPay MCP serverremember,recall,forget,reinforce,consolidate— store, search, boost, and prune agent knowledge across sessionscharge,settle,refund— escrow-based micropayments with reputation trackingbalance,profile,history,logs— agent stats, tx history, and audit trailMotivation
AI agents today are stateless and cannot transact. MnemoPay solves both problems through a single MCP server (
npx -y @mnemopay/sdk):The
mnemopay-autogenPyPI package (v1.0.0) already exists as a standalone integration. This PR brings the tools directly intoautogen-extso AutoGen users can access them natively.Architecture
BaseTool[ArgsT, ReturnT]subclass with typed Pydantic arg/return models_MnemoPayMixinprovides shared MCP client logic using AutoGen's existingcreate_mcp_server_sessioninfrastructuremnemopay_tools(config)factory returns all 12 tools ready to pass toAssistantAgent[mnemopay]optional dependency inpyproject.toml(depends onmcp>=1.11.0)Usage
Or use individual tools:
Files changed
autogen_ext/tools/mnemopay/__init__.pyautogen_ext/tools/mnemopay/_config.pyMnemoPayConfig(agent_id, mode, server_url, npx_command)autogen_ext/tools/mnemopay/_tools.pymnemopay_tools()factoryautogen-ext/pyproject.toml[mnemopay]optional dependencyTest plan
python -c "from autogen_ext.tools.mnemopay import mnemopay_tools"imports cleanlylen(mnemopay_tools()) == 12name,description, andschemapropertiesRememberTool→RecallToolround-trip with live MCP serverChargeTool→SettleToolround-trip with live MCP serverRelated
🤖 Generated with Claude Code