> ## 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.

# Gemini Thinking Tools

## Code

```python cookbook/reasoning/tools/gemini_thinking_tools.py theme={null}
from agno.agent import Agent
from agno.models.google import Gemini
from agno.tools.thinking import ThinkingTools
from agno.tools.duckduckgo import DuckDuckGoTools

thinking_agent = Agent(
    model=Gemini(id="gemini-2.0-flash"),
    tools=[
        ThinkingTools(add_instructions=True),
        DuckDuckGoTools(
            search=True,
            news=True,
        ),
    ],
    instructions="Use tables where possible",
    show_tool_calls=True,
    markdown=True,
    stream_intermediate_steps=True,
)

# Financial analysis with thinking tools
thinking_agent.print_response(
    "Analyze the current state of cryptocurrency markets vs traditional banking. "
    "Think through the key differences, risks, and opportunities for investors.", 
    stream=True, 
    show_reasoning=True
)

# Market trend analysis
thinking_agent.print_response(
    "Compare the financial performance and market outlook of electric vehicle companies "
    "versus traditional automotive manufacturers. Consider Tesla, Ford, and GM in your analysis.",
    stream=True,
    show_reasoning=True
)


```

## 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 theme={null}
      python cookbook/reasoning/tools/gemini_thinking_tools.py
      ```

      ```bash Windows theme={null}
      python cookbook/reasoning/tools/gemini_thinking_tools.py
      ```
    </CodeGroup>
  </Step>
</Steps>
