Claim this agent
Agent DossierGITHUB OPENCLEWSafety 66/100

Xpersona Agent

crewai-gemini-deep-research

A native CrewAI BaseTool for Google's Gemini Deep Research API β€” async polling, cost control, and timeout protection in a single drop-in tool. πŸ”¬ CrewAI Gemini Deep Research Tool A native **CrewAI BaseTool** that wraps Google's **Gemini Deep Research Agent**, the most powerful autonomous web research API available today. **Drop it into any existing CrewAI pipeline. No MCP servers, no framework changes, no async headaches.** The Problem Google's Gemini Deep Research Agent autonomously searches the web, reads and cross-references sources, and returns detailed

OpenClaw Β· self-declared
Trust evidence available
git clone https://github.com/Nick-is-building/crewai-gemini-deep-research.git

Overall rank

#31

Adoption

No public adoption signal

Trust

Unknown

Freshness

May 31, 2026

Freshness

Last checked May 31, 2026

Best For

crewai-gemini-deep-research is best for crewai, multi-agent workflows where OpenClaw compatibility matters.

Not Ideal For

Contract metadata is missing or unavailable for deterministic execution.

Evidence Sources Checked

editorial-content, GITHUB OPENCLEW, runtime-metrics, public facts pack

Overview

Key links, install path, reliability highlights, and the shortest practical read before diving into the crawl record.

Verifiededitorial-content

Overview

Executive Summary

A native CrewAI BaseTool for Google's Gemini Deep Research API β€” async polling, cost control, and timeout protection in a single drop-in tool. πŸ”¬ CrewAI Gemini Deep Research Tool A native **CrewAI BaseTool** that wraps Google's **Gemini Deep Research Agent**, the most powerful autonomous web research API available today. **Drop it into any existing CrewAI pipeline. No MCP servers, no framework changes, no async headaches.** The Problem Google's Gemini Deep Research Agent autonomously searches the web, reads and cross-references sources, and returns detailed Capability contract not published. No trust telemetry is available yet. Last updated 5/31/2026.

No verified compatibility signals

Trust score

Unknown

Compatibility

OpenClaw

Freshness

May 31, 2026

Vendor

Nick Is Building

Artifacts

0

Benchmarks

0

Last release

Unpublished

Install & run

Setup Snapshot

git clone https://github.com/Nick-is-building/crewai-gemini-deep-research.git
  1. 1

    Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.

  2. 2

    Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Evidence & Timeline

Public facts grouped by evidence type, plus release and crawl events with provenance and freshness.

Verifiededitorial-content

Public facts

Evidence Ledger

Vendor (1)

Vendor

Nick Is Building

profilemedium
Observed May 31, 2026Source linkProvenance
Compatibility (1)

Protocol compatibility

OpenClaw

contractmedium
Observed May 31, 2026Source linkProvenance
Security (1)

Handshake status

UNKNOWN

trustmedium
Observed unknownSource linkProvenance

Events

Release & Crawl Timeline

Artifacts & Docs

Parameters, dependencies, examples, extracted files, editorial overview, and the complete README when available.

Self-declaredGITHUB OPENCLEW

Captured outputs

Artifacts Archive

Extracted files

0

Examples

6

Snippets

0

Languages

python

Executable Examples

bash

pip install crewai google-genai pydantic python-dotenv

bash

export GEMINI_API_KEY="your-key-here"

python

from crewai import Agent, Task, Crew
from deep_research_tool import GeminiDeepResearchTool

# Initialize the tool
deep_research = GeminiDeepResearchTool()

# Give it to an agent
researcher = Agent(
    role="Senior Research Analyst",
    goal="Produce comprehensive research reports with verified sources",
    backstory="You are an expert analyst who uses deep research to investigate topics thoroughly.",
    tools=[deep_research],
    max_iter=3,              # Low: each call takes minutes
    max_execution_time=3600, # 60 min: must exceed tool timeout
    verbose=True,
)

# Define a task
research_task = Task(
    description="Research the competitive landscape of solid-state batteries in 2026.",
    expected_output="A detailed research report with citations and data.",
    agent=researcher,
)

# Run
crew = Crew(agents=[researcher], tasks=[research_task])
result = crew.kickoff()

python

tool = GeminiDeepResearchTool(
    api_key="your-key",                              # Or set GEMINI_API_KEY env var
    agent_name="deep-research-max-preview-04-2026",  # Use Max for deeper research
    max_polling_time=2400,                           # 40 min timeout
    polling_interval=20,                             # Poll every 20 sec
    max_usage_count=3,                               # Allow 3 calls per task
)

yaml

description: >
  Before calling the Deep Research Tool, formulate a precise query.
  Include: company name, technical architecture, compliance exposure,
  cloud providers, regulatory landscape.
  Example: "{company} technical infrastructure EU compliance GDPR 2026"

text

Agent calls tool._run(query)
         |
         v
   POST interactions.create(background=True)
         |
         v
   Receive interaction_id immediately
         |
         v
   Poll loop (every 15s)
   - GET interactions.get(id)
   - Status: in_progress?    -> continue polling
   - Status: completed?      -> extract report from steps[-1]
   - Status: failed?         -> return error message
   - Timeout reached?        -> return timeout message
         |
         v
   Return Markdown report to agent

Editorial read

Docs & README

Docs source

GITHUB OPENCLEW

Editorial quality

ready

A native CrewAI BaseTool for Google's Gemini Deep Research API β€” async polling, cost control, and timeout protection in a single drop-in tool. πŸ”¬ CrewAI Gemini Deep Research Tool A native **CrewAI BaseTool** that wraps Google's **Gemini Deep Research Agent**, the most powerful autonomous web research API available today. **Drop it into any existing CrewAI pipeline. No MCP servers, no framework changes, no async headaches.** The Problem Google's Gemini Deep Research Agent autonomously searches the web, reads and cross-references sources, and returns detailed

Full README

πŸ”¬ CrewAI Gemini Deep Research Tool

A native CrewAI BaseTool that wraps Google's Gemini Deep Research Agent, the most powerful autonomous web research API available today.

Drop it into any existing CrewAI pipeline. No MCP servers, no framework changes, no async headaches.

The Problem

Google's Gemini Deep Research Agent autonomously searches the web, reads and cross-references sources, and returns detailed Markdown reports with inline citations. But it runs exclusively on the Interactions API, a completely different, asynchronous API surface that is incompatible with CrewAI's synchronous tool model.

This tool bridges that gap.

What It Does

  • Async-to-sync bridging: Handles the entire background=True, polling, and result extraction lifecycle inside CrewAI's _run() method
  • Cost protection: max_usage_count=2 prevents runaway API calls
  • Hard timeout: 30-minute default prevents infinite polling loops
  • Clean auth isolation: Uses explicit API key, no conflicts with Vertex AI ADC credentials
  • Breaking Change ready: Updated for the May 2026 outputs[] to steps[] migration, with backward-compatible fallback

Quick Start

1. Install dependencies

pip install crewai google-genai pydantic python-dotenv

2. Set your API key

Get a Gemini API key from Google AI Studio and set it:

export GEMINI_API_KEY="your-key-here"

3. Use in your CrewAI pipeline

from crewai import Agent, Task, Crew
from deep_research_tool import GeminiDeepResearchTool

# Initialize the tool
deep_research = GeminiDeepResearchTool()

# Give it to an agent
researcher = Agent(
    role="Senior Research Analyst",
    goal="Produce comprehensive research reports with verified sources",
    backstory="You are an expert analyst who uses deep research to investigate topics thoroughly.",
    tools=[deep_research],
    max_iter=3,              # Low: each call takes minutes
    max_execution_time=3600, # 60 min: must exceed tool timeout
    verbose=True,
)

# Define a task
research_task = Task(
    description="Research the competitive landscape of solid-state batteries in 2026.",
    expected_output="A detailed research report with citations and data.",
    agent=researcher,
)

# Run
crew = Crew(agents=[researcher], tasks=[research_task])
result = crew.kickoff()

That's it. The agent calls the tool, the tool handles the multi-minute Deep Research cycle in the background, and returns a full Markdown report with inline citations.

Configuration

All parameters are overridable at instantiation:

tool = GeminiDeepResearchTool(
    api_key="your-key",                              # Or set GEMINI_API_KEY env var
    agent_name="deep-research-max-preview-04-2026",  # Use Max for deeper research
    max_polling_time=2400,                           # 40 min timeout
    polling_interval=20,                             # Poll every 20 sec
    max_usage_count=3,                               # Allow 3 calls per task
)

Available Models

| Model | Use Case | Speed | |-------|----------|-------| | deep-research-preview-04-2026 (default) | Interactive research, user-facing | 3-15 min | | deep-research-max-preview-04-2026 | Background batch jobs, due diligence | 10-40 min |

Cost Awareness

Deep Research runs on Gemini 3.1 Pro at standard API rates. There is no additional markup for the agent layer. The key pricing components (as of May 2026, from Google's official pricing):

| Component | Rate | |-----------|------| | Gemini 3.1 Pro input tokens | $2.00 / 1M tokens | | Gemini 3.1 Pro output tokens | $12.00 / 1M tokens | | Google Search grounding (Gemini 3.x) | $14.00 / 1K queries | | Long context (>200K tokens) | 2x standard rates |

Actual cost per Deep Research call depends on the complexity of your query and how many search iterations the agent performs. The max_usage_count parameter is your primary cost control. At default settings, a single agent can make at most 2 Deep Research calls per task.

For the latest pricing, always check Google's official pricing page.

Multi-Agent Pipeline Tips

When using this tool across multiple agents in a sequential pipeline:

Set max_iter=3 on research agents. Each Deep Research call is expensive. Two calls per agent (controlled by max_usage_count=2) is the sweet spot: first call broad, second call targeted.

Set max_execution_time=3600 on research agents. This must exceed the tool's max_polling_time (default 1800s), or CrewAI will kill the agent mid-research.

Keep audit/synthesis agents tool-free. Agents that only analyze predecessor outputs don't need Deep Research. Removing the tool from these agents prevents accidental expensive calls and enforces clean separation between research and analysis.

Guide the queries in your task descriptions. Deep Research performs dramatically better with specific, structured queries. Include example query structures in your tasks.yaml:

description: >
  Before calling the Deep Research Tool, formulate a precise query.
  Include: company name, technical architecture, compliance exposure,
  cloud providers, regulatory landscape.
  Example: "{company} technical infrastructure EU compliance GDPR 2026"

Why Is This Synchronous?

By design. CrewAI's tool execution model is synchronous. When an agent calls a tool, it waits for the result. Every built-in CrewAI tool works this way, including SerperDevTool, ScrapeWebsiteTool, and others that make network requests. This tool follows the same pattern.

If you need to run multiple Deep Research calls in parallel (for example, a pipeline with six research agents), the recommended architecture is to use CrewAI Flows to launch concurrent research tasks before feeding results into a sequential analysis crew. This keeps the tool simple and the parallelism where it belongs: at the orchestration layer, not inside the tool.

For web applications serving multiple users, wrap your crew execution in a background worker (Celery, asyncio.to_thread, or a task queue). This is standard practice for any long-running CrewAI pipeline, not specific to this tool.

How It Works Under the Hood

Agent calls tool._run(query)
         |
         v
   POST interactions.create(background=True)
         |
         v
   Receive interaction_id immediately
         |
         v
   Poll loop (every 15s)
   - GET interactions.get(id)
   - Status: in_progress?    -> continue polling
   - Status: completed?      -> extract report from steps[-1]
   - Status: failed?         -> return error message
   - Timeout reached?        -> return timeout message
         |
         v
   Return Markdown report to agent

Authentication Note

Deep Research requires a Google AI Studio API key. It is NOT available on Vertex AI (as of May 2026). If you're already using Vertex AI for your LLM (via ADC), this tool keeps the two auth paths cleanly separated. Your Vertex AI agents use ADC, the Deep Research tool uses the explicit API key. No conflicts.

Requirements

  • Python 3.10+
  • CrewAI 0.80+
  • google-genai 1.55.0+
  • A Gemini API key (get one here)

License

MIT


Built by a solo developer who needed Gemini Deep Research in CrewAI and couldn't find it anywhere. So I built it.

API & Reliability

Machine endpoints, contract coverage, trust signals, runtime metrics, benchmarks, and guardrails for agent-to-agent use.

MissingGITHUB OPENCLEW

Machine interfaces

Contract & API

Contract coverage

Status

missing

Auth

None

Streaming

No

Data region

Unspecified

Protocol support

OpenClaw: self-declared

Requires: none

Forbidden: none

Guardrails

Operational confidence: low

No positive guardrails captured.
Invocation examples
curl -s "https://www.xpersona.co/api/v1/agents/crewai-nick-is-building-crewai-gemini-deep-research/snapshot"
curl -s "https://www.xpersona.co/api/v1/agents/crewai-nick-is-building-crewai-gemini-deep-research/contract"
curl -s "https://www.xpersona.co/api/v1/agents/crewai-nick-is-building-crewai-gemini-deep-research/trust"

Operational fit

Reliability & Benchmarks

Trust signals

Handshake

UNKNOWN

Confidence

unknown

Attempts 30d

unknown

Fallback rate

unknown

Runtime metrics

Observed P50

unknown

Observed P95

unknown

Rate limit

unknown

Estimated cost

unknown

Do not use if

Contract metadata is missing or unavailable for deterministic execution.
No benchmark suites or observed failure patterns are available.

Machine Appendix

Raw contract, invocation, trust, capability, facts, and change-event payloads for machine-side inspection.

MissingGITHUB OPENCLEW

Contract JSON

{
  "contractStatus": "missing",
  "authModes": [],
  "requires": [],
  "forbidden": [],
  "supportsMcp": false,
  "supportsA2a": false,
  "supportsStreaming": false,
  "inputSchemaRef": null,
  "outputSchemaRef": null,
  "dataRegion": null,
  "contractUpdatedAt": null,
  "sourceUpdatedAt": null,
  "freshnessSeconds": null
}

Invocation Guide

{
  "preferredApi": {
    "snapshotUrl": "https://www.xpersona.co/api/v1/agents/crewai-nick-is-building-crewai-gemini-deep-research/snapshot",
    "contractUrl": "https://www.xpersona.co/api/v1/agents/crewai-nick-is-building-crewai-gemini-deep-research/contract",
    "trustUrl": "https://www.xpersona.co/api/v1/agents/crewai-nick-is-building-crewai-gemini-deep-research/trust"
  },
  "curlExamples": [
    "curl -s \"https://www.xpersona.co/api/v1/agents/crewai-nick-is-building-crewai-gemini-deep-research/snapshot\"",
    "curl -s \"https://www.xpersona.co/api/v1/agents/crewai-nick-is-building-crewai-gemini-deep-research/contract\"",
    "curl -s \"https://www.xpersona.co/api/v1/agents/crewai-nick-is-building-crewai-gemini-deep-research/trust\""
  ],
  "jsonRequestTemplate": {
    "query": "summarize this repo",
    "constraints": {
      "maxLatencyMs": 2000,
      "protocolPreference": [
        "OPENCLEW"
      ]
    }
  },
  "jsonResponseTemplate": {
    "ok": true,
    "result": {
      "summary": "...",
      "confidence": 0.9
    },
    "meta": {
      "source": "GITHUB_OPENCLEW",
      "generatedAt": "2026-10-08T22:21:36.784Z"
    }
  },
  "retryPolicy": {
    "maxAttempts": 3,
    "backoffMs": [
      500,
      1500,
      3500
    ],
    "retryableConditions": [
      "HTTP_429",
      "HTTP_503",
      "NETWORK_TIMEOUT"
    ]
  }
}

Trust JSON

{
  "status": "unavailable",
  "handshakeStatus": "UNKNOWN",
  "verificationFreshnessHours": null,
  "reputationScore": null,
  "p95LatencyMs": null,
  "successRate30d": null,
  "fallbackRate": null,
  "attempts30d": null,
  "trustUpdatedAt": null,
  "trustConfidence": "unknown",
  "sourceUpdatedAt": null,
  "freshnessSeconds": null
}

Capability Matrix

{
  "rows": [
    {
      "key": "OPENCLEW",
      "type": "protocol",
      "support": "unknown",
      "confidenceSource": "profile",
      "notes": "Listed on profile"
    },
    {
      "key": "crewai",
      "type": "capability",
      "support": "supported",
      "confidenceSource": "profile",
      "notes": "Declared in agent profile metadata"
    },
    {
      "key": "multi-agent",
      "type": "capability",
      "support": "supported",
      "confidenceSource": "profile",
      "notes": "Declared in agent profile metadata"
    }
  ],
  "flattenedTokens": "protocol:OPENCLEW|unknown|profile capability:crewai|supported|profile capability:multi-agent|supported|profile"
}

Facts JSON

[
  {
    "factKey": "vendor",
    "label": "Vendor",
    "value": "Nick Is Building",
    "category": "vendor",
    "href": "https://github.com/Nick-is-building/crewai-gemini-deep-research",
    "sourceUrl": "https://github.com/Nick-is-building/crewai-gemini-deep-research",
    "sourceType": "profile",
    "confidence": "medium",
    "observedAt": "2026-05-31T06:18:14.026Z",
    "isPublic": true,
    "metadata": {}
  },
  {
    "factKey": "protocols",
    "label": "Protocol compatibility",
    "value": "OpenClaw",
    "category": "compatibility",
    "href": "https://www.xpersona.co/api/v1/agents/crewai-nick-is-building-crewai-gemini-deep-research/contract",
    "sourceUrl": "https://www.xpersona.co/api/v1/agents/crewai-nick-is-building-crewai-gemini-deep-research/contract",
    "sourceType": "contract",
    "confidence": "medium",
    "observedAt": "2026-05-31T06:18:14.026Z",
    "isPublic": true,
    "metadata": {}
  },
  {
    "factKey": "handshake_status",
    "label": "Handshake status",
    "value": "UNKNOWN",
    "category": "security",
    "href": "https://www.xpersona.co/api/v1/agents/crewai-nick-is-building-crewai-gemini-deep-research/trust",
    "sourceUrl": "https://www.xpersona.co/api/v1/agents/crewai-nick-is-building-crewai-gemini-deep-research/trust",
    "sourceType": "trust",
    "confidence": "medium",
    "observedAt": null,
    "isPublic": true,
    "metadata": {}
  }
]

Change Events JSON

[]

Sponsored

Ads related to crewai-gemini-deep-research and adjacent AI workflows.