← THE LIBRARY

Research / Deep search / FIELD GUIDE

Research an approved plan with Gemini

Pair a research worker with a critic to plan, search, evaluate and refine an answer.

Checked 14 Oct 2026

Agent Setup Kits local Vertex AI edition. Original project by Google; guide and labeled adaptations by Agent Setup Kits.

FIELD GUIDEKIT / RESEARCH
Use case
Research
Architecture
Multi-agent
Trigger
Manual
Sandbox
Loopback only
License
Apache-2.0
Human approval
Before you run

First step

sh
python3.12 --version
uv --version

Copy this first step, then read the setup and the human approval notes before you go further.

01 / PURPOSE

The autonomous job

After a prompted plan approval, research a topic through Google Search, critique coverage, run targeted follow-up searches, and compose a cited report. This package selects the Python backend and ADK local UI; it does not include the custom frontend or cloud deployment.

02 / SYSTEM

Architecture and handoffs

An interactive planner uses an AgentTool(plan_generator) and hands the plan to a SequentialAgent pipeline. Section planning precedes a tool-using researcher. A LoopAgent runs evaluator, escalation check, and enhanced search up to five iterations. The report composer replaces grounded source IDs with links. Package selection and INSTALL.md are labeled adaptations; upstream Python code is unchanged.

System for Research an approved plan with Gemini SANDBOX / LOOPBACK ONLY. 01 / HUMAN You. 02 / AGENT Interactive planner. 03 / AGENT Section researcher. 04 / AGENT Research evaluator. 05 / AGENT Report composer. 06 / SERVICE Google Search. SANDBOX / LOOPBACK ONLY manual calls 01 / HUMAN You The planner requests approval i... 02 / AGENT Interactive planner Create and refine a research pl... 03 / AGENT Section researcher Run Google Search and collect g... 04 / AGENT Research evaluator Assess coverage and propose fol... 05 / AGENT Report composer Synthesize findings and replace... 06 / SERVICE Google Search Initial and follow-up research;... ASK
Built from this kit's roles, tools and boundaryHumanAgentServiceBoundary
01 / AGENT

Interactive planner

Create and refine a research plan with a plan-generator tool

HandoffDelegate to the research pipeline after prompted human approval

02 / AGENT

Section researcher

Run Google Search and collect grounded source metadata

HandoffPass findings to the critic

03 / AGENT

Research evaluator

Assess coverage and propose follow-up queries, without challenging the topic premise

HandoffStop the loop on pass or request enhanced searches

04 / AGENT

Report composer

Synthesize findings and replace citation tags with source links

HandoffReturn the cited report to the local UI

Model
The pinned source sets MODEL_NAME=gemini-3.5-flash for the worker and critic. Confirm model access and charges in the selected Vertex AI project.
Memory
ADK session state stores the research plan, findings, evaluation and source maps. Treat the local UI as development storage; export results you need to retain.

03 / CONNECTIONS

Tools and triggers

Tool access described by this edition
ToolPurposeAccess
Google SearchInitial and follow-up research; limited planner clarificationSends queries and content through the configured Google model/search service
ADK AgentTool and session stateDelegate planning and retain research stateLocal agent state and configured model access

What starts the work

  • Manual A topic request through a loopback-bound ADK development UI. Full research approval is a prompt instruction. Clarification search may occur before full approval.
Permissions in this edition
ControlDecision
Call Gemini and Google Search through existing authorized Vertex AI accessYes
Retain plan, findings and source maps in ADK session stateYes
Write local session/artifact data as allowed by the ADK UIYes
The planner requests approval in model instructions; this is not a deterministic permission gateAsk
Provider costs and credentials require separate operator authorizationAsk
Local development process bound to 127.0.0.1. This is not an implemented sandbox. Use an isolated environment and existing least-privilege credentials.Yes

04 / BOUNDARIES

Capabilities and safety

Credentials
Requires existing application-default credentials and an authorized Google project. Keep credentials outside the repository and grant only the required access.
Shutdown
Ctrl+C stops the local UI process. Preserve and inspect local state before any cleanup; no deletion command is provided.

Capabilities

  • Call Gemini and Google Search through existing authorized Vertex AI access
  • Retain plan, findings and source maps in ADK session state
  • Write local session/artifact data as allowed by the ADK UI

05 / SETUP

The files behind the workflow.

Start with INSTALL.md and the setup notes above. Original-project files retain their attribution and license; our installation notes, dependency profiles and custom wrappers are identified separately.

  1. Prerequisites and pins

    Linux local development environment, already installed CPython 3.12.12 and uv 0.13.1. The upstream project permits Python =3.11,<3.13; this edition selects one interpreter version for reproducibility. Other operating systems have not been reviewed for this edition.

  2. Inspect first

    Compare the downloaded archive SHA-256 against its checksum file. Inspect source code, uv.lock, LICENSE, UPSTREAM-MANIFEST.json and the environment example before installing. Use an isolated local environment with access only to the intended existing Google credentials. Do not put customer secrets in prompts.

  3. Install, when authorized in your environment

    From the extracted kit directory, check the preinstalled versions: Require Python 3.12.12 and uv 0.13.1. If they differ, stop and review compatibility; these instructions do not install either tool. Install only locked runtime dependencies, without cloud scaffolding or project build hooks: No third-party setup was executed during source review.

    sh
    python3.12 --version
    uv --version
  4. Start locally

    The web command and host/port options were inspected in the google-adk 2.9.0 CLI source. Open http://127.0.0.1:8501 locally and select app. Do not expose the development UI to a public network. Starting the UI may initialize local state; sending a topic can invoke provider and Google Search calls and incur charges. No calls were made in this review.

    sh
    .venv/bin/adk web . --host 127.0.0.1 --port 8501
  5. Stop and inspect

    Use Ctrl+C in the ADK terminal to stop the local process. Review any local session/artifact files before sharing or cleaning them. No cleanup or deletion command is included. Credential revocation and provider budget controls belong to your existing account's policies.

INSTALL.mdView file +

Setup instructions, prerequisites and edition-specific integration notes

Download INSTALL.md ↓

# Gemini research pipeline: local Vertex AI edition

This is an Agent Setup Kits packaging adaptation of Google LLC's deep-search recipe. It selects the unmodified Python backend and the upstream frozen dependency lock. It omits the custom React frontend, mutable bootstrap, Makefile targets, and cloud deployment scaffolding. The ADK development UI is the local interface.


## Included source

google/adk-recipes commit 9252494a7aaafca8fe4d81a04f15392345a5779b, core/python/deep-search.

The archive contains app/__init__.py, app/agent.py, app/config.py, pyproject.toml, uv.lock, the upstream Apache-2.0 LICENSE, a source checksum manifest, and these authored instructions. Original code and copyright headers are unchanged. The package selection and installation instructions are adaptations.

## Prerequisites and pins

Linux local development environment, already installed CPython 3.12.12 and uv 0.13.1. The upstream project permits Python >=3.11,<3.13; this edition selects one interpreter version for reproducibility. Other operating systems have not been reviewed for this edition.

The lock selects google-adk 2.9.0 and python-dotenv 1.2.3 with hashed Python distribution files. Frozen sync must retain the complete upstream uv.lock. Do not update the lock implicitly.

Requires an existing Google Cloud project, permitted Vertex AI model access, and existing application-default credentials. Account, key, project, service or paid-plan creation is not part of this kit. If these prerequisites are absent, stop. Model availability and pricing are unknown in this source review. No credentials are shipped.

## Inspect first

Compare the downloaded archive SHA-256 against its checksum file. Inspect source code, uv.lock, LICENSE, UPSTREAM-MANIFEST.json and the environment example before installing. Use an isolated local environment with access only to the intended existing Google credentials. Do not put customer secrets in prompts. This is not a sandbox implementation or a security audit.

## Install, when authorized in your environment

From the extracted kit directory, check the preinstalled versions:

```sh
python3.12 --version
uv --version
```

Require Python 3.12.12 and uv 0.13.1. If they differ, stop and review compatibility; these instructions do not install either tool.

Install only locked runtime dependencies, without cloud scaffolding or project build hooks:

```sh
UV_PYTHON_DOWNLOADS=never uv sync --frozen --no-dev --no-install-project --python python3.12
```

No third-party setup was executed during source review. This install command is derived from uv's frozen synchronization interface and the inspected lock. Its runtime result remains unverified.

Copy setup.env.example to .env at the kit root and replace only the project placeholder with an existing authorized project identifier. Keep .env out of version control. The source root entry point loads root .env and requires application-default credentials; this edition supports Vertex AI, not the conflicting AI Studio README path. Do not set GOOGLE_API_KEY for this edition.

## Start locally

```sh
.venv/bin/adk web . --host 127.0.0.1 --port 8501
```

The web command and host/port options were inspected in the google-adk 2.9.0 CLI source. Open http://127.0.0.1:8501 locally and select app. Do not expose the development UI to a public network. Starting the UI may initialize local state; sending a topic can invoke provider and Google Search calls and incur charges. No calls were made in this review.

Propose a topic, inspect the plan, and explicitly approve it only when intended. Approval is a model prompt instruction, not a deterministic permission barrier. The plan generator can use search for clarification before full research approval.

## Behavior and limits

The section researcher gathers grounded results. The critic checks coverage, but explicitly does not question the topic's premise. The refinement loop has max_iterations=5; that does not impose a global token or cost cap. A report composer replaces source IDs with citation links. Citations are not a guarantee of factual accuracy.

Session state includes the plan, findings, evaluation and source maps. Persistence and cross-restart behavior were not tested. Existing credentials authorize external model/search access; no arbitrary-shell tool is declared in the reviewed agent code. Dependency internals were not exhaustively security audited.

## Stop and inspect

Use Ctrl+C in the ADK terminal to stop the local process. Review any local session/artifact files before sharing or cleaning them. No cleanup or deletion command is included. Credential revocation and provider budget controls belong to your existing account's policies.

## License and attribution

Upstream source is copyright Google LLC and licensed under Apache-2.0. Preserve LICENSE and the original source headers. This package's selection and instructions were authored by Agent Setup Kits. No endorsement by Google is implied. The source repository had no root NOTICE at the pinned commit.

Agent Setup Kits authored documentation for Agent Setup Kits local Vertex AI edition; upstream code and licenses remain attributed separately

setup.env.exampleView file +

Example configuration for an existing authorized Vertex AI project. No credentials included.

Download setup.env.example ↓

# Copy to .env at the extracted kit root only after review.
# Use an existing authorized project. Do not include API keys.
GOOGLE_CLOUD_PROJECT=REPLACE_WITH_EXISTING_PROJECT
GOOGLE_CLOUD_LOCATION=global
GOOGLE_GENAI_USE_VERTEXAI=True
MODEL_NAME=gemini-3.5-flash

Authored subset of the inspected entry point and model configuration; not the upstream AI Studio example

LICENSE.txtView file +

Retained upstream Apache-2.0 license

Download LICENSE.txt ↓

                                 Apache License
                           Version 2.0, January 2004
                        http://www.apache.org/licenses/

   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

   1. Definitions.

      "License" shall mean the terms and conditions for use, reproduction,
      and distribution as defined by Sections 1 through 9 of this document.

      "Licensor" shall mean the copyright owner or entity authorized by
      the copyright owner that is granting the License.

      "Legal Entity" shall mean the union of the acting entity and all
      other entities that control, are controlled by, or are under common
      control with that entity. For the purposes of this definition,
      "control" means (i) the power, direct or indirect, to cause the
      direction or management of such entity, whether by contract or
      otherwise, or (ii) ownership of fifty percent (50%) or more of the
      outstanding shares, or (iii) beneficial ownership of such entity.

      "You" (or "Your") shall mean an individual or Legal Entity
      exercising permissions granted by this License.

      "Source" form shall mean the preferred form for making modifications,
      including but not limited to software source code, documentation
      source, and configuration files.

      "Object" form shall mean any form resulting from mechanical
      transformation or translation of a Source form, including but
      not limited to compiled object code, generated documentation,
      and conversions to other media types.

      "Work" shall mean the work of authorship, whether in Source or
      Object form, made available under the License, as indicated by a
      copyright notice that is included in or attached to the work
      (an example is provided in the Appendix below).

      "Derivative Works" shall mean any work, whether in Source or Object
      form, that is based on (or derived from) the Work and for which the
      editorial revisions, annotations, elaborations, or other modifications
      represent, as a whole, an original work of authorship. For the purposes
      of this License, Derivative Works shall not include works that remain
      separable from, or merely link (or bind by name) to the interfaces of,
      the Work and Derivative Works thereof.

      "Contribution" shall mean any work of authorship, including
      the original version of the Work and any modifications or additions
      to that Work or Derivative Works thereof, that is intentionally
      submitted to Licensor for inclusion in the Work by the copyright owner
      or by an individual or Legal Entity authorized to submit on behalf of
      the copyright owner. For the purposes of this definition, "submitted"
      means any form of electronic, verbal, or written communication sent
      to the Licensor or its representatives, including but not limited to
      communication on electronic mailing lists, source code control systems,
      and issue tracking systems that are managed by, or on behalf of, the
      Licensor for the purpose of discussing and improving the Work, but
      excluding communication that is conspicuously marked or otherwise
      designated in writing by the copyright owner as "Not a Contribution."

      "Contributor" shall mean Licensor and any individual or Legal Entity
      on behalf of whom a Contribution has been received by Licensor and
      subsequently incorporated within the Work.

   2. Grant of Copyright License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      copyright license to reproduce, prepare Derivative Works of,
      publicly display, publicly perform, sublicense, and distribute the
      Work and such Derivative Works in Source or Object form.

   3. Grant of Patent License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      (except as stated in this section) patent license to make, have made,
      use, offer to sell, sell, import, and otherwise transfer the Work,
      where such license applies only to those patent claims licensable
      by such Contributor that are necessarily infringed by their
      Contribution(s) alone or by combination of their Contribution(s)
      with the Work to which such Contribution(s) was submitted. If You
      institute patent litigation against any entity (including a
      cross-claim or counterclaim in a lawsuit) alleging that the Work
      or a Contribution incorporated within the Work constitutes direct
      or contributory patent infringement, then any patent licenses
      granted to You under this License for that Work shall terminate
      as of the date such litigation is filed.

   4. Redistribution. You may reproduce and distribute copies of the
      Work or Derivative Works thereof in any medium, with or without
      modifications, and in Source or Object form, provided that You
      meet the following conditions:

      (a) You must give any other recipients of the Work or
          Derivative Works a copy of this License; and

      (b) You must cause any modified files to carry prominent notices
          stating that You changed the files; and

      (c) You must retain, in the Source form of any Derivative Works
          that You distribute, all copyright, patent, trademark, and
          attribution notices from the Source form of the Work,
          excluding those notices that do not pertain to any part of
          the Derivative Works; and

      (d) If the Work includes a "NOTICE" text file as part of its
          distribution, then any Derivative Works that You distribute must
          include a readable copy of the attribution notices contained
          within such NOTICE file, excluding those notices that do not
          pertain to any part of the Derivative Works, in at least one
          of the following places: within a NOTICE text file distributed
          as part of the Derivative Works; within the Source form or
          documentation, if provided along with the Derivative Works; or,
          within a display generated by the Derivative Works, if and
          wherever such third-party notices normally appear. The contents
          of the NOTICE file are for informational purposes only and
          do not modify the License. You may add Your own attribution
          notices within Derivative Works that You distribute, alongside
          or as an addendum to the NOTICE text from the Work, provided
          that such additional attribution notices cannot be construed
          as modifying the License.

      You may add Your own copyright statement to Your modifications and
      may provide additional or different license terms and conditions
      for use, reproduction, or distribution of Your modifications, or
      for any such Derivative Works as a whole, provided Your use,
      reproduction, and distribution of the Work otherwise complies with
      the conditions stated in this License.

   5. Submission of Contributions. Unless You explicitly state otherwise,
      any Contribution intentionally submitted for inclusion in the Work
      by You to the Licensor shall be under the terms and conditions of
      this License, without any additional terms or conditions.
      Notwithstanding the above, nothing herein shall supersede or modify
      the terms of any separate license agreement you may have executed
      with Licensor regarding such Contributions.

   6. Trademarks. This License does not grant permission to use the trade
      names, trademarks, service marks, or product names of the Licensor,
      except as required for reasonable and customary use in describing the
      origin of the Work and reproducing the content of the NOTICE file.

   7. Disclaimer of Warranty. Unless required by applicable law or
      agreed to in writing, Licensor provides the Work (and each
      Contributor provides its Contributions) on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
      implied, including, without limitation, any warranties or conditions
      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
      PARTICULAR PURPOSE. You are solely responsible for determining the
      appropriateness of using or redistributing the Work and assume any
      risks associated with Your exercise of permissions under this License.

   8. Limitation of Liability. In no event and under no legal theory,
      whether in tort (including negligence), contract, or otherwise,
      unless required by applicable law (such as deliberate and grossly
      negligent acts) or agreed to in writing, shall any Contributor be
      liable to You for damages, including any direct, indirect, special,
      incidental, or consequential damages of any character arising as a
      result of this License or out of the use or inability to use the
      Work (including but not limited to damages for loss of goodwill,
      work stoppage, computer failure or malfunction, or any and all
      other commercial damages or losses), even if such Contributor
      has been advised of the possibility of such damages.

   9. Accepting Warranty or Additional Liability. While redistributing
      the Work or Derivative Works thereof, You may choose to offer,
      and charge a fee for, acceptance of support, warranty, indemnity,
      or other liability obligations and/or rights consistent with this
      License. However, in accepting such obligations, You may act only
      on Your own behalf and on Your sole responsibility, not on behalf
      of any other Contributor, and only if You agree to indemnify,
      defend, and hold each Contributor harmless for any liability
      incurred by, or claims asserted against, such Contributor by reason
      of your accepting any such warranty or additional liability.

   END OF TERMS AND CONDITIONS

   APPENDIX: How to apply the Apache License to your work.

      To apply the Apache License to your work, attach the following
      boilerplate notice, with the fields enclosed by brackets "[]"
      replaced with your own identifying information. (Don't include
      the brackets!)  The text should be enclosed in the appropriate
      comment syntax for the file format. We also recommend that a
      file or class name and description of purpose be included on the
      same "printed page" as the copyright notice for easier
      identification within third-party archives.

   Copyright [yyyy] [name of copyright owner]

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

Unmodified https://github.com/google/adk-recipes/blob/9252494a7aaafca8fe4d81a04f15392345a5779b/LICENSE

Source and guide bundle

Selected upstream files, original license, source manifest and labeled guide adaptations.

View SHA-256 checksum
Download bundle

06 / ORIGINAL WORK

Sources, pins, and license

This guide draws on ADK Recipes by Google, at the linked source revision. Agent Setup Kits is independent of the upstream project. Edition-specific changes are labeled in the file provenance.

Google / ADK Recipes

Agent Setup Kits local Vertex AI edition

Open source
Sources this edition relies on
SourceWhat it supports
Pinned recipe source ↗Immutable recipe provenance
Agent definitions and loop control ↗Role handoffs, search tools, five-iteration refinement and citation callbacks
Vertex AI entry point ↗Unconditional application-default credentials and forced Vertex AI authentication
Model and auth configuration ↗MODEL_NAME selection, worker/critic models and max_search_iterations=5
Project manifest ↗Python bounds and runtime dependency declarations
Hashed dependency lock ↗Exact Python package resolution and distribution hashes
Model example ↗Upstream gemini-3.5-flash identifier, not a claim of current model access
ADK 2.9.0 local web command ↗Local web CLI, agents directory, loopback host and port flags
Source versions and guide targets
ComponentPinSource
Recipe source9252494a7aaafca8fe4d81a04f15392345a5779bOriginal source ↗
google-adk2.9.0Original source ↗
python-dotenv1.2.3Original source ↗
Complete Python resolutionuv.lock at 9252494a7aaafca8fe4d81a04f15392345a5779bOriginal source ↗
Selected CPython interpreter3.12.12Original source ↗
Selected uv tool0.13.1Original source ↗

Apache-2.0

Google LLC source and headers retained. Package selection and instructions are Agent Setup Kits adaptations. No Google endorsement is implied.

Read the original license ↗

Related guides

Your privacy choices

Choose optional tools. Rejecting them keeps the setup library available. Advertising consent stays off.

Choices stay in this browser for 90 days. You can change them using Privacy settings. Privacy and cookie details