Build a Google ADK agent that can search tweets, hand off IDs and cursors, monitor accounts, and run extraction jobs - powered by Xquikās MCP server and Gemini.Documentation Index
Fetch the complete documentation index at: https://docs.xquik.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- Python 3.10+
- Xquik API key (
xq_...) - A Google AI API key (for Gemini models)
Install
Full Example
xquik.request(), so keep ADK prompts aligned with tweet_id, has_more, next_cursor, and returned job IDs.
Handoff Checklist
Tweet search rows
Store
tweet_id, text, author_username, created_at, has_more, next_cursor, and the original q.User profile rows
Store source
id as user_id, plus username, name, followers, verified, profile_picture, has_more, next_cursor, and the source lookup or search query.Trend rows
Store each trend
name, rank, query, and description. Keep response count, woeid, and the requested region with the run checkpoint.Monitor and webhook setup
Store the returned monitor
id as monitor_id, event_types, next_billing_at, the returned webhook id as webhook_id, url, and the one-time secret in a secret manager. On production deliveries, store delivery_id for receiver retry de-dupe and stream_event_id when one monitor event should process once across endpoint changes.Extraction jobs
Store
extraction_id, status, poll, and export_after_complete; poll before loading CSV, JSON, or XLSX rows.Writes
Store
tweet_id or write_action_id, reply_to_tweet_id, status, charged_credits, and poll; do not resend pending writes.Multi-Agent Setup
ADK supports hierarchical agents. Use a root agent that delegates to specialized sub-agents:Dynamic Headers
Useheader_provider for per-request headers (e.g., multi-tenant apps with per-user API keys):
Tool Filtering
Expose only specific tools to the agent:Environment Variables
.env
Package Versions
| Package | Version |
|---|---|
google-adk | 1.28.1+ |
mcp | 1.23.0+ |