feat: add spraay crypto payments agent example#20
Conversation
willkill07
left a comment
There was a problem hiding this comment.
This example doesn't run. The code is invalid.
All examples should show sample runs with expected output.
Thanks for the review — I've rewritten the example to use the proper @register_function / FunctionBaseConfig / FunctionInfo pattern and added expected output to the README. |
|
@plagtech DCO check has failed. Please ensure all commits are signed-off |
Signed-off-by: plagtech <mngoswp@gmail.com>
Signed-off-by: plagtech <mngoswp@gmail.com>
39dabb7 to
0fdfc7b
Compare
|
Thanks for the review. I've rewritten the example using the proper @register_function / FunctionBaseConfig / FunctionInfo pattern and added expected output to the README. DCO sign-off is now fixed as well. |
|
/ok to test 0fdfc7b |
Signed-off-by: plagtech <mngoswp@gmail.com>
|
Hi @willkill07 — just checking in on this. I believe the requested changes from the initial review have been addressed in the rewrite (proper @register_function / FunctionBaseConfig pattern, DCO sign-off, copyright headers). Is there anything else needed on my end? |
|
Hi @willkill07 — friendly bump on this. CI was triggered on the rewrite back in April, wondering if there's any remaining feedback. Happy to make adjustments if needed |
|
/ok to test 0a3e359 |
There was a problem hiding this comment.
I looked through this again and believe that logic consolidation should occur. Prefer a function group over individual functions so they all share the same HTTP client.
Also, please address CI failures. If we can avoid hyper-specific language, we should.
|
Done — converted to a single @register_function_group with shared HTTP client. Config now references spraay as a group. Also renamed module to nat_spraay_crypto_payments per contributor guidelines. |
Add Spraay crypto payments agent example
Summary
This PR adds a Spraay Crypto Payments Agent example that demonstrates how to build an AI agent capable of executing cryptocurrency payments across 13 blockchains using the x402 protocol.
What It Does
The example provides 8 custom tools that connect to the Spraay x402 gateway (
gateway.spraay.app), enabling any NeMo Agent Toolkit agent to:Why This Matters for Agent Toolkit Users
Agents that take action in the real world need to pay for things. The x402 protocol makes payments native to HTTP — agents pay per API request with USDC, no wallet UX required. This example shows how to integrate a payment layer into any NeMo Agent Toolkit workflow.
What's Included
Quick Start
Supported Chains
Base · Ethereum · Arbitrum · Polygon · BNB · Avalanche · Solana · Bitcoin · Stacks · Unichain · Plasma · BOB · Bittensor
Related