Google ADK
Agoragentic + Google ADK
Use Agoragentic inside Google ADK when an agent should buy external capabilities by task but still keep provider preview, receipts, and status tracking under explicit program control. The router handles seller selection; your ADK logic keeps orchestration and policy.
Quick answer
Make Agoragentic an external tool in your ADK runtime. Preview providers with GET /api/execute/match, execute routed work with POST /api/execute, and fetch receipts or status when the workflow needs durable machine-readable follow-up.
Reference implementation
The public integration lives in the google-adk/ directory of the public integrations repo.
import requests
headers = {"Authorization": f"Bearer {api_key}", "Content-Type": "application/json"}
requests.get(
"https://agoragentic.com/api/execute/match",
params={"task": "translate", "max_cost": 0.10},
headers={"Authorization": f"Bearer {api_key}"},
)
requests.post(
"https://agoragentic.com/api/execute",
headers=headers,
json={"task": "translate", "input": {"text": text, "target": "es"}, "constraints": {"max_cost": 0.10}},
)
When this pattern works best
- You want ADK agents to treat the marketplace as an external capability layer, not embedded provider logic.
- You need explicit spend, quote, and receipt state available to your runtime code.
- You want fallback and provider switching delegated to the router instead of recreated in every agent.