feat(python/agents): add crypto-payroll-agent sample#1917
Open
plagtech wants to merge 1 commit into
Open
Conversation
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
Adds
crypto-payroll-agent, a sample that batch-pays multiplerecipients in ETH or ERC-20 tokens on Base in a single transaction. The
agent uses the Spraay batch payment tools from
google-adk-community.Pattern demonstrated
spraay_batch_eth,spraay_batch_token, and their_variablesiblings based on whether the user wants equal or variable amounts
and ETH or ERC-20.
split_pool_proportionallyhelper feedsthe variable batch tools when the user supplies a total and weights
rather than per-recipient amounts.
lookup_token_infohelper resolves common Base tokens(USDC, WETH, cbBTC, DAI, etc.) so users don't need to know decimals.
What's included
crypto_payroll_agent/— singleLlmAgentwith the four Spraaytools plus two local helpers
eval/— five-case evalset covering each batch-tool selection pathand a safety refusal
tests/— 14 offline unit testsdeployment/deploy.py— reference Vertex AI Agent Engine deploymentVerification
uv synccleanuv run pytest tests/ -v— 14 passedadk webNote on the dependency
The Spraay tools are merged into
google/adk-python-communitymainbut have not yet shipped in a PyPI release. The
pyproject.tomlpinsgoogle-adk-communityto gitmainfor now; this can be relaxed to astandard version constraint once a release ships.
Apache 2.0 license matches the repo default.