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

# Tool Use O3

> Run an o3 agent with cached YFinance tools through the OpenAI Responses API and stream the response.

## Code

```python tool_use_o3.py theme={null}
from agno.agent import Agent
from agno.models.openai import OpenAIResponses
from agno.tools.yfinance import YFinanceTools

agent = Agent(
    model=OpenAIResponses(id="o3"),
    tools=[YFinanceTools(cache_results=True)],
    markdown=True,
    telemetry=False,
)

agent.print_response("What is the current price of TSLA?", stream=True)

```

## Usage

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

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

  <Step title="Install dependencies">
    ```bash theme={null}
    uv pip install -U openai yfinance agno
    ```
  </Step>

  <Step title="Run Agent">
    Save the code above as `tool_use_o3.py`, then run:

    ```bash theme={null}
    python tool_use_o3.py
    ```
  </Step>
</Steps>
