Python: [Feature]: Crypto Payroll Agent — end-to-end sample with on-chain batch payments
Maintainer thường phản hồi trong vòng 1 ngày
@eavanvalkenburg đang làm issue này rồi.
Từ ngày 30/9/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Description
What problem does it solve?
The current sample set covers travel planning, content generation, M365, RAG, and workflows — but no sample demonstrates an agent handling irreversible financial operations with real side effects. Developers building payment or fintech agents don't have a reference for guardrail patterns (spend ceilings, recipient caps, confirmation gates) on actions that move real value.
What would the expected behavior be?
A self-contained sample in python/samples/05-end-to-end/crypto_payroll_agent/ where an AI agent accepts a natural-language payroll instruction (e.g. "Pay Alice 50 USDC and Bob 30 USDC on Base"), resolves it into structured recipient/amount data, calls a payment gateway's REST API to build the unsigned transaction, signs locally, broadcasts, and confirms settlement — all through MAF tool functions.
The sample would include:
- 3–4 tool functions (estimate batch cost, get token info, execute batch, check transaction)
- A guardrail callback enforcing recipient count ≤ 200, address format validation, and a configurable MAX_BATCH_USD spending ceiling
- README with setup, walkthrough, and on-chain proof transactions from verification
- Tests runnable without a funded wallet (mocked gateway responses)
The payment gateway used would be Spraay Protocol (gateway.spraay.app), operated by Plagtech LLC — my company. The gateway charges a 0.3% protocol fee on batches and $0.02 per API call. These fees would be documented in the sample README. The gateway is the only Spraay-specific dependency; the agent architecture, tool patterns, and guardrail approach are framework-general.
Are there any alternatives you've considered?
The sample could also fit in microsoft/Agent-Framework-Samples under 09.Cases/ if that's a better home for third-party integration demos.
Prior art
I've contributed similar payment-agent samples to other frameworks:
- NVIDIA NeMo-Agent-Toolkit-Examples #27 (merged) — RTP payment tools
- Strands Agents Docs #825 (merged) — batch payment integration on the official Strands docs site
- Oracle AI Developer Hub #131 (merged) — x402 partner notebook
Questions for maintainers
- Is
python/samples/05-end-to-end/the right location? - Any preference on LLM provider the sample should target (GitHub Models, Azure OpenAI, OpenAI)?
- Should tools use
@toolor@kernel_function? I'll match whichever convention the existing samples follow.
Code Sample
from agent_framework import Agent
# Tool functions would call the Spraay gateway REST API
# Example: estimate a batch payment
@tool
async def estimate_batch(token: str, recipients: list[str], amounts: list[str]) -> str:
"""Estimate gas and fees for a batch payment on Base."""
response = await httpx.AsyncClient().post(
"https://gateway.spraay.app/api/v1/batch/estimate",
json={"token": token, "recipients": recipients, "amounts": amounts}
)
return response.json()
agent = Agent(
client=..., # Azure OpenAI or GitHub Models
name="PayrollAgent",
instructions="You are a payroll agent that executes batch crypto payments on Base.",
tools=[estimate_batch, execute_batch, get_token_info, check_transaction],
)
Language/SDK
Python
- Ngôn ngữ chính
- Python
- Star
- 14.3k
- Fork
- 2.5k
- Merge trung bình
- 2 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 337
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/agent-framework
-
python triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
microsoft/agent-framework#9682 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Python: foundry-hosting drops request `metadata` from the stored response — `_create_response_event_stream` never passes `request` to `ResponseEventStream`Có thể làm lại được @its-amann đã nhận 7 ngày trước và không có pull request nào đang mở. Đang mởpython triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
microsoft/agent-framework#9529 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Python: [Bug]: A non-positive MCP request timeout silently disables the timeoutCó thể đã có người làm @jpalvarezl đã nhận 13 ngày trước. Đang mởpython
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
microsoft/agent-framework#9313 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
.NET: Proposal: add an llms.txtĐang mở.NET python triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
microsoft/agent-framework#9092 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Python: raw-data content mappings lose annotations and attachment metadataCó thể đã có người làm @moonbox3 đã nhận 26 ngày trước. Đang mởpython triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
microsoft/agent-framework#8632 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của microsoft/agent-framework
Issue tương tự
-
link-rot
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 67/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
developmentseed/titiler-cmr#265 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Insecure Brotli version <1.2.1Có thể đã có người làm @jamescw19 đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
stac-utils/stac-fastapi-pgstac#438 · 1 reaction ·
-
bug triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày