> ## Documentation Index
> Fetch the complete documentation index at: https://docs-v1.agno.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Search Agent

## Code

```python cookbook/models/google/gemini/search.py theme={null}
from agno.agent import Agent
from agno.models.google import Gemini

agent = Agent(
    model=Gemini(id="gemini-2.0-flash-exp", search=True),
    show_tool_calls=True,
    markdown=True,
)

agent.print_response("What are the latest developments in AI technology this week?")
```

## Usage

<Steps>
  <Snippet file="create-venv-step.mdx" />

  <Step title="Set your API key">
    ```bash theme={null}
    export GOOGLE_API_KEY=xxx
    ```
  </Step>

  <Step title="Install libraries">
    ```bash theme={null}
    pip install -U google-genai agno
    ```
  </Step>

  <Step title="Run Agent">
    <CodeGroup>
      ```bash Mac/Linux theme={null}
      python cookbook/models/google/gemini/search.py
      ```

      ```bash Windows theme={null}
      python cookbook/models/google/gemini/search.py
      ```
    </CodeGroup>
  </Step>
</Steps>

<Tip> Combine `URL context` with `Google Search` to get a more in-depth analysis </Tip>
